1. 24 Apr, 2023 1 commit
    • Patryk Gawroński's avatar
      gmock: fix issue #4222 · 51eeae5a
      Patryk Gawroński authored
      Rename 'Result' struct to 'NonMoveableStruct' in
      gmock-spec-builders_test.cc in ExpectCallTest.NonMoveableType test
      51eeae5a
  2. 21 Apr, 2023 2 commits
  3. 20 Apr, 2023 1 commit
  4. 14 Apr, 2023 1 commit
  5. 11 Apr, 2023 1 commit
    • Abseil Team's avatar
      Fix FunctionMocker compilation slowdown in 9d21db9e · 8fa9461c
      Abseil Team authored
      The slowdown appears to be due to an implicit conversion of distinct (yet semantically identical) lambdas to `std::function`. Lifting out the lambdas into functors that don't get re-instantiated reduces compilation times by nearly half.
      
      Fixes #4156
      
      PiperOrigin-RevId: 523447948
      Change-Id: Ib0ae0761a54d7b1f2b706b14b2858eedf47e2297
      8fa9461c
  6. 28 Mar, 2023 1 commit
  7. 23 Mar, 2023 1 commit
  8. 21 Mar, 2023 1 commit
    • Abseil Team's avatar
      Internal Code Change · e9faae17
      Abseil Team authored
      PiperOrigin-RevId: 518213370
      Change-Id: I88d0acc195dadf8d03cd15c8534c721141db14ea
      e9faae17
  9. 20 Mar, 2023 1 commit
  10. 11 Mar, 2023 1 commit
    • Abseil Team's avatar
      Internal Code Change · 391ce627
      Abseil Team authored
      PiperOrigin-RevId: 515855852
      Change-Id: I8016eefd45c36089e189bbd1ebbe9fdabe68255b
      391ce627
  11. 10 Mar, 2023 1 commit
  12. 07 Mar, 2023 1 commit
    • Abseil Team's avatar
      Internal Code Change · 1a727c27
      Abseil Team authored
      PiperOrigin-RevId: 514678702
      Change-Id: I5b0089d905152ccb85022be395ed340e42586234
      1a727c27
  13. 06 Mar, 2023 2 commits
  14. 03 Mar, 2023 1 commit
    • Abseil Team's avatar
      Internal Code Change · cead3d57
      Abseil Team authored
      PiperOrigin-RevId: 513770561
      Change-Id: I82fbed177c6ba4e2e5b776ae3e0255c868e32e25
      cead3d57
  15. 16 Feb, 2023 1 commit
  16. 07 Feb, 2023 2 commits
  17. 06 Feb, 2023 1 commit
  18. 01 Feb, 2023 3 commits
  19. 30 Jan, 2023 2 commits
  20. 25 Jan, 2023 2 commits
  21. 24 Jan, 2023 2 commits
    • Tom Hughes's avatar
      Fix formatting of C++ files · 24917105
      Tom Hughes authored
      PiperOrigin-RevId: 504325204
      Change-Id: Iaa1d6d0ab1dccaaeef26f9cb109d530835499240
      24917105
    • Derek Mauro's avatar
      Remove FloatingPoint::Max() in favor of std::numeric_limits::max() · 544c96ed
      Derek Mauro authored
      In #4113 a user says Max clashes with a macro. Since it is only used in
      a test, use std::numeric_limits::max() instead.
      
      Note that in headers, the macro issue can be mitigated with
      parenthesis like this: `(std::numeric_limits<T>::max)()`
      
      PiperOrigin-RevId: 504284906
      Change-Id: Ibf430caec1a6afdf6b303534fec6a4fd00a6373f
      544c96ed
  22. 17 Jan, 2023 2 commits
  23. 12 Jan, 2023 1 commit
    • 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
  24. 05 Jan, 2023 1 commit
  25. 04 Jan, 2023 1 commit
  26. 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
  27. 12 Dec, 2022 1 commit
  28. 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
  29. 29 Nov, 2022 1 commit
  30. 08 Nov, 2022 1 commit
  31. 21 Oct, 2022 1 commit