1. 17 Jan, 2023 2 commits
  2. 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
  3. 11 Jan, 2023 1 commit
  4. 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
  5. 04 Jan, 2023 2 commits
  6. 22 Dec, 2022 1 commit
  7. 20 Dec, 2022 2 commits
  8. 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
  9. 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
  10. 14 Dec, 2022 1 commit
  11. 12 Dec, 2022 3 commits
  12. 08 Dec, 2022 1 commit
  13. 07 Dec, 2022 1 commit
  14. 06 Dec, 2022 1 commit
  15. 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
  16. 29 Nov, 2022 1 commit
  17. 23 Nov, 2022 1 commit
  18. 21 Nov, 2022 1 commit
  19. 20 Nov, 2022 1 commit
  20. 16 Nov, 2022 1 commit
    • Abseil Team's avatar
      When printing floating-point numbers, print full precision by default. · 9c332145
      Abseil Team authored
      To make debug output readable, we still use the faster 6-digit precision
      sometimes, but only if it will round-trip.
      
      This way, when a test fails due to a very small difference in floating-point
      numbers, users will have enough digits to see the difference.
      
      PiperOrigin-RevId: 488958311
      Change-Id: Ibcac43f48a97006d89217530c69386cc4fa2735c
      9c332145
  21. 15 Nov, 2022 1 commit
  22. 14 Nov, 2022 2 commits
  23. 12 Nov, 2022 2 commits
  24. 11 Nov, 2022 1 commit
  25. 10 Nov, 2022 2 commits
  26. 08 Nov, 2022 1 commit
  27. 07 Nov, 2022 1 commit
  28. 05 Nov, 2022 1 commit
  29. 03 Nov, 2022 1 commit
  30. 25 Oct, 2022 1 commit