summaryrefslogtreecommitdiff
path: root/googletest
Commit message (Collapse)AuthorAgeFilesLines
* Give CreateArgvFromArgs internal linkageAbseil Team2023-05-111-1/+4
| | | | | | | It isn't declared in any header or referenced from any other file. PiperOrigin-RevId: 531209642 Change-Id: I9e7df37f737b00994f8845ed38c3b775879cb25c
* This trips up when compiling with -Wvla otherwise.Abseil Team2023-05-051-2/+2
| | | | | PiperOrigin-RevId: 529762901 Change-Id: I6ce4d630191bf265f847aef2d5dcc12a712faa60
* Merge pull request #4146 from lygstate:fixes_std_pair_diffCopybara-Service2023-05-022-5/+31
|\ | | | | | | | | PiperOrigin-RevId: 528781910 Change-Id: I4038332a6255921792bfb4a8098aa84243d48e15
| * Merge branch 'main' into fixes_std_pair_diffAndy Soffer2023-05-0153-748/+856
| |\ | |/ |/|
* | Merge pull request #4227 from Vertexwahn:fix-spellingCopybara-Service2023-05-014-4/+4
|\ \ | | | | | | | | | | | | PiperOrigin-RevId: 528474013 Change-Id: I60cd509aded8d8b02423ea1b07c2c27e3709a808
| * | Fix spellingVertexwahn2023-04-254-4/+4
| | |
* | | Use GTEST_INTERNAL_CPLUSPLUS_LANG instead of __cplusplusDino Radakovic2023-04-281-8/+9
| | | | | | | | | | | | | | | | | | | | | | | | Some versions of MSVC provide incorrect values for the latter and rely on _MSVC_LANG instead. Fixes #4226. PiperOrigin-RevId: 527919195 Change-Id: Ifcca4612074f5ebc5337094426866a187f79f90a
* | | Use Abseil Flag public API for flag parsing.Abseil Team2023-04-263-26/+63
|/ / | | | | | | | | | | | | This change brings InitGoogleTest semantic in accordance with the official documentation: only GoogleTest flags are removed from argc/argv. The rest of the flags remains in place. We do nothing special for flags with unrecognized gunit_/gtest_ prefix and we do not report them. PiperOrigin-RevId: 527257221 Change-Id: Ibb29a1bda1a44251a4ee579c0fb5bbdfd9965c21
* | Use '=default' to define trivial constructor/destructorsTom Hughes2023-04-2114-48/+48
| | | | | | | | | | | | | | https://clang.llvm.org/extra/clang-tidy/checks/modernize/use-equals-default.html PiperOrigin-RevId: 526079054 Change-Id: Ia4db21e3e5f58b90de05d52fd94b291ed06d785d
* | Add missing std includesTom Hughes2023-04-2015-0/+37
| | | | | | | | | | PiperOrigin-RevId: 525850646 Change-Id: I64387f5b933beb79cd05636dca81b7a75213383e
* | Use std::make_uniqueTom Hughes2023-04-201-1/+1
| | | | | | | | | | PiperOrigin-RevId: 525828947 Change-Id: I66f47c835bc93ba171eba0da8df09eff89c6c77b
* | Fix spellingTom Hughes2023-04-201-4/+4
| | | | | | | | | | PiperOrigin-RevId: 525820426 Change-Id: Ib5baa8da4a54ebb17b6ace12240ed03eedb46091
* | Add missing std includesTom Hughes2023-04-207-59/+66
| | | | | | | | | | PiperOrigin-RevId: 525794940 Change-Id: Ib2639058610c91cbffbb0f22a5e71573e0cbd651
* | Make parameter names in function declaration match the names in theTom Hughes2023-04-201-10/+10
| | | | | | | | | | | | | | | | | | definitions https://clang.llvm.org/extra/clang-tidy/checks/readability/inconsistent-declaration-parameter-name.html PiperOrigin-RevId: 525752102 Change-Id: Ibf9d3d1dbae8f95cfc7c6ad29fe4b677f4ee19cf
* | Merge pull request #3993 from pgroke-dt:work-around-GCC-11-ADL-bugCopybara-Service2023-04-121-6/+7
|\ \ | | | | | | | | | | | | PiperOrigin-RevId: 523706897 Change-Id: If6dcc97c81a20f8fe675241518ae1d6cf23ebf39
| * | work around GCC 6~11 ADL bugPaul Groke2022-09-151-6/+7
| | | | | | | | | | | | | | | | | | | | | see https://gcc.gnu.org/bugzilla/show_bug.cgi?id=51577 ADL seems to work properly when we do the SFINAE check via the return type, but not when using a dummy template parameter fix #3992
* | | Support --gtest_stream_result_to on macOSAbseil Team2023-04-112-2/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This seems to just have been an oversight. POSIX socket APIs work just fine on macOS. Fixes https://github.com/google/googletest/issues/4214. PiperOrigin-RevId: 523398386 Change-Id: I9d56cd9c6933318c1f0b0024f7fef44122fd0c83
* | | gtest.cc: run tests within a test suite in a deterministic order.Abseil Team2023-04-051-0/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | | Ensure that tests are run in the order specified in the source code, even if they are registered manually using RegisterTest. There should be no behavior change for the common case. PiperOrigin-RevId: 522136303 Change-Id: If155e2666780af0e514fbbf5ff2b157d5fe2fef1
* | | Rolled back due to breaking existing tests.Abseil Team2023-04-031-20/+0
| | | | | | | | | | | | | | | PiperOrigin-RevId: 521555658 Change-Id: I09742faceb82b2b7ceb423e850a8b50d532ad6ff
* | | gtest.cc: run tests within a test suite in a deterministic order.Aaron Jacobs2023-03-301-0/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | | Ensure that tests are run in the order specified in the source code, even if they are registered manually using RegisterTest. There should be no behavior change for the common case. PiperOrigin-RevId: 520729483 Change-Id: I400c78400c6929fccae0676214d993251f31888f
* | | Merge pull request #4103 from gonzalobg:bugfix/nvcxx_supportCopybara-Service2023-03-281-1/+1
|\ \ \ | | | | | | | | | | | | | | | | PiperOrigin-RevId: 520017251 Change-Id: Ib2be28787b739344c80a5d937f875737ba44a0ec
| * | | Add doc commentgonzalobg2023-03-231-1/+1
| | | |
| * | | Fix warnings with nvc++ as the compilerGonzalo Brito Gadeschi2022-12-281-1/+1
| | | | | | | | | | | | | | | | Closes #3849.
* | | | Internal Code ChangeAbseil Team2023-03-242-5/+5
| | | | | | | | | | | | | | | | | | | | PiperOrigin-RevId: 519071084 Change-Id: I6459d60606e93bf658e505544538367508722857
* | | | Internal Code ChangeAbseil Team2023-03-235-12/+9
| | | | | | | | | | | | | | | | | | | | PiperOrigin-RevId: 518810140 Change-Id: Id3f9471f827894761080bc9199b0a092dc829b5f
* | | | gtest.cc: add a newline after a failure when there is no OS stack trace.Aaron Jacobs2023-03-224-15/+21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This makes the behavior consistent when GTEST_STACK_TRACE_DEPTH is set to zero and not: there is always vertical whitespace separating failure messages. PiperOrigin-RevId: 518744611 Change-Id: I5b4af40633849850660504c3f497a76601d4311d
* | | | Fix minor bug -- if ExecDeathTestChildMain() ever returns, we should exitAbseil Team2023-03-211-2/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | with a non-zero status. PiperOrigin-RevId: 518306642 Change-Id: I72fb2764e477acb0362593c63f7748c4f64db0c6
* | | | Merge pull request #4157 from dpogue:patch-1Copybara-Service2023-03-201-0/+4
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | PiperOrigin-RevId: 518065122 Change-Id: I3a71c85626050b9aecebd4aa10d668ea3c48c82c
| * | | | Set CMP0069 policy to avoid warningsDarryl Pogue2023-02-171-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | When googletest and googlemock are included as a git submodule and referenced as part of an existing CMake project, multiple warnings are printed out due to not setting a value for the CMP0069 policy.
* | | | | Remove unused using-declarations in sample unit testsAbseil Team2023-03-202-2/+0
| | | | | | | | | | | | | | | | | | | | | | | | | PiperOrigin-RevId: 517910369 Change-Id: I87f29fb09bc83e7d1c7cffdf267b2f691d261c26
* | | | | Fix typo in test case name.Abseil Team2023-03-191-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | PiperOrigin-RevId: 517814929 Change-Id: I2bc498ba048d4deab1cf2a021487f63fe44c466d
* | | | | Merge pull request #4182 from venik:venik-char8-lib-fixCopybara-Service2023-03-173-7/+7
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | PiperOrigin-RevId: 517470997 Change-Id: I12b079dc1536f136dd0514871fe79f9678b1fd6a
| * | | | | __cpp_char8_t does not cover std::u8string implementation, but ↵Alexander Nikforov2023-03-063-3/+5
| | | | | | | | | | | | | | | | | | | | | | | | __cpp_lib_char8_t does
* | | | | | Merge pull request #4180 from sergio-nsk:patch-3Copybara-Service2023-03-161-2/+2
|\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | PiperOrigin-RevId: 517200256 Change-Id: I2ad5d4644f9e2095909ef646a7207c42a38082cf
| * | | | | | Environment variables are accessible in UWP/WinRT appsSergey2023-03-101-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Environment variables, for example `GTEST_FILTER`, `GTEST_OUTPUT` can be set before getting WinRT app run. GoogleTest can read environment variables and use them. It's easier than setting and passing command line parameters to WinRT app.
* | | | | | | [gtest] Drop custom-rolled heterogeneous comparator functors in favor of C++ ↵Lawrence Wolf-Sonkin2023-03-101-49/+16
|/ / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-076-16/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | PiperOrigin-RevId: 514936218 Change-Id: I24c443a2ca75c875052b0cf2d0a48e808d03ae43
* | | | | | 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
* | | | | | 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-0615-48/+48
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-0619-241/+283
|/ / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is compatible with compiling with "-Wundef" (#3267). PiperOrigin-RevId: 513943378 Change-Id: I47cf5fabbb77be061c4483a0adc54511af6b191c
* | | | | Eliminate argv list action parameter.Abseil Team2023-02-271-2/+1
| | | | | | | | | | | | | | | | | | | | | | | | | PiperOrigin-RevId: 512791992 Change-Id: Ie7fc37ea06ea7d9f595268c9ec84a0e144c297bb