| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
| |
Merge 7f4f58da20e1066a888d3e4bcbef541db798a605 into 90a443f9c2437ca8a682a1ac625eba64e1d74a8a
Closes #2395
COPYBARA_INTEGRATE_REVIEW=https://github.com/google/googletest/pull/2395 from kuzkry:custom-type-traits-remove_reference 7f4f58da20e1066a888d3e4bcbef541db798a605
PiperOrigin-RevId: 266189044
|
|\
| |
| |
| | |
PiperOrigin-RevId: 264842713
|
| | |
|
|/ |
|
|
|
|
|
|
| |
Internal Change
PiperOrigin-RevId: 260939845
|
| |
|
|
|
|
|
|
|
|
| |
Add GTEST_FAIL_AT, an equivalent to ADD_FAILURE_AT but that
spawns a fatal failure rather than a non-fatal, eg. the equivalent
of an ASSERT* failure rather than an EXPECT* failure.
PiperOrigin-RevId: 244746609
|
|\
| |
| |
| | |
PiperOrigin-RevId: 244069956
|
|/
|
|
|
|
|
|
|
|
|
| |
Cast some values as their unsigned equivalents or `size_t` to match the
parameter type used for the template object under test. Also, provide
UInt32 equivalent delegate methods for some callers (with
int-equivalents for backwards compatibility).
This closes #2146.
Signed-off-by: Enji Cooper <yaneurabeya@gmail.com>
|
|
|
|
|
|
|
|
| |
Remove support for "global" ::string and ::wstring types.
This support existed for legacy codebases that existed from before namespaces
where a thing. It is no longer necessary.
PiperOrigin-RevId: 241335738
|
|
|
|
|
|
| |
Remove mention of unused type ProtocolMessage.
PiperOrigin-RevId: 239242706
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Fix emission of -Wzero-as-null-pointer-constant when comparing integers.
The following code fails to compile:
#pragma clang diagnostic error "-Wzero-as-null-pointer-constant"
void foo() {
EXPECT_EQ(0, 0);
}
This happens because gtest checks the first argument to EXPECT_EQ and
ASSERT_EQ is a null pointer constant. The magic it does to do this causes the
warning to be emitted.
This patch removes that check. It replaces the explicit check with a Compare
overload that can only be selected when 0 or nullptr is passed on the LHS
with a pointer on the right.
This patch does not suppress -Wzero-as-null-pointer-constant when users
are actually using it as NULL.
PiperOrigin-RevId: 236654634
|
|
|
|
|
|
| |
Change tests to use new Test Suite API
PiperOrigin-RevId: 228908894
|
|
|
|
|
|
|
| |
Replace testing::internal::ImplicitlyConvertible with std::is_convertible
Fixes #2054
PiperOrigin-RevId: 228334305
|
|
|
|
|
|
| |
Fix GTEST_IS_NULL_LITERAL_ for types that have magic implicit conversions.
PiperOrigin-RevId: 227879345
|
|
|
|
|
|
| |
Fixes #1261
PiperOrigin-RevId: 227740670
|
|
|
|
|
|
| |
TestCase->TestSuite refactoring
PiperOrigin-RevId: 227702164
|
|
|
|
|
|
| |
Internal Change
PiperOrigin-RevId: 227575279
|
|
|
|
|
|
|
|
| |
Remove the #ifs for old, unsupported and buggy compilers:
* old versions of GCC & MSVC
* Symbian
PiperOrigin-RevId: 227116941
|
|
|
|
|
|
| |
Add public entry point testing::RegisterTest.
PiperOrigin-RevId: 226350937
|
|
|
|
|
|
| |
Applied fixes for ClangTidy modernize-use-override and modernize-use-using.
PiperOrigin-RevId: 223800219
|
| |
|
|\
| |
| |
| | |
PiperOrigin-RevId: 219134349
|
|/ |
|
|
|
|
|
|
| |
Change ValuesArray to require much less template instantiation depth.
PiperOrigin-RevId: 218170842
|
|
|
|
|
|
|
|
|
|
|
| |
Now that googletest has moved to C++11, it should no longer
use NULL or 0 for the null pointer. This patch converts all
such usages to nullptr using clang-tidy.
This prevents LLVM from issuing -Wzero-as-null-pointer-constant
warnings.
PiperOrigin-RevId: 215814400
|
|
|
|
|
|
| |
Project import generated by Copybara.
PiperOrigin-RevId: 214456152
|
|
|
|
|
|
| |
Project import generated by Copybara.
PiperOrigin-RevId: 214441835
|
|
|
|
|
|
|
| |
Project import generated by Copybara.
Including recently accepted and merged PRs
PiperOrigin-RevId: 213856848
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
Shorten lines in unit tests
|
| |
|
| |
|
|
|
|
|
|
| |
Removing checks for C++11 from unit tests
PiperOrigin-RevId: 212990514
|
|
|
|
|
| |
error (with -Werror)
The unused attribute was removed with commit 3299a23 on 2018-02-23, but it currently breaks build of 1.8.1, because of -Werror GCC parameter as reported in issue #1825.
|
|
|
|
|
|
|
|
|
|
| |
1d9a1912e7f42e8ae66ea365b5b8508fecb31509
Closes #1658
Review and changes, mister@google.com
PiperOrigin-RevId: 210374286
|
| |
|
| |
|
|\ |
|
| | |
|
|\ \
| |/ |
|
| | |
|
|/ |
|
| |
|
|\ |
|
| |
| |
| |
| | |
objects would return failures registered at TestCase and UnitTest scopes, respectively.
|
|/ |
|