1. 26 Apr, 2022 2 commits
  2. 22 Apr, 2022 1 commit
  3. 21 Apr, 2022 1 commit
  4. 13 Apr, 2022 2 commits
  5. 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
  6. 04 Apr, 2022 3 commits
    • Abseil Team's avatar
      gmock: improve SFINAE for actions involving arguments. · 137f67e9
      Abseil Team authored
      Avoid instantiating functions like std::get<index> for an out of range index
      when doing SFINAE on the invocability of the action itself.
      
      PiperOrigin-RevId: 439415110
      Change-Id: Ifc20285a6d526c34830870cd1910c2b2b92e1e81
      137f67e9
    • Abseil Team's avatar
      Use ResultOf()'s result_description when explaining match result. · 3ffa237f
      Abseil Team authored
      PiperOrigin-RevId: 439389646
      Change-Id: Ie34adcdd2b24378e85962efac53b7bb89ed93803
      3ffa237f
    • Derek Mauro's avatar
      Use the Abseil flags library when Abseil is present · 25dcdc7e
      Derek Mauro authored
      When built with `--define=absl=1` under Bazel, GoogleTest
      flags use ABSL_FLAG instead of GoogleTest's own implementation.
      
      There are some minor behavior differences in this mode.
      
      The most notable difference is that unrecognized flags result
      in a flag parsing error, and are not returned to the user though
      a modified argc/argv, unless they appear after the positional
      argument delimiter ("--").
      
      For example, to pass a non-Abseil flag, you would have to do
      ./mytest --gtest_color=false -- --myflag=myvalue
      
      The documentation at https://abseil.io/docs/cpp/guides/flags
      may be helpful in understanding the behavior.
      
      There are some other minor differences. For example,
      passing --help results in the program returning 1 instead of 0.
      
      https://github.com/google/googletest/issues/3646
      
      PiperOrigin-RevId: 439312700
      Change-Id: Id696a25f50f24a5b1785c45ca8fa59794f86fd5c
      25dcdc7e
  7. 23 Mar, 2022 2 commits
  8. 18 Mar, 2022 1 commit
  9. 15 Mar, 2022 1 commit
    • 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
  10. 08 Mar, 2022 1 commit
    • 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
  11. 10 Feb, 2022 1 commit
  12. 26 Jan, 2022 1 commit
  13. 18 Jan, 2022 1 commit
  14. 06 Jan, 2022 1 commit
  15. 27 Dec, 2021 1 commit
  16. 22 Dec, 2021 1 commit
  17. 03 Dec, 2021 1 commit
  18. 16 Nov, 2021 1 commit
  19. 15 Nov, 2021 1 commit
    • Taylor Cramer's avatar
      Clarify "Times() after X" error message · 1a3e2a26
      Taylor Cramer authored
      The previous error message could be misinterpreted to mean that `Times` could not be
      used in combination with `WillRepeatedly`, when in fact the call to `Times` just needs to happen *first*.
      
      PiperOrigin-RevId: 410070405
      Change-Id: I747d34a4334cf2e56d589dcad3a08a8f322d77c8
      1a3e2a26
  20. 12 Nov, 2021 1 commit
  21. 05 Nov, 2021 1 commit
  22. 03 Nov, 2021 1 commit
  23. 19 Oct, 2021 1 commit
  24. 28 Sep, 2021 1 commit
  25. 24 Sep, 2021 1 commit
  26. 23 Sep, 2021 1 commit
  27. 17 Sep, 2021 1 commit
  28. 15 Sep, 2021 5 commits
    • dmauro's avatar
      Googletest export · 8aa657ee
      dmauro authored
      Delete unsupported/deprecated scripts
      
      PiperOrigin-RevId: 396847020
      8aa657ee
    • Abseil Team's avatar
      Googletest export · 314adcd4
      Abseil Team authored
      gmock-internal-utils.cc: Use `static_cast` instead of implicit conversion between signed and unsigned types
      Fixes #3550
      
      PiperOrigin-RevId: 396826071
      314adcd4
    • dmauro's avatar
      Googletest export · 4ea61b96
      dmauro authored
      Rollback delete of unsupported/deprecated scripts
      
      PiperOrigin-RevId: 396699187
      4ea61b96
    • dmauro's avatar
      Googletest export · 7ee26830
      dmauro authored
      Delete unsupported/deprecated scripts
      
      PiperOrigin-RevId: 396685976
      7ee26830
    • Abseil Team's avatar
      Googletest export · 6202251f
      Abseil Team authored
      Introduce GMOCK_FLAG_GET and GMOCK_FLAG_SET macros.
      
      PiperOrigin-RevId: 396649214
      6202251f
  29. 24 Aug, 2021 1 commit
    • Abseil Team's avatar
      Googletest export · 62046339
      Abseil Team authored
      Bump `cmake_minimum_required` to 3.5.
      
      Delete conditional branches exclusive to older versions.
      
      Notable dependents:
        - github.com/grpc/grpc >= 3.5.1
        - github.com/abseil/abseil-cpp >= 3.5
        - github.com/googleapis/google-cloud-cpp >= 3.5
      
      On the other hand, github.com/protocolbuffers/protobuf is >= 3.1.3, but it only depends on GoogleTest 1.10.
      
      Fixes #3523
      
      PiperOrigin-RevId: 392073834
      62046339
  30. 13 Aug, 2021 1 commit
    • Abseil Team's avatar
      Googletest export · 21514e0b
      Abseil Team authored
      Identify bad specs of the type (const something, ...).
      
      PiperOrigin-RevId: 390346843
      21514e0b
  31. 06 Aug, 2021 1 commit