summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Fix reference to source file in gmock FAQDino Radakovic2022-01-141-2/+2
| | | | | PiperOrigin-RevId: 421915817 Change-Id: I22800e8943f9eb050304c521701d4040b1b7a914
* Update test Docker image to GCC 11.2, Clang 14 (prerelease),Derek Mauro2022-01-141-1/+1
| | | | | | | CMake 3.22.1, and Bazel 4.2.2 PiperOrigin-RevId: 421814198 Change-Id: Ief4e39d7f077089f10afdc8d63cc1e51dc18e97f
* Fix run-on sentenceAbseil Team2022-01-121-1/+1
| | | | | | | dispatch. It will use the definition from the class the constructor of which PiperOrigin-RevId: 421291241 Change-Id: If81e3d6d3774edfbbb4baaec8a3cd96566b3b09c
* Merge pull request #3725 from bsilver8192:remove-another-disallow-assignCopybara-Service2022-01-112-204/+162
|\ | | | | | | | | PiperOrigin-RevId: 421044680 Change-Id: If585089811f1b67eab6f339125c27174ee5bc290
| * Remove another GTEST_DISALLOW_ASSIGN_ that crept inrefs/pull/3725/headBrian2022-01-061-2/+0
| | | | | | | | | | | | They were all removed in #2815, but it looks like this one got added from a Google export which missed the update. See #2815 for reasons why removing this is desirable.
* | Merge pull request #3713 from PhilipMourdjis:cmake-qnx-link-regexCopybara-Service2022-01-101-0/+3
|\ \ | |/ |/| | | | | PiperOrigin-RevId: 420863433 Change-Id: Ie8c43caff6fb2493ecd47bed50de9db87221f46f
| * link to regex on qnx in cmakerefs/pull/3713/headPhilip Mourdjis2021-12-211-0/+3
| |
* | Include the param names in the generated description of the MATCHER_P matchers.Abseil Team2021-12-277-65/+83
| | | | | | | | | | PiperOrigin-RevId: 418497526 Change-Id: Ie53c3c0810c10a32cbcb941e3ca1ee8fb1ddd9f9
* | Clarify "package" means "Bazel package", and promote `testonly=True` rather ↵Abseil Team2021-12-231-6/+6
| | | | | | | | | | | | | | than `testing` sub-directory. PiperOrigin-RevId: 417945818 Change-Id: I8686ee0414fb80269528677f291877a231d1c991
* | Makes the Python imports consistently use full paths from the repository root,Derek Mauro2021-12-2229-44/+34
| | | | | | | | | | | | | | | | | | unifying the behavior between Bazel and CMake This fixes one of the CI failures on Windows PiperOrigin-RevId: 417872531 Change-Id: I156989323b7e6d4a4420f4f9691b078829db933d
* | Makes TestForDeathTest.CRTDebugDeath only run when _DEBUG is definedDerek Mauro2021-12-211-24/+8
|/ | | | | PiperOrigin-RevId: 417678422 Change-Id: I8e42a906459b8fd5a7789a7ed728d12448046c44
* Merge pull request #3684 from ludgerpaehler:patch-1Copybara-Service2021-12-201-2/+2
|\ | | | | | | | | PiperOrigin-RevId: 417474317 Change-Id: I4c84f59ba272a6bec3f992f7afae36e1c5617fad
| * Fix typo in the queue test.refs/pull/3684/headLudger Paehler2021-11-251-2/+2
| |
* | Release tests for UnitTestOptions::MatchesFilterDino Radakovic2021-12-151-0/+32
| | | | | | | | | | PiperOrigin-RevId: 416567004 Change-Id: Ic407e0fcdf8ffd1c012a1b12df2837bdac1dccb4
* | Merge pull request #3694 from joshiayush:mainrefs/pull/3703/headCopybara-Service2021-12-081-3/+1
|\ \ | | | | | | | | | | | | PiperOrigin-RevId: 415014511 Change-Id: If2e20eb9408a23b5574a2c87f651c2905f14fcac
| * | Allow to specify a random seed independently of whether shuffling is requestedrefs/pull/3694/headAyush Joshi2021-12-041-3/+1
| | | | | | | | | | | | | | | | | | This commit fixes issue #3681 Signed-off-by: Ayush Joshi <ayush854032@gmail.com>
* | | Add NOLINT to address modernize-use-trailing-return-type in TEST_F usesAbseil Team2021-12-071-4/+8
|/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Example command: ``` clang_tidy '--config={Checks: "modernize-use-trailing-return-type"}' googletest-death-test-test.cc ``` Example error: ``` warning: use a trailing return type for this function [modernize-use-trailing-return-type] TEST(NotADeathTest, Test) { ^ ``` PiperOrigin-RevId: 414836261 Change-Id: I5f758423667559abfbf313190543666bc4ce0e6e
* | Support std::reference_wapper as a smart pointer type in gmockAbseil Team2021-12-032-0/+13
| | | | | | | | | | PiperOrigin-RevId: 413963503 Change-Id: I33440780bf087698f4e4325399227405885430b3
* | Fix typo in GoogleMock Cookbook.Abseil Team2021-12-021-1/+1
| | | | | | | | | | PiperOrigin-RevId: 413674665 Change-Id: I466f87348390f42434a70f183efdf0557be9dddd
* | Work around Android KitKat tzset bugAbseil Team2021-11-301-0/+6
|/ | | | | | | | | | | | | On KitKat, calling tzset with UTC+nn doesn't initialize all the timezone state. If the previous timezone was something like America/Chicago, then changing it to UTC+nn might have no effect. Setting the timezone to an intermediate value like "UTC" avoids the problem. Works around https://github.com/android/ndk/issues/1604. PiperOrigin-RevId: 413050236 Change-Id: I99b2d3330ae68f1d58cd2ca278d3eaae30bd1e83
* Merge pull request #3620 from hzeller:add-simple-ciCopybara-Service2021-11-241-0/+40
|\ | | | | | | | | PiperOrigin-RevId: 411929458 Change-Id: Id102172091fb708c0c8252da6d3570771fc15dba
| * Start a simple github actions CIrefs/pull/3620/headHenner Zeller2021-10-201-0/+40
| | | | | | | | | | | | Running on major platforms. Signed-off-by: Henner Zeller <h.zeller@acm.org>
* | Merge pull request #3664 from kuzkry:typo-fixesCopybara-Service2021-11-181-1/+1
|\ \ | | | | | | | | | | | | PiperOrigin-RevId: 410816561 Change-Id: I466575011dd468dd93b5ecb683955713d261e96b
| * | fix a typorefs/pull/3664/headKrystian Kuzniarek2021-11-161-1/+1
| | |
* | | Merge pull request #3669 from assafpr:mainCopybara-Service2021-11-181-1/+1
|\ \ \ | | | | | | | | | | | | | | | | PiperOrigin-RevId: 410816213 Change-Id: Ic33a2f432b2a125ce36355fa802b51a33a1eea23
| * | | fixed branch from master to main in readme.mdrefs/pull/3669/headassafpr2021-11-160-0/+0
| | | |
| * | | Update README.mdassafpr2021-11-161-1/+1
| |/ /
* | | Merge pull request #3672 from densamoilov:densamoilov/main/suppress-warningCopybara-Service2021-11-181-2/+2
|\ \ \ | |/ / |/| | | | | | | | PiperOrigin-RevId: 410816204 Change-Id: Ib4c4851ae4e8a612d60184f53cd565c75671c4c6
| * | Suppress unused-value warningrefs/pull/3672/headDenis Samoilov2021-11-171-2/+2
|/ / | | | | | | | | When _DEBUG is not defined the _CrtSetDbgFlag turns into ((int)0), which causes unused-value warning for clang.
* | Clarify "Times() after X" error messageTaylor Cramer2021-11-152-5/+5
| | | | | | | | | | | | | | | | The previous error message could be misinterpreted to mean that `Times` could not be used in combination with `WillRepeatedly`, when in fact the call to `Times` just needs to happen *first*. PiperOrigin-RevId: 410070405 Change-Id: I747d34a4334cf2e56d589dcad3a08a8f322d77c8
* | Update URLs in Bazel QuickstartDerek Mauro2021-11-151-5/+5
| | | | | | | | | | PiperOrigin-RevId: 410041507 Change-Id: I6ca514249a54e7fbe6d8fbf4f07317a39af40929
* | Fix typo in gmock-matchers_test.cc: CanDescribeNegationOfExpectingOneElment ↵Abseil Team2021-11-121-1/+1
| | | | | | | | | | | | | | => CanDescribeNegationOfExpectingOneElement PiperOrigin-RevId: 409484263 Change-Id: I7448d6f04a9868602e0bc8dec40ea3eb63d3e387
* | Merge pull request #3650 from tambry:std_iteratordinord2021-11-121-5/+7
|\ \ | | | | | | | | | PiperOrigin-RevId: 409417242
| * | Replace use of deprecated std::iteratorrefs/pull/3650/headRaul Tambre2021-11-051-5/+7
| | | | | | | | | | | | This was deprecated by P0174 in C++17.
* | | Googletest exportAbseil Team2021-11-101-1/+3
| | | | | | | | | | | | | | | | | | | | | | | | Revert CL that updated example for SetUpTestSuite/TearDownTestSuite to initialize static member variables inline. It seems that non-const static data members for some reason still must be initialized out-of-line. PiperOrigin-RevId: 408913846
* | | Merge pull request #3657 from BioDataAnalysis:bda_add_winerrdinord2021-11-101-1/+2
|\ \ \ | | | | | | | | | | | | PiperOrigin-RevId: 408896910
| * | | googletest/src/gtest-port.cc: Added GetLastError() on Windows for CreateThread()refs/pull/3657/headMario Emmenlauer2021-11-101-1/+2
| | | |
* | | | Googletest exportdmauro2021-11-101-3/+4
|/ / / | | | | | | | | | | | | | | | Explicitly used unsigned chars for testing for valid XML characters PiperOrigin-RevId: 408692969
* | | Googletest exportAbseil Team2021-11-091-3/+1
| | | | | | | | | | | | | | | | | | | | | | | | Update example for SetUpTestSuite/TearDownTestSuite to use modern C++ standards. Currently it is using an outdated C++ construct (defining static member variables separately from the declaration). PiperOrigin-RevId: 408663014
* | | Googletest exportAbseil Team2021-11-092-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add missing InitGoogleTest line in "Registering tests" example code Copying the original code gives the following error message """ IMPORTANT NOTICE - DO NOT IGNORE: This test program did NOT call testing::InitGoogleTest() before calling RUN_ALL_TESTS(). This is INVALID. Soon Google Test will start to enforce the valid usage. Please fix it ASAP, or IT WILL START TO FAIL. """ PiperOrigin-RevId: 408385714
* | | Googletest exportAbseil Team2021-11-092-0/+16
| | | | | | | | | | | | | | | | | | Add printer for std::type_info. PiperOrigin-RevId: 408375407
* | | Googletest exportAbseil Team2021-11-091-2/+5
|/ / | | | | | | | | | | Style only change. Make use of advanced testing functions `FloatLE` and `DoubleLE` consistent. PiperOrigin-RevId: 407660542
* | Googletest exportAbseil Team2021-11-031-1/+1
| | | | | | | | | | | | | | | | Address unused variable warning in gtest.h Closes #3645 PiperOrigin-RevId: 407393922
* | Merge pull request #3638 from limitedAtonement:3637-disabled-outputCJ Johnson2021-11-032-5/+20
|\ \ | | | | | | | | | PiperOrigin-RevId: 407356792
| * | Re #3637 Show Disabled Tests in testing outputrefs/pull/3638/headlmat2021-11-012-5/+21
| |/ | | | | | | | | | | | | | | | | | | | | | | | | Showing disabled tests is implemented by a new member function on the TestEventListener interface (which is responsible for printing testing output). The new function is called OnTestSkipped and it is invoked when a disabled test is encountered. The PrettyUnitTestResultPrinter has the canonical implementation of this new function. The BriefUnitTestResultPrinter and the EmptyTestEventListener get a nullary implementation. The JsonUnitTestResultPrinter and XmlUnitTestResultPrinter inherit that trivial implementation from the EmptyTestEventListener.
* | Googletest exportdmauro2021-11-031-9/+14
| | | | | | | | | | | | | | | | | | Guard #includes for threading related headers with GTEST_IS_THREADSAFE Some platforms that don't support threading give errors for including these headers PiperOrigin-RevId: 406133623
* | Googletest exportdmauro2021-11-031-69/+12
| | | | | | | | | | | | Remove the subprocess fallback code for older versions of Python PiperOrigin-RevId: 405967578
* | Googletest exportAbseil Team2021-11-031-0/+52
| | | | | | | | | | | | | | | | Add docs section on test sharding Fixes #3622 PiperOrigin-RevId: 405712812
* | Googletest exportAbseil Team2021-11-031-3/+3
| | | | | | | | | | | | Internal change PiperOrigin-RevId: 405710296
* | Googletest exportdmauro2021-11-033-23/+9
| | | | | | | | | | | | | | Remove GoogleTest's SleepMilliseconds function. It is only used in tests and a portable implementation is available. PiperOrigin-RevId: 405437102