1. 15 Jan, 2021 1 commit
    • Abseil Team's avatar
      Googletest export · a2f906be
      Abseil Team authored
      Add "using is_gtest_matcher = void" to the DivisibleBy7Matcher example.
      
      PiperOrigin-RevId: 351797821
      a2f906be
  2. 14 Jan, 2021 2 commits
    • Abseil Team's avatar
      Googletest export · c13c27a5
      Abseil Team authored
      Change Matcher<T> to allow binding an implementation by value directly:
       - Drop the requirement of MatcherInterface. Doing manual type erasure avoid
         extra layers in many cases.
       - Avoid the adaptor for `MatcherInterface<T>` and `MatcherInterface<const T&>` mismatch.
       - Use a small object optimization when possible. This makes things like
         `_` and `Eq(1)` really cheap and do not require memory allocations.
       - Migrate some matchers to the new model to speed them up and to test the new framework. More matchers to come in future changes.
      
      PiperOrigin-RevId: 350580998
      c13c27a5
    • Abseil Team's avatar
      Googletest export · 48928352
      Abseil Team authored
      Move all docs into top-level docs/ directory
      
      PiperOrigin-RevId: 350211277
      48928352
  3. 22 Dec, 2020 1 commit
    • Abseil Team's avatar
      Googletest export · ca4b7c9f
      Abseil Team authored
      Give each of Naggy/Nice/StrictMock a base class whose constructor runs before
      the mocked class's constructor, and a destructor that runs after the mocked
      class's destructor, so that any mock methods run in either the constructor or
      destructor use the same strictness as other calls.
      
      PiperOrigin-RevId: 348511612
      ca4b7c9f
  4. 07 Dec, 2020 1 commit
    • Abseil Team's avatar
      Googletest export · 8779937d
      Abseil Team authored
      Fix errata in gmock cook_book.md ON_CALL example
      
      PiperOrigin-RevId: 346165890
      8779937d
  5. 13 Nov, 2020 1 commit
    • Abseil Team's avatar
      Googletest export · 9dce5e5d
      Abseil Team authored
      Use override instead of virtual for destructor
      
      https://google.github.io/styleguide/cppguide.html says: "Explicitly annotate overrides of virtual functions or virtual destructors with exactly one of an override or (less frequently) final specifier. Do not use virtual when declaring an override". The mocked class _should_ have a virtual destructor most of the times.
      
      PiperOrigin-RevId: 342082140
      9dce5e5d
  6. 06 Nov, 2020 1 commit
    • Abseil Team's avatar
      Googletest export · d89b3630
      Abseil Team authored
      Add support for ref qualifiers in MOCK_METHOD.
      
      PiperOrigin-RevId: 341047839
      d89b3630
  7. 14 Oct, 2020 1 commit
    • 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
  8. 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
  9. 24 Sep, 2020 1 commit
  10. 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
  11. 25 Aug, 2020 1 commit
  12. 12 Aug, 2020 1 commit
  13. 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
  14. 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
  15. 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
  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. 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
  18. 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
  19. 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
  20. 02 Jan, 2020 1 commit
  21. 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
  22. 27 Sep, 2019 2 commits
  23. 20 Aug, 2019 1 commit
  24. 16 Aug, 2019 2 commits
    • misterg's avatar
      Googletest export · eb78ee17
      misterg authored
      Fix broken link at beginning of "Mocking Non-virtual Methods" section.
      
      PiperOrigin-RevId: 263772074
      eb78ee17
    • misterg's avatar
      Googletest export · 976b37fe
      misterg authored
      Internal Change
      
      PiperOrigin-RevId: 263768422
      976b37fe
  25. 15 Aug, 2019 2 commits
  26. 07 Aug, 2019 2 commits
    • Abseil Team's avatar
      Googletest export · f8f5fcab
      Abseil Team authored
      Fix broken links.
      
      PiperOrigin-RevId: 262123510
      f8f5fcab
    • Abseil Team's avatar
      Googletest export · dd5402d9
      Abseil Team authored
      Add general explanation of MOCK_METHOD, including list of supported qualifiers.
      
      PiperOrigin-RevId: 262077180
      dd5402d9
  27. 02 Aug, 2019 1 commit
    • Abseil Team's avatar
      Googletest export · 6a2adc0e
      Abseil Team authored
      Remove markdown extension which isn't supported on github.
      
      PiperOrigin-RevId: 261321329
      6a2adc0e
  28. 30 Jul, 2019 1 commit
  29. 29 Jul, 2019 1 commit
  30. 18 Jul, 2019 2 commits
  31. 15 Jul, 2019 4 commits