1. 13 Jun, 2022 1 commit
  2. 11 May, 2022 1 commit
    • Aaron Jacobs's avatar
      gmock-actions: make OnceAction public. · 6386897f
      Aaron Jacobs authored
      So that it can be referenced in conversion operators for actions that need to
      know the concrete return type.
      
      PiperOrigin-RevId: 447889344
      Change-Id: I643d3298bc8effd08741282a956c221f9d67d378
      6386897f
  3. 28 Apr, 2022 1 commit
  4. 02 Dec, 2021 1 commit
  5. 13 Oct, 2021 1 commit
    • Abseil Team's avatar
      Googletest export · 178cfacb
      Abseil Team authored
      add missing using ::testing::DoAll when DoAll used in example
      
      PiperOrigin-RevId: 402416497
      178cfacb
  6. 16 Sep, 2021 1 commit
  7. 19 Aug, 2021 1 commit
  8. 05 Aug, 2021 1 commit
  9. 02 Jun, 2021 2 commits
  10. 19 May, 2021 1 commit
  11. 18 May, 2021 1 commit
    • Abseil Team's avatar
      Googletest export · eb6e9273
      Abseil Team authored
      Docs: Clarify that expectations must be set before mocks are exercised
      PiperOrigin-RevId: 373644072
      eb6e9273
  12. 29 Apr, 2021 3 commits
    • Abseil Team's avatar
      Googletest export · 065a0c81
      Abseil Team authored
      Clean up links to Matchers Reference
      
      PiperOrigin-RevId: 370821457
      065a0c81
    • Abseil Team's avatar
      Googletest export · 680a5aa3
      Abseil Team authored
      Move matchers reference from cheat sheet into its own document
      
      PiperOrigin-RevId: 370749693
      680a5aa3
    • Abseil Team's avatar
      Googletest export · 719fd2d3
      Abseil Team authored
      Update the `DescribeTo` signature in the code example at the Writing New Polymorphic Matchers section in gmock_cook_book.
      
      `os` should be a pointer to be consistent with the implementation, which dereference it as `*os`.
      
      PiperOrigin-RevId: 370693387
      719fd2d3
  13. 08 Apr, 2021 1 commit
    • Abseil Team's avatar
      Googletest export · 6a5eb807
      Abseil Team authored
      Update the example for Notify to use a lambda.
      It is much less boilerplate and easier to remember.
      
      PiperOrigin-RevId: 367284222
      6a5eb807
  14. 25 Mar, 2021 2 commits
  15. 19 Feb, 2021 1 commit
  16. 18 Feb, 2021 2 commits
  17. 05 Feb, 2021 3 commits
    • Abseil Team's avatar
      Googletest export · f3ef7e17
      Abseil Team authored
      Fix table formatting in cookbook
      
      PiperOrigin-RevId: 355659722
      f3ef7e17
    • Abseil Team's avatar
      Googletest export · b6323d21
      Abseil Team authored
      Add a note to recommend against using `Property()` for functions that the test author does not own.
      
      PiperOrigin-RevId: 355295183
      b6323d21
    • Abseil Team's avatar
      Googletest export · 72611884
      Abseil Team authored
      Document the fact that MatchAndExplain(T, MatchResultListener*) is supported.
      
      PiperOrigin-RevId: 354172275
      72611884
  18. 26 Jan, 2021 3 commits
    • Abseil Team's avatar
      Googletest export · 273f8cb0
      Abseil Team authored
      Add missing `is_gtest_matcher` to the polymorphic matcher example.
      
      PiperOrigin-RevId: 353881883
      273f8cb0
    • Abseil Team's avatar
      Googletest export · 8a761867
      Abseil Team authored
      Delete internal tags from docs
      
      PiperOrigin-RevId: 353769887
      8a761867
    • Abseil Team's avatar
      Googletest export · 14098f20
      Abseil Team authored
      Merge CONTRIBUTORS, delete LICENSEs in googletest/ and googlemock/
      
      PiperOrigin-RevId: 352558822
      14098f20
  19. 15 Jan, 2021 2 commits
    • Abseil Team's avatar
      Googletest export · d128fc82
      Abseil Team authored
      Fixes #3222, fixes #3225, closes #3223
      
      PiperOrigin-RevId: 352066131
      d128fc82
    • Abseil Team's avatar
      Googletest export · a2f906be
      Abseil Team authored
      Add "using is_gtest_matcher = void" to the DivisibleBy7Matcher example.
      
      PiperOrigin-RevId: 351797821
      a2f906be
  20. 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
  21. 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
  22. 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
  23. 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
  24. 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
  25. 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
  26. 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
  27. 24 Sep, 2020 1 commit
  28. 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
  29. 25 Aug, 2020 1 commit