1. 14 Oct, 2020 3 commits
    • Abseil Team's avatar
      Googletest export · 8ccc5ec5
      Abseil Team authored
      Removing a semicolon that triggers a lint error in sample code.
      
      PiperOrigin-RevId: 337095451
      8ccc5ec5
    • Abseil Team's avatar
      Googletest export · d4df326d
      Abseil Team authored
      Use absl::StrCat in MATCHER_P example for consistency with https://abseil.io/tips/3
      
      PiperOrigin-RevId: 336878481
      d4df326d
    • Abseil Team's avatar
      Googletest export · d11c7617
      Abseil Team authored
      Suggest using generic lambdas for composing macros.
      
      Long chains of macros hurt legibility; generic lambdas are an easy way to abbreviate them, but are not an obvious solution to casual users.
      
      Compare:
      EXPECT_THAT(f(), ElementsAre(
          Property(&MyClass::foo, Property(&OtherClass::bar, Contains("x"))),
          Property(&MyClass::foo, Property(&OtherClass::bar, Contains("y"))));
      to:
      EXPECT_THAT(f(), ElementsAre(HasFooBar("x"), HasFooBar("y")));
      PiperOrigin-RevId: 336870137
      d11c7617
  2. 12 Oct, 2020 1 commit
  3. 27 Sep, 2020 1 commit
    • keshavgbpecdelhi's avatar
      Update cook_book.md · 1f3484a2
      keshavgbpecdelhi authored
      Please note that changing the default value for a type can make [you]* test.....
      Here "you" word doesn't make sense.. rather "your" seems to make it understandable.
      1f3484a2
  4. 24 Sep, 2020 1 commit
  5. 20 Sep, 2020 1 commit
    • Abseil Team's avatar
      Googletest export · 7aca8442
      Abseil Team authored
      Simplify FooConcrete static calls in googlemock cookbook.
      
      PiperOrigin-RevId: 332437041
      7aca8442
  6. 25 Aug, 2020 1 commit
  7. 24 Aug, 2020 1 commit
    • Abseil Team's avatar
      Googletest export · fc1e7788
      Abseil Team authored
      Fix DoAll to work with move-only sink arguments.
      
      This changes types of the first n - 1 actions so that they only get a readonly
      view of the arguments. The last action will accept move only objects.
      
      PiperOrigin-RevId: 327031893
      fc1e7788
  8. 12 Aug, 2020 1 commit
  9. 07 Aug, 2020 2 commits
    • Abseil Team's avatar
      Googletest export · 5a5caab3
      Abseil Team authored
      Fix DoAll to work with move-only sink arguments.
      
      This changes types of the first n - 1 actions so that they only get a readonly
      view of the arguments. The last action will accept move only objects.
      
      PiperOrigin-RevId: 324619666
      5a5caab3
    • Abseil Team's avatar
      Googletest export · 48ec6409
      Abseil Team authored
      Fix DoAll to work with move-only sink arguments.
      
      This changes types of the first n - 1 actions so that they only get a readonly
      view of the arguments. The last action will accept move only objects.
      
      PiperOrigin-RevId: 324600664
      48ec6409
  10. 28 Jul, 2020 2 commits
    • Abseil Team's avatar
      Googletest export · 18a9aeda
      Abseil Team authored
      Internal documentation change.
      
      PiperOrigin-RevId: 323612305
      18a9aeda
    • ofats's avatar
      Googletest export · c6430992
      ofats authored
      Stop using ADL for InvokeArgument action.
      
      PiperOrigin-RevId: 323234396
      c6430992
  11. 09 Jul, 2020 1 commit
    • ofats's avatar
      Googletest export · 08b78779
      ofats authored
      Replace ByRef with std::ref everywhere in docs.
      
      PiperOrigin-RevId: 320002303
      08b78779
  12. 26 Jun, 2020 1 commit
    • Abseil Team's avatar
      Googletest export · e5613588
      Abseil Team authored
      Normalize headers in gMock docs
      
      Increasing Header levels on two pages, to better match other pages in the same directory.
      
      PiperOrigin-RevId: 318280892
      e5613588
  13. 15 Jun, 2020 1 commit
    • Abseil Team's avatar
      Googletest export · 549c5d06
      Abseil Team authored
      gMock Cookbook: Fix incorrect comment about EXPECT priority order
      
      It's actually the last matching expectation that's used, not the first.
      
      PiperOrigin-RevId: 316490770
      549c5d06
  14. 05 Jun, 2020 1 commit
    • Abseil Team's avatar
      Googletest export · 210aab09
      Abseil Team authored
      gMock Cookbook: Slight rewording
      
      Remove "I" because documentation can have multiple authors. And remove unnecessary "guy".
      
      PiperOrigin-RevId: 314533746
      210aab09
  15. 03 Jun, 2020 1 commit
    • Abseil Team's avatar
      Googletest export · 26dadc22
      Abseil Team authored
      Note that EXPECT_EQ(actual_value, expected_value) or EXPECT_THAT(actual_value, Eq(expected_value)) is preferred over EXPECT_THAT(actual_value, expected_value).
      
      PiperOrigin-RevId: 314350852
      26dadc22
  16. 28 May, 2020 1 commit
    • Abseil Team's avatar
      Googletest export · 6b08b41e
      Abseil Team authored
      Spell out namespace for absl::Notification.
      
      PiperOrigin-RevId: 312300192
      6b08b41e
  17. 13 May, 2020 1 commit
  18. 01 May, 2020 2 commits
  19. 16 Apr, 2020 1 commit
    • Abseil Team's avatar
      Googletest export · 373d72b6
      Abseil Team authored
      Fix link to "After clause". Sorry, reader, but this heading is in another document!
      
      PiperOrigin-RevId: 305947971
      373d72b6
  20. 21 Mar, 2020 1 commit
  21. 17 Mar, 2020 1 commit
    • Abseil Team's avatar
      Googletest export · cfb5ef4e
      Abseil Team authored
      Remove public buganizer reference from googletest cookbook.
      
      It also seems that this bug is obsolete.
      
      PiperOrigin-RevId: 298598298
      cfb5ef4e
  22. 28 Feb, 2020 1 commit
    • Abseil Team's avatar
      Googletest export · fd538161
      Abseil Team authored
      Allow construction of an Action from a callable of zero args
      
      Action already allows construction from a callable with the same args as the mocked function, without needing to wrap the callable in Invoke. However, if you don't care about the arguments to the mocked function you need to either accept all of them or wrap your callable in InvokeWithoutArgs. This change makes both of those unnecessary, since it allows you to pass a no-args callable to Action directly.
      
      PiperOrigin-RevId: 296117034
      fd538161
  23. 07 Feb, 2020 1 commit
  24. 02 Jan, 2020 1 commit
  25. 16 Dec, 2019 1 commit
    • krzysio's avatar
      Googletest export · 0a0c8266
      krzysio authored
      Don't use fully qualified ::std types in code examples.
      
      Having a nested user-defined 'std' namespace anywhere in a program is a minefield and shouldn't be either explicitly supported or implicitly condoned.
      
      PiperOrigin-RevId: 285790182
      0a0c8266
  26. 02 Dec, 2019 1 commit
    • Abseil Team's avatar
      Googletest export · ae8d1fc8
      Abseil Team authored
      Clarify use of IsTrue and IsFalse matchers.
      
      These matchers are subtle and confusing: what are they for?
      The docs in the code are clear, but not very accessible.
      googletest/googlemock/include/gmock/gmock-more-matchers.h
      
      PiperOrigin-RevId: 283393275
      ae8d1fc8
  27. 20 Nov, 2019 1 commit
    • Abseil Team's avatar
      Googletest export · 4bf46623
      Abseil Team authored
      Add a breadcrumb about nullopt comparison near the Optional() matcher.
      
      Also add a note about how otherwise-spurious 'Eq()' may be needed in some cases. Without this, something like Field(&MyStruct::optional_field_without_equals_equals, absl::nullopt) doesn't work - it converts the nullopt to an optional<> of the non-equalable type, and fails to select the operator==(optional<>, nullopt_t) overload. The Eq() lets the type persist later into the match.
      
      PiperOrigin-RevId: 281305519
      4bf46623
  28. 02 Nov, 2019 1 commit
  29. 29 Oct, 2019 1 commit
    • Abseil Team's avatar
      Googletest export · a1f71dd5
      Abseil Team authored
      Remove badly formatted suggestion in gmock cheat sheet.
      
      PiperOrigin-RevId: 277060475
      a1f71dd5
  30. 25 Oct, 2019 1 commit
  31. 23 Oct, 2019 1 commit
    • Abseil Team's avatar
      Googletest export · 37f32278
      Abseil Team authored
      Add a matcher `testing::ReturnRoundRobin` which, on each call, returns the next element in the sequence, restarting at the beginning once it has reached the end.
      
      PiperOrigin-RevId: 276312136
      37f32278
  32. 22 Oct, 2019 1 commit
    • Abseil Team's avatar
      Googletest export · 011c4e23
      Abseil Team authored
      Rolling forward IsNan() matcher with fixes in test for -Wconversion issues. Use
      std::nanf and std::nanl where appropriate.
      PiperOrigin-RevId: 275523003
      011c4e23
  33. 18 Oct, 2019 1 commit
  34. 17 Oct, 2019 1 commit
  35. 01 Oct, 2019 1 commit