1. 15 Dec, 2021 1 commit
  2. 08 Dec, 2021 1 commit
  3. 07 Dec, 2021 1 commit
    • Abseil Team's avatar
      Add NOLINT to address modernize-use-trailing-return-type in TEST_F uses · 4c5650f6
      Abseil Team authored
      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
      4c5650f6
  4. 04 Dec, 2021 1 commit
  5. 03 Dec, 2021 1 commit
  6. 02 Dec, 2021 1 commit
  7. 30 Nov, 2021 1 commit
    • Abseil Team's avatar
      Work around Android KitKat tzset bug · bb921608
      Abseil Team authored
      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
      bb921608
  8. 24 Nov, 2021 1 commit
  9. 18 Nov, 2021 3 commits
  10. 17 Nov, 2021 1 commit
  11. 16 Nov, 2021 3 commits
  12. 15 Nov, 2021 2 commits
    • Taylor Cramer's avatar
      Clarify "Times() after X" error message · 1a3e2a26
      Taylor Cramer authored
      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
      1a3e2a26
    • Derek Mauro's avatar
      Update URLs in Bazel Quickstart · 4848324c
      Derek Mauro authored
      PiperOrigin-RevId: 410041507
      Change-Id: I6ca514249a54e7fbe6d8fbf4f07317a39af40929
      4848324c
  13. 12 Nov, 2021 2 commits
  14. 10 Nov, 2021 4 commits
  15. 09 Nov, 2021 4 commits
    • Abseil Team's avatar
      Googletest export · 79efd968
      Abseil Team authored
      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
      79efd968
    • Abseil Team's avatar
      Googletest export · aa486f16
      Abseil Team authored
      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
      aa486f16
    • Abseil Team's avatar
      Googletest export · c3792825
      Abseil Team authored
      Add printer for std::type_info.
      
      PiperOrigin-RevId: 408375407
      c3792825
    • Abseil Team's avatar
      Googletest export · d4e084a1
      Abseil Team authored
      Style only change. Make use of advanced testing functions `FloatLE` and `DoubleLE` consistent.
      
      PiperOrigin-RevId: 407660542
      d4e084a1
  16. 05 Nov, 2021 1 commit
  17. 03 Nov, 2021 8 commits
    • Abseil Team's avatar
      Googletest export · bf0701da
      Abseil Team authored
      Address unused variable warning in gtest.h
      
      Closes #3645
      
      PiperOrigin-RevId: 407393922
      bf0701da
    • CJ Johnson's avatar
      Merge pull request #3638 from limitedAtonement:3637-disabled-output · 51536300
      CJ Johnson authored
      PiperOrigin-RevId: 407356792
      51536300
    • dmauro's avatar
      Googletest export · cbf46d3f
      dmauro authored
      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
      cbf46d3f
    • dmauro's avatar
      Googletest export · 5a93ce12
      dmauro authored
      Remove the subprocess fallback code for older versions of Python
      
      PiperOrigin-RevId: 405967578
      5a93ce12
    • Abseil Team's avatar
      Googletest export · 7cf37a18
      Abseil Team authored
      Add docs section on test sharding
      
      Fixes #3622
      
      PiperOrigin-RevId: 405712812
      7cf37a18
    • Abseil Team's avatar
      Googletest export · b3062166
      Abseil Team authored
      Internal change
      
      PiperOrigin-RevId: 405710296
      b3062166
    • dmauro's avatar
      Googletest export · 489ef888
      dmauro authored
      Remove GoogleTest's SleepMilliseconds function.
      It is only used in tests and a portable implementation is available.
      
      PiperOrigin-RevId: 405437102
      489ef888
    • dmauro's avatar
      Googletest export · f503588a
      dmauro authored
      Replace the multiple implementations of Notification with a single
      portable implementation.
      
      The also removes the awkward loop with sleep in Notification and will
      allow the removal of SleepMilliseconds.
      
      PiperOrigin-RevId: 405399733
      f503588a
  18. 01 Nov, 2021 1 commit
    • lmat's avatar
      Re #3637 Show Disabled Tests in testing output · 3c958ac4
      lmat authored
      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.
      3c958ac4
  19. 20 Oct, 2021 1 commit
  20. 13 Oct, 2021 2 commits
    • Abseil Team's avatar
      Googletest export · 16f637fb
      Abseil Team authored
      Add printer for __{u,}int128_t.
      
      PiperOrigin-RevId: 402417369
      16f637fb
    • Abseil Team's avatar
      Googletest export · 178cfacb
      Abseil Team authored
      add missing using ::testing::DoAll when DoAll used in example
      
      PiperOrigin-RevId: 402416497
      178cfacb