1. 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
  2. 10 May, 2022 1 commit
    • Abseil Team's avatar
      Fixup some missing overrides in googletest. · bda85449
      Abseil Team authored
      This CL adds a couple missing overrides in the googletest sources.
      These were found downstream when -Wsuggest-override and
      -Wsuggest-destructor-override were enabled.
      
      PiperOrigin-RevId: 447754883
      Change-Id: I7bf35a8757cbc5ae157827037aa3d13f47392406
      bda85449
  3. 06 May, 2022 1 commit
  4. 03 May, 2022 2 commits
    • Abseil Team's avatar
      Fix example of DescribeMatcher to properly support negation. · 2a02723b
      Abseil Team authored
      PiperOrigin-RevId: 446259163
      Change-Id: I3ad5f405f44fc233f5cf5a18a274a9104b5c4ab8
      2a02723b
    • Abseil Team's avatar
      Use TEST_TMPDIR on MacOS as well if available. · 0027cf47
      Abseil Team authored
      Currently MacOS falls back to generic /tmp, but
      for all intents and purposes it should behave like
      other Unixes using the TEST_TMPDIR environment variable
      if available (this environment variable is set in bazel,
      which sets up a unique temp directory for the test
      process).
      
      While at it, remove an incorrect #endif comment, that
      looks like a leftover from some older implementation.
      
      PiperOrigin-RevId: 446108391
      Change-Id: I118eacf6e86a41d26cb81a130f7c54cccc0c5665
      0027cf47
  5. 02 May, 2022 2 commits
    • Aaron Jacobs's avatar
      gmock-actions: remove a no-longer-necessary friend declaration. · 42ca3da5
      Aaron Jacobs authored
      PiperOrigin-RevId: 445940487
      Change-Id: I26952a72327db0d308bbe57ca4d1d91a0d7defc8
      42ca3da5
    • Aaron Jacobs's avatar
      gmock-actions: support ByMove in a specialization of ReturnAction. · 51767261
      Aaron Jacobs authored
      Rather than branching on whether the return type is ByMoveWrapper within
      ReturnAction itself, hoist the distinction to outside. This allows the main
      class template to be modified without worrying about this special case, which
      means we can stop using a shared pointer to the value (introduced as a
      linked_ptr in commit 3d1c78b2 to support ByMove) in this commit and simplify
      the class template further in a future commit with the eventual aim of directly
      supporting move-only result types.
      
      PiperOrigin-RevId: 445938943
      Change-Id: I7bc71ea301d5e493ac6ecbe57d62738a48a2721a
      51767261
  6. 30 Apr, 2022 1 commit
  7. 28 Apr, 2022 1 commit
  8. 27 Apr, 2022 1 commit
  9. 26 Apr, 2022 5 commits
  10. 22 Apr, 2022 1 commit
  11. 21 Apr, 2022 1 commit
  12. 20 Apr, 2022 1 commit
  13. 18 Apr, 2022 1 commit
  14. 13 Apr, 2022 2 commits
  15. 09 Apr, 2022 1 commit
    • Abseil Team's avatar
      Add support for move-only and &&-qualified actions in WillOnce. · a1cc8c55
      Abseil Team authored
      This provides a type-safe way for an action to express that it wants to be
      called only once, or to capture move-only objects. It is a generalization of
      the type system-evading hack in ByMove, with the improvement that it works for
      _any_ action (including user-defined ones), and correctly expresses that the
      action can only be used with WillOnce. I'll make existing actions benefit in a
      future commit.
      
      PiperOrigin-RevId: 440496139
      Change-Id: I4145d191cca5655995ef41360bb126c123cb41d3
      a1cc8c55
  16. 06 Apr, 2022 2 commits
  17. 04 Apr, 2022 4 commits
  18. 23 Mar, 2022 2 commits
  19. 22 Mar, 2022 2 commits
  20. 21 Mar, 2022 1 commit
  21. 18 Mar, 2022 2 commits
  22. 15 Mar, 2022 2 commits
    • Abseil Team's avatar
      Running clang-format over all of GoogleTest · b007c54f
      Abseil Team authored
      A few tests are examining code locations and looking af the resulting line
      numbers to verify that GoogleTest shows those to users correctly. Some of those
      locations change when clang-format is run. For those locations, I've wrapped
      portions in:
      // clang-format off
      ...
      // clang-format on
      
      There may be other locations that are currently not tickled by running
      clang-format.
      
      PiperOrigin-RevId: 434844712
      Change-Id: I3a9f0a6f39eff741c576b6de389bef9b1d11139d
      b007c54f
    • Copybara-Service's avatar
      Merge pull request #3774 from sobczyk:main · 8a422b83
      Copybara-Service authored
      PiperOrigin-RevId: 434738675
      Change-Id: I7c8de4004bac6b750674d19e3e79c0695a42652e
      8a422b83
  23. 14 Mar, 2022 1 commit
  24. 08 Mar, 2022 2 commits
    • Abseil Team's avatar
      Mark ACTION_Pn()-generated functions as must-use-result, adding non-compilation tests. · ae1b7ad4
      Abseil Team authored
      This catches when a client creates an action and discards it, thinking that the action has actually been applied to something.
      
      This will help people who make the mistake of defining, for example, both `void Use(Foo*, Bar)` and `ACTION_P(Use, bar) { Use(arg, bar); }` for later application to a Foo.  With such an overload, a client may then write `Use(bar);`, selecting the Action<> overload and being confused why nothing happens.
      
      This also catches when a client defines their own action in terms of an ACTION_P()-generated one, invokes the Action<>'s builder, and then fails to invoke the resulting action, thinking it's operating on the outer action's parameters.
      
      PiperOrigin-RevId: 433197479
      Change-Id: I98e4389150d01a5e753230113016d9fc38b1d260
      ae1b7ad4
    • Szymon Sobik's avatar
      Add myself to contributors · 3c5320bf
      Szymon Sobik authored
      3c5320bf