1. 25 Jan, 2023 6 commits
  2. 24 Jan, 2023 3 commits
  3. 18 Jan, 2023 1 commit
  4. 17 Jan, 2023 6 commits
    • Tom Hughes's avatar
      Replace deprecated python calls · bdb3b0a4
      Tom Hughes authored
      assert_ -> assertTrue/assertFalse/assertIn/assertNotIn
      assertEquals -> assertEqual
      
      PiperOrigin-RevId: 502654909
      Change-Id: I25d30095a83c3806606cb80d676b3c979495e6bd
      bdb3b0a4
    • Dino Radakovic's avatar
      Announce that GitHub actions are not GoogleTest's canonical CI · bba28fa8
      Dino Radakovic authored
      PiperOrigin-RevId: 502654465
      Change-Id: I51269e8c389ad63f3737132feec1b6d20dc4c314
      bba28fa8
    • Tom Hughes's avatar
      Fix -Wimplicit-int-float-conversion warning · 5cd81a78
      Tom Hughes authored
      We're intentionally losing precision in this case, so add a cast.
      
      googletest/googletest/include/gtest/gtest-printers.h:532:9: error:
      implicit conversion from 'int32_t' (aka 'int') to 'float' may lose precision
      [-Werror,-Wimplicit-int-float-conversion]
          if (static_cast<int32_t>(val * mulfor6 + 0.5) / mulfor6 == val) return 6;
              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~
      
      googletest/googletest/include/gtest/gtest-printers.h:544:9: error:
      implicit conversion from 'int32_t' (aka 'int') to 'float' may lose precision
      [-Werror,-Wimplicit-int-float-conversion]
          if (static_cast<int32_t>(val / divfor6 + 0.5) * divfor6 == val) return 6;
              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~
      
      PiperOrigin-RevId: 502646042
      Change-Id: I05989ee42675b531a9907616c9582a5a7c77bed6
      5cd81a78
    • Derek Mauro's avatar
      Update documentation for v1.13.0 · 9d697cc8
      Derek Mauro authored
      PiperOrigin-RevId: 502644180
      Change-Id: Id20b5e4eec22035da278f1767002657f66dbe79c
      9d697cc8
    • Derek Mauro's avatar
      Bump version to 1.13.0 in preparation for release · b796f7d4
      Derek Mauro authored
      PiperOrigin-RevId: 502626077
      Change-Id: I3aad27a8b725cf73163e52ef2e28e6cdfc13082b
      b796f7d4
    • Abseil Team's avatar
      gmock_output_test: normalize golden file output to unix line endings · ac7a126f
      Abseil Team authored
      When checked out on Windows, the repo might use \r\n line endings,
      and so the golden output has them.  Adjust for that.
      
      PiperOrigin-RevId: 502577222
      Change-Id: Iabfe537f6d95a49bf6bdcb934e855d28c65f6f89
      ac7a126f
  5. 12 Jan, 2023 2 commits
    • Tom Hughes's avatar
      Fix -Wshadow warnings · 356fc301
      Tom Hughes authored
      ../googlemock/test/gmock-actions_test.cc:687:36: warning: declaration of ‘v’ shadows a member of ‘testing::{anonymous}::ReturnTest_SupportsReferenceLikeReturnType_Test::TestBody()::Result’ [-Wshadow]
        687 |     Result(const std::vector<int>& v) : v(&v) {}  // NOLINT
            |            ~~~~~~~~~~~~~~~~~~~~~~~~^
      ../googlemock/test/gmock-actions_test.cc:686:29: note: shadowed declaration is here
        686 |     const std::vector<int>* v;
            |                             ^
      
      ../googlemock/test/gmock-actions_test.cc: In constructor ‘testing::{anonymous}::ReturnTest_PrefersConversionOperator_Test::TestBody()::Out::Out(int)’:
      ../googlemock/test/gmock-actions_test.cc:720:28: warning: declaration of ‘x’ shadows a member of ‘testing::{anonymous}::ReturnTest_PrefersConversionOperator_Test::TestBody()::Out’ [-Wshadow]
        720 |     explicit Out(const int x) : x(x) {}
            |                  ~~~~~~~~~~^
      ../googlemock/test/gmock-actions_test.cc:718:9: note: shadowed declaration is here
        718 |     int x;
            |         ^
      
      PiperOrigin-RevId: 501580618
      Change-Id: I584710fbbe440ec724f88746e51f3be5653c32d5
      356fc301
    • Derek Mauro's avatar
      Add an explicit #error that C++ versions less than C++14 are not supported · b5401fef
      Derek Mauro authored
      PiperOrigin-RevId: 501568410
      Change-Id: I0f78cd96dc9204c8ec97a1cdd09a9d63a613cc5b
      b5401fef
  6. 11 Jan, 2023 1 commit
  7. 05 Jan, 2023 2 commits
    • Tom Hughes's avatar
      Fix GTEST_OS_ESP8266 check · 93454216
      Tom Hughes authored
      Everywhere else in the code, we check the value of GTEST_OS_ESP8266, not just
      whether it is defined.
      
      PiperOrigin-RevId: 499946909
      Change-Id: I86f7e8947abb4e928fc24d1416d8237987b27845
      93454216
    • Tom Hughes's avatar
      IWYU: Add missing std includes · e5e46b09
      Tom Hughes authored
      PiperOrigin-RevId: 499893032
      Change-Id: I33304802b7c82ae2d008f3ee89df38866e5f57ba
      e5e46b09
  8. 04 Jan, 2023 2 commits
  9. 22 Dec, 2022 1 commit
  10. 20 Dec, 2022 2 commits
  11. 19 Dec, 2022 1 commit
    • Abseil Team's avatar
      Specify a name for a `Property` in a code example. · a4e0be89
      Abseil Team authored
      It is good practice to specify a name for the `testing::Property` matcher's use in diagnostics, and we should do so in our examples.
      
      PiperOrigin-RevId: 496406309
      Change-Id: Ibb4d1ba63771b5d6855442b91564027cda8ddaca
      a4e0be89
  12. 15 Dec, 2022 1 commit
    • Abseil Team's avatar
      Shut up a Clang warning. · 3fa7f983
      Abseil Team authored
      Clang warns on this pattern because it looks like the author might
      have meant to use the value of the first part of the comma operator,
      so it warns that it isn't being used. The cast here signals to Clang
      that this behavior is intentional.
      
      This was discovered while updating gmock in Android. Clang's -Wcomma
      warning is on by default with either -Wall or -Werror, so users of
      gmock with those on in combination with -Werror are unable to build
      without this fix.
      
      PiperOrigin-RevId: 495655990
      Change-Id: Iaf27e2199669f5b6185a877738234e551b6b6556
      3fa7f983
  13. 14 Dec, 2022 1 commit
  14. 12 Dec, 2022 3 commits
  15. 08 Dec, 2022 1 commit
  16. 07 Dec, 2022 1 commit
  17. 06 Dec, 2022 1 commit
  18. 30 Nov, 2022 1 commit
    • Abseil Team's avatar
      Make SizeIsMatcher::Impl conform to the contract of MatcherDescriberInterface. · 1f643f71
      Abseil Team authored
      MatcherDescriberInterface specifies that DescribeTo "should print a verb phrase", but "size ..." is not a verb phrase. Currently, ElementsAre(SizeIs(9)) is described as "has 1 element that size is equal to 9". With this change, it will be described as "has 1 element that has a size that is equal to 9".
      
      PiperOrigin-RevId: 492022324
      Change-Id: I4083335f2419462464957521c1e033643b53b763
      1f643f71
  19. 29 Nov, 2022 1 commit
  20. 23 Nov, 2022 1 commit
  21. 21 Nov, 2022 1 commit
  22. 20 Nov, 2022 1 commit