summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Move transitive dependencies of googletest to googletest_deps.bzl to allow ↵Deanna Garcia2023-03-162-16/+25
| | | | | | | other bazel projects to depend on that rule instead of googletests' transitive dependencies directly. PiperOrigin-RevId: 517166391 Change-Id: I9158e24d3f9613f3bcc811c028e1a15f213b7c40
* Internal Code ChangeAbseil Team2023-03-111-0/+1
| | | | | PiperOrigin-RevId: 515855852 Change-Id: I8016eefd45c36089e189bbd1ebbe9fdabe68255b
* [gtest] Drop custom-rolled heterogeneous comparator functors in favor of C++ ↵Lawrence Wolf-Sonkin2023-03-102-55/+23
| | | | | | | | | | standard ones * Standard heterogeneous comparator functors such as `std::equal_to<>` and `std::less<>` [have been available since C++14](https://en.cppreference.com/w/cpp/utility/functional/less_void) * Now that [C++14 is the minimum supported version of C++ in Googletest](https://github.com/google/oss-policies-info/blob/main/foundational-cxx-support-matrix.md), let's delete these duplications of the standard library PiperOrigin-RevId: 515743068 Change-Id: I1563a2f94039c3a6688429298555545a922f6d7e
* Apply clang-tidy fixesAbseil Team2023-03-092-4/+5
| | | | | PiperOrigin-RevId: 515265927 Change-Id: Iea11668fa4bbf08f6d418a3823e836fb5b874dcc
* Add a comment to clarify Fuchsia process launcher requirement.Abseil Team2023-03-081-0/+5
| | | | | PiperOrigin-RevId: 515154129 Change-Id: I3dd9e912e160d09d1f74a467336212701d4e1b7d
* Apply clang-tidy fixesAbseil Team2023-03-086-16/+3
| | | | | PiperOrigin-RevId: 514936218 Change-Id: I24c443a2ca75c875052b0cf2d0a48e808d03ae43
* Add -Wundef to the CI scripts when building with BazelTom Hughes2023-03-072-0/+4
| | | | | | | | The CMake build already adds -Wundef for gcc/clang. This change makes sure that the gcc/clang Bazel builds also compile correctly with -Wundef (#3267). PiperOrigin-RevId: 514864451 Change-Id: I7798a4a4c68d037e23625db24ee29df454367734
* Fix compilation of googletest-printers-test.cc when using -WundefTom Hughes2023-03-071-2/+4
| | | | | | | #3267 PiperOrigin-RevId: 514858420 Change-Id: Ic712aafad25f5e63ae48f647557de95cef890978
* Suppress std::string DLL interface warning introduced in commit ↵Abseil Team2023-03-071-1/+3
| | | | | | | | | f063cd25c90cbd4089a0ff96f5991df4f2721338 Fixes #4171 PiperOrigin-RevId: 514777144 Change-Id: I6f4b309c407684522fc1bc94dcc980ea1fe09cd9
* Internal Code ChangeAbseil Team2023-03-071-1/+2
| | | | | PiperOrigin-RevId: 514678702 Change-Id: I5b0089d905152ccb85022be395ed340e42586234
* Fix indentation syntax error in feature request issue templateDino Radakovic2023-03-061-3/+3
| | | | | | | Fixes #4166 PiperOrigin-RevId: 514427586 Change-Id: I947b2a0f3687430f27e37fcd2b3fff8b1cb0b16e
* Fix compilation with -Wundef.Tom Hughes2023-03-063-19/+23
| | | | | | | Fixes #3267 PiperOrigin-RevId: 513946600 Change-Id: I0dd1daa04aeb735a238c4c0af6676565d64cbc21
* Always specify definitions for internal macrosTom Hughes2023-03-061-0/+20
| | | | | | | | | | These macros should only be used within googletest, so changing them will not affect external users. This allows compiling with -Wundef (#3267). PiperOrigin-RevId: 513946162 Change-Id: I2f2b7df9123adeba4147593b2b55fde349ccce4f
* Remove GTEST_FOR_GOOGLE_ macroTom Hughes2023-03-061-4/+0
| | | | | | | | The "more details" warning message printed by this macro is no longer needed. PiperOrigin-RevId: 513945729 Change-Id: I644910216dbef2fe92eee3a648f2078e705cc7a1
* Replace "#if GTEST_HAS_ABSL" with "#ifdef GTEST_HAS_ABSL"Tom Hughes2023-03-066-21/+22
| | | | | | | This allows compilation with "-Wundef" (#3267). PiperOrigin-RevId: 513945230 Change-Id: I45ef19c7ff3d20e97216bd031d406a03365471da
* Use "#ifdef" with public macrosTom Hughes2023-03-0617-50/+50
| | | | | | | This allows compilation with "-Wundef" (#3267). PiperOrigin-RevId: 513944726 Change-Id: I1a3854bb2333d5dec6c0ff91ee1eddd9a766ab91
* Only define GTEST_IS_THREADSAFE to 1, not 0Tom Hughes2023-03-061-2/+0
| | | | | | | | | According to the comments, "Feature-indicating macros", such as GTEST_IS_THREADSAFE should be defined to 1 when supported and otherwise undefined (never 0). PiperOrigin-RevId: 513944266 Change-Id: I0f5c8bed107a5f20e957ec7c70339540ca2fe831
* Always specify definitions for internal macrosTom Hughes2023-03-061-3/+20
| | | | | | | | | | These macros should only be used within googletest, so changing them will not affect external users. This allows compiling with -Wundef (#3267). PiperOrigin-RevId: 513943800 Change-Id: I697b1005c29b0d5af06f583f202d86db48b567b9
* Use "#ifdef GTEST_OS_..." instead of "#if GTEST_OS_..."Tom Hughes2023-03-0627-263/+305
| | | | | | | This is compatible with compiling with "-Wundef" (#3267). PiperOrigin-RevId: 513943378 Change-Id: I47cf5fabbb77be061c4483a0adc54511af6b191c
* Internal Code ChangeAbseil Team2023-03-033-3/+3
| | | | | PiperOrigin-RevId: 513770561 Change-Id: I82fbed177c6ba4e2e5b776ae3e0255c868e32e25
* Merge pull request #4158 from VuPhamVan:mainCopybara-Service2023-02-281-1/+1
|\ | | | | | | | | PiperOrigin-RevId: 512959074 Change-Id: Ifbc63077aad573d4496a837f2f57584192573820
| * Fix typorefs/pull/4158/headVũ Phạm2023-02-191-1/+1
| |
* | Rephrase the description of TEST_F() arguments for clarity.Abseil Team2023-02-281-4/+4
| | | | | | | | | | PiperOrigin-RevId: 512937964 Change-Id: Ifa6369a80dc7d8efe60511417496d58317cfc28d
* | Eliminate argv list action parameter.Abseil Team2023-02-282-6/+5
| | | | | | | | | | PiperOrigin-RevId: 512791992 Change-Id: Ie7fc37ea06ea7d9f595268c9ec84a0e144c297bb
* | Merge pull request #4164 from sergio-nsk:patch-2Copybara-Service2023-02-271-0/+4
|\ \ | | | | | | | | | | | | PiperOrigin-RevId: 512753220 Change-Id: I3f7ad6c62c738d1d7405c50924b36deac8a9ac85
| * | Fix error in_death_test_child_process: undeclared identifierrefs/pull/4164/headSergey2023-02-211-0/+3
| | | | | | | | | The error occurs if !GTEST_HAS_DEATH_TEST on Windows.
* | | Reorder printers list.Phoebe Liang2023-02-271-2/+3
| | | | | | | | | | | | | | | PiperOrigin-RevId: 512708763 Change-Id: I1f24f2e1d17359aee5aa4cdf614c9357872ca03b
* | | Merge pull request #4143 from iwsfutcmd:patch-1Copybara-Service2023-02-271-0/+1
|\ \ \ | | | | | | | | | | | | | | | | PiperOrigin-RevId: 512696294 Change-Id: I6c135ca295e663df48db5b32bad4639d0c0c0774
| * | | Update testing.mdrefs/pull/4143/headBen Yang2023-02-021-0/+1
| | | | | | | | | | | | Fixed Parameter Generator table
* | | | Reformat to current g3doc style guide. No content changes.Abseil Team2023-02-271-11/+11
| | | | | | | | | | | | | | | | | | | | PiperOrigin-RevId: 512681427 Change-Id: I88b22d82430ed145b8342747adf300f3e734d43b
* | | | Add `const` qualifier to `gtest_sentinel` which doesn't change.Abseil Team2023-02-241-1/+1
| | | | | | | | | | | | | | | | | | | | PiperOrigin-RevId: 512094429 Change-Id: I29b116da65bc7471c43021d1650d90f7b2a685c2
* | | | Added a missing semicolon for GTEST_FLAG_SET code snippet.Abseil Team2023-02-231-1/+1
| | | | | | | | | | | | | | | | | | | | PiperOrigin-RevId: 511858980 Change-Id: I0f9e6ffdeb8ae809d662eb3ff46eab5a109a8d93
* | | | Avoid redundant declaration of static constexpr members in c++17Dino Radakovic2023-02-222-0/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Keep declarations in c++ < 17 using new macro, GTEST_INTERNAL_NEED_REDUNDANT_CONSTEXPR_DECL. Fixes #4148. PiperOrigin-RevId: 511510401 Change-Id: I76c3f2fccf07a0978adcbe5f8f0203b9d0c33872
* | | | Update googletest's test docker containersDino Radakovic2023-02-221-2/+2
| |/ / |/| | | | | | | | | | | PiperOrigin-RevId: 511500508 Change-Id: Ib686f93d317b95ac9b9bcb0a5566500316ba1929
* | | Remove int64_t cast in RecordPropertyTom Hughes2023-02-214-14/+12
| |/ |/| | | | | | | | | | | | | | | | | Historically, calls to RecordProperty with values that are convertible to int64_t have been casted to int64_t. The result was that types like float or double would be truncated when printed (e.g., 4.75 -> 4). This change removes the cast so that the types are printed in a more appropriate manner. PiperOrigin-RevId: 511238685 Change-Id: I80de5db14462da2a3e1f476086025ae514383a17
* | Fix link in ReportUninterestingCall messageAbseil Team2023-02-163-6/+6
| | | | | | | | | | | | | | | | | | | | This CL changes the link in the ReportUninterestingCall message from .../gmock_cook_book.md#knowing-when-to-expect to .../gmock_cook_book.md#knowing-when-to-expect-useoncall. This is necessary following https://github.com/google/googletest/commit/31ff597. PiperOrigin-RevId: 510138974 Change-Id: Ic98c84b07751d27dfc95eddbe7874f76d68b456f
* | Remove strdup usageAbseil Team2023-02-154-115/+54
| | | | | | | | | | PiperOrigin-RevId: 509947007 Change-Id: I31e1274afa889776829c877c40c9af589298dcf2
* | Remove some filesystem APIs and tests under !GTEST_HAS_FILE_SYSTEMAbseil Team2023-02-142-1/+10
| | | | | | | | | | PiperOrigin-RevId: 509537606 Change-Id: I68f7054e34b1fe76c1fd85099fffa4ee3c2b00c0
* | Avoid reliance on <any> header without RTTI on MSVCAbseil Team2023-02-131-1/+2
| | | | | | | | | | | | Fixes: #4144 PiperOrigin-RevId: 509322023 Change-Id: I52bdf6c25ff433327e174d3f9583b3d50b872d58
* | Fix _MSC_VER checkTom Hughes2023-02-081-1/+1
| | | | | | | | | | | | | | | | Use "#if defined(_MSC_VER)" instead of "#if _MSC_VER" to be consistent with other usages in googletest and to work with the "-Wundef" warning. PiperOrigin-RevId: 508087630 Change-Id: I29c16fd2fa51a9dfecd55e10362a020318318956
* | Remove GTEST_USES_PCRE referencesTom Hughes2023-02-072-32/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | Nothing defines GTEST_USES_PCRE anymore. It was only meant for internal use, so nothing public should be relying on it: https://github.com/google/googletest/issues/2735#issuecomment-644849438. Found when compiling with "-Wundef". Fixes #2735. PiperOrigin-RevId: 507823660 Change-Id: Ie19e576ff01dc3b16381338578ece92adccfc09b
* | Fix GTEST_HAS_ABSL define check for [-Werror=undef] compilationsMartijn Vels2023-02-071-2/+2
| | | | | | | | | | PiperOrigin-RevId: 507788664 Change-Id: Ib8cfbf3102a38e210fdae8a548fd84f0723ccc10
* | Add support for the alternative base64 encoding in RFC 4648 section 5 to ↵Abseil Team2023-02-063-2/+10
|/ | | | | | | `WhenBase64Unescaped`. PiperOrigin-RevId: 507527786 Change-Id: Ie5e088b1814981f6c760d7e25418a430172705ec
* Fix compiler flags in Linux presubmitTom Hughes2023-02-021-1/+1
| | | | | | | | | | CXX_FLAGS should be CXXFLAGS and the quoting was wrong. As a result, "-Werror -Wdeprecated" was not being applied. https://cmake.org/cmake/help/latest/envvar/CXXFLAGS.html PiperOrigin-RevId: 506656655 Change-Id: Ic5e861be3b9c32257eb9aabb845c931f3cba7122
* Fix -Wsign-conversion warningsTom Hughes2023-02-025-16/+50
| | | | | | | | | | | | | | | | | | | | | | googletest/test/gtest_xml_outfile2_test_.cc:48:39: warning: implicit conversion turns floating-point number into integer: 'float' to 'int64_t' (aka 'long') [-Wfloat-conversion] RecordProperty("TestFloatProperty", float_prop); ~~~~~~~~~~~~~~ ^~~~~~~~~~ googletest/test/gtest_xml_outfile2_test_.cc:51:40: warning: implicit conversion turns floating-point number into integer: 'double' to 'int64_t' (aka 'long') [-Wfloat-conversion] RecordProperty("TestDoubleProperty", double_prop); ~~~~~~~~~~~~~~ ^~~~~~~~~~~ googletest/test/gtest_xml_outfile2_test_.cc:57:39: warning: implicit conversion changes signedness: 'size_t' (aka 'unsigned long') to 'int64_t' (aka 'long') [-Wsign-conversion] RecordProperty("TestSizetProperty", size_t_prop); ~~~~~~~~~~~~~~ ^~~~~~~~~~~ PiperOrigin-RevId: 506644143 Change-Id: I9c2cd5f52daebe25e73bb97f696687797ed2cabf
* Remove unneccessary "#if _MSC_VER"Tom Hughes2023-02-022-6/+2
| | | | | | | | | The GTEST_DISABLE_MSC_WARNINGS macros already have an _MSC_VER check. This change also adds a missing GTEST_DISABLE_MSC_WARNINGS_POP_ in gtest-typed-test_test.cc. PiperOrigin-RevId: 506636248 Change-Id: Ifdc044528f5448fbf0175887d1671f1e1f3040b9
* Add a trailing decimal point to FormatTimeInMillisAsSeconds() output when inputAbseil Team2023-02-024-5/+24
| | | | | | | is an exact N seconds. PiperOrigin-RevId: 506610898 Change-Id: Idcd705c719e0e721148c350c8a14f27b9eb5c4f7
* Fix include orderTom Hughes2023-02-011-2/+2
| | | | | PiperOrigin-RevId: 506424617 Change-Id: If7f0beb92022589523db204a6b5cbe9249cebf62
* Remove GMOCK_RENAME_MAINTom Hughes2023-02-011-7/+0
| | | | | | | GMOCK_RENAME_MAIN appears unused. PiperOrigin-RevId: 506387823 Change-Id: I732c1f64f9038991a5c9aea1f2ad6fff07622afa
* Build gmock Python tests when building with cmakeTom Hughes2023-02-011-2/+4
| | | | | | | Fixes #4124. PiperOrigin-RevId: 506379032 Change-Id: Ibc44ffce1012bbf313565728a3d9e5e6e56ba660