| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
| |
Update XML and JSON output to be consistent with the standard.
PiperOrigin-RevId: 239833242
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
`CxxExceptionDeathTest.PrintsMessageForStdException`
Due to some caveats in the FreeBSD build system and the fact that the
source file is used to compile 2 different death tests with different
flags, I needed (as a shortterm workaround) to copy the test to 2
differently named files.
While this works for compiling the test, as I discovered, this doesn't
work with running `CxxExceptionDeathTest.PrintsMessageForStdException`,
as the testcase hardcodes `googletest-death-test_ex_test.cc`. Use `__FILE__`
when looking for failures, as opposed to looking for the hardcoded name
as it can vary depending on how the test was built.
Signed-off-by: Enji Cooper <yaneurabeya@gmail.com>
|
|\
| |
| |
| | |
PiperOrigin-RevId: 233789488
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
As noted in the patch description:
* Add DragonFly and GNU/kFreeBSD support.
* Implement GetThreadCount() for BSDs.
1. https://svnweb.freebsd.org/ports/head/devel/googletest/files/patch-bsd-defines?revision=488934
Signed-off-by: Enji Cooper <yaneurabeya@gmail.com>
|
|/
|
|
|
|
|
| |
Provide dummy accessors for private values that are set in initializers,
but not actually used.
Signed-off-by: Enji Cooper <yaneurabeya@gmail.com>
|
|
|
|
|
|
|
|
| |
Address -Wgnu-zero-variadic-macro-arguments
Originally in OSS PR #2063 https://github.com/google/googletest/pull/2063
Fix regression in INSTANTIATE_TEST_SUITE_P macro to accept function pointers properly.
PiperOrigin-RevId: 232316698
|
|
|
|
|
|
|
| |
Deduplicate testing::ReferenceWrapper with std::reference_wrapper.
Minor cleanups in matchers_test.
PiperOrigin-RevId: 229022872
|
|
|
|
|
|
| |
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
|
|
|
|
| |
PiperOrigin-RevId: 227030722
|
|
|
|
|
|
| |
Add public entry point testing::RegisterTest.
PiperOrigin-RevId: 226350937
|
|
|
|
|
|
| |
Unifdef c++11-related macros from googletest now that it requires C++11.
PiperOrigin-RevId: 225905601
|
|
|
|
|
|
| |
Internal Change
PiperOrigin-RevId: 225849972
|
|
|
|
|
|
| |
Support skipped in XML and JSON output
PiperOrigin-RevId: 225386540
|
|
|
|
|
|
| |
Applied fixes for ClangTidy modernize-use-override and modernize-use-using.
PiperOrigin-RevId: 223800219
|
|
|
|
|
| |
Fix: remove two added testcases that depend on gmock; I'll put them back later in a way that doesn't break the build.
PiperOrigin-RevId: 223227562
|
|
|
|
|
|
| |
Accept gmock matchers in EXPECT_EXIT and friends to allow matches other than simple regex matches on death output.
PiperOrigin-RevId: 223035409
|
|
|
|
|
|
| |
Move the Matcher<T> interface to googletest so I can use it to extend death test regex matching in a subsequent change.
PiperOrigin-RevId: 221675910
|
| |
|
|
|
|
|
|
|
|
| |
Improve Bazel build files.
New target gtest_prod allows access to the FRIEND_TEST macro without depending on the entirety of GTest in production executables. Additionally, duplicate config_setting rules were removed and formatting was adjusted.
PiperOrigin-RevId: 220279205
|
|
|
|
|
|
| |
Remove scoped_ptr replace with std::unique_ptr
PiperOrigin-RevId: 219291284
|
|\
| |
| |
| | |
PiperOrigin-RevId: 219134349
|
| | |
|
|/
|
|
|
|
| |
Remove linked_ptr and use std::shared_ptr instead
PiperOrigin-RevId: 219129336
|
|
|
|
|
|
| |
Remove linked_ptr and use std::shared_ptr instead
PiperOrigin-RevId: 218618184
|
|
|
|
|
|
| |
Remove linked_ptr and use std::shared_ptr instead
PiperOrigin-RevId: 218571466
|
|
|
|
|
|
| |
Honor GTEST_SKIP() in SetUp().
PiperOrigin-RevId: 218387359
|
|
|
|
|
|
| |
Change ValuesArray to require much less template instantiation depth.
PiperOrigin-RevId: 218170842
|
|\ |
|
| |
| |
| |
| |
| |
| |
| | |
New variadic implementation for gtest-param-test
Removed non-variadic implementation and added variadic for ValueArray and Values
PiperOrigin-RevId: 217703627
|
| |
| |
| |
| |
| |
| | |
googletest-param-test-test.cc), use testing::PrintToString
PiperOrigin-RevId: 216733373
|
| |
| |
| |
| |
| |
| |
| |
| | |
f203b2db77161fe54846ea9e839ebec81aeeccac
Closes #1899
PiperOrigin-RevId: 216719020
|
| |
| |
| |
| | |
PiperOrigin-RevId: 216423319
|
| |
| |
| |
| | |
PiperOrigin-RevId: 216417182
|
| |
| |
| |
| |
| |
| | |
Remove all mention of TR1 tuple and our own implementation of tuple.
PiperOrigin-RevId: 216395043
|
| |
| |
| | |
Remove references to googletest-tuple-test.cc
|
|\ \
| |/ |
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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
|
| |
| |
| |
| | |
PiperOrigin-RevId: 215789971
|
|\ \
| |/ |
|
| |
| |
| |
| |
| |
| |
| |
| |
| | |
75e834700d19aa373b428c7c746f951737354c28
Closes #1544
With refinements and changes
PiperOrigin-RevId: 215273083
|
|\ \
| |/ |
|
| |
| |
| |
| |
| |
| | |
Project import generated by Copybara.
PiperOrigin-RevId: 214456152
|