summaryrefslogtreecommitdiffstats
path: root/googletest/test/gtest_unittest.cc
Commit message (Collapse)AuthorAgeFilesLines
* Googletest exportkuzkry2019-09-061-25/+0
| | | | | | | | | 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
* Merge pull request #2401 from kuzkry:custom-type-traits-add_lvalue_referenceXiaoyi Zhang2019-08-231-25/+0
|\ | | | | | | PiperOrigin-RevId: 264842713
| * remove a custom implementation of std::add_lvalue_referencerefs/pull/2401/headKrystian Kuzniarek2019-08-131-25/+0
| |
* | remove a custom implementation of std::remove_constrefs/pull/2393/headKrystian Kuzniarek2019-08-131-29/+2
|/
* Googletest exportmisterg2019-08-011-4/+7
| | | | | | Internal Change PiperOrigin-RevId: 260939845
* fix typosrefs/pull/2356/headKrystian Kuzniarek2019-07-301-4/+4
|
* Googletest exportAbseil Team2019-04-241-0/+13
| | | | | | | | 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
* Merge pull request #2170 from ngie-eign:issue-2146-ver2Gennadiy Civil2019-04-181-18/+21
|\ | | | | | | PiperOrigin-RevId: 244069956
| * clang: fix `-Wsign-conversion` errorsEnji Cooper2019-04-061-18/+18
|/ | | | | | | | | | | 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>
* Googletest exportAbseil Team2019-04-011-79/+0
| | | | | | | | 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
* Googletest exportAbseil Team2019-03-211-3/+2
| | | | | | Remove mention of unused type ProtocolMessage. PiperOrigin-RevId: 239242706
* Googletest exportAbseil Team2019-03-051-18/+52
| | | | | | | | | | | | | | | | | | | | | | | | 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
* Googletest exportmisterg2019-01-111-66/+69
| | | | | | Change tests to use new Test Suite API PiperOrigin-RevId: 228908894
* Googletest exportmisterg2019-01-081-30/+0
| | | | | | | Replace testing::internal::ImplicitlyConvertible with std::is_convertible Fixes #2054 PiperOrigin-RevId: 228334305
* Googletest exportAbseil Team2019-01-071-3/+23
| | | | | | Fix GTEST_IS_NULL_LITERAL_ for types that have magic implicit conversions. PiperOrigin-RevId: 227879345
* Googletest exportmisterg2019-01-031-0/+10
| | | | | | Fixes #1261 PiperOrigin-RevId: 227740670
* Googletest exportmisterg2019-01-031-0/+61
| | | | | | TestCase->TestSuite refactoring PiperOrigin-RevId: 227702164
* Googletest exportmisterg2019-01-021-1/+0
| | | | | | Internal Change PiperOrigin-RevId: 227575279
* Googletest exportAbseil Team2019-01-021-44/+3
| | | | | | | | Remove the #ifs for old, unsupported and buggy compilers: * old versions of GCC & MSVC * Symbian PiperOrigin-RevId: 227116941
* Googletest exportAbseil Team2018-12-201-0/+27
| | | | | | Add public entry point testing::RegisterTest. PiperOrigin-RevId: 226350937
* Googletest exportAbseil Team2018-12-031-26/+22
| | | | | | Applied fixes for ClangTidy modernize-use-override and modernize-use-using. PiperOrigin-RevId: 223800219
* Remove GTEST_HAS_HASH_SET/MAP checkRobin Lindén2018-11-101-3/+0
|
* Merge pull request #1941 from barkovv:masterGennadiy Civil2018-10-291-27/+6
|\ | | | | | | PiperOrigin-RevId: 219134349
| * Replaced all NULLs with nullptr in googletestVadim Barkov2018-10-281-6/+6
|/
* Googletest exportAbseil Team2018-10-221-0/+78
| | | | | | Change ValuesArray to require much less template instantiation depth. PiperOrigin-RevId: 218170842
* Apply clang-tidy modernize-use-nullptr to googletest.Abseil Team2018-10-051-490/+203
| | | | | | | | | | | 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
* Googletest exportAbseil Team2018-09-251-40/+4
| | | | | | Project import generated by Copybara. PiperOrigin-RevId: 214456152
* Googletest exportmisterg2018-09-251-4/+40
| | | | | | Project import generated by Copybara. PiperOrigin-RevId: 214441835
* Googletest exportAbseil Team2018-09-251-40/+4
| | | | | | | Project import generated by Copybara. Including recently accepted and merged PRs PiperOrigin-RevId: 213856848
* FormattingGennadiy Civil2018-09-231-101/+101
|
* FormattingGennadiy Civil2018-09-231-114/+118
|
* Fix unit testJonny007-MKD2018-09-231-1/+1
|
* Fix ColoredOutputTest.UsesColorsWhenTermSupportsColors againJonny007-MKD2018-09-231-1/+1
|
* Rename private member of AdditionalMessageJonny007-MKD2018-09-231-14/+15
| | | | Shorten lines in unit tests
* Readded changes from 6494f5232b130a29321e661166442bac324c4383Jonny007-MKD2018-09-231-7/+38
|
* [msys] fix unittest ColoredOutputTest.UsesColorsWhenTermSupportsColorsrefs/pull/1843/headMatthieu Longo2018-09-181-1/+1
|
* Googletest exportmisterg2018-09-141-10/+1
| | | | | | Removing checks for C++11 from unit tests PiperOrigin-RevId: 212990514
* Return GTEST_ATTRIBUTE_UNUSED_ on record_property_env to avoide comilation ↵Georgi D. Sotirov2018-09-121-1/+1
| | | | | 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.
* Merge 72a2836945e7a3dcee0730166704587e10bf64ee into ↵David Schuldenfrei2018-08-271-2/+2
| | | | | | | | | | 1d9a1912e7f42e8ae66ea365b5b8508fecb31509 Closes #1658 Review and changes, mister@google.com PiperOrigin-RevId: 210374286
* Comments changes, no functionality changes. Gennadiy Civil2018-08-141-3/+2
|
* Comments changes, no functionality changesrefs/pull/1740/headGennadiy Civil2018-08-141-2/+1
|
* Merge branch 'master' into deprecateGennadiy Civil2018-08-031-1/+1
|\
| * cleaning up and adding test changes to CMakeGennadiy Civil2018-08-021-1/+1
| |
* | Merge branch 'master' into deprecateGennadiy Civil2018-07-261-2/+2
|\ \ | |/
| * Formatting changes, code syncrefs/pull/1684/headGennadiy Civil2018-07-251-2/+2
| |
* | Disable MSVC function deprecation when using ClangLoo Rong Jie2018-07-131-2/+2
|/
* Formatting changes refs/pull/1607/headGennadiy Civil2018-05-231-1/+1
|
* Merge branch 'master' into StdLibVersioningJames Dennett2018-05-211-0/+22
|\
| * Fix the bug where ad_hoc_test_result() functions of UnitTest and TestCase ↵Jae Heon Lee2018-05-071-0/+22
| | | | | | | | objects would return failures registered at TestCase and UnitTest scopes, respectively.
* | Add unit test for CanonicalizeForStdLibVersioning.James Dennett2018-05-111-0/+25
|/