1. 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
  2. 10 Feb, 2022 1 commit
  3. 26 Jan, 2022 1 commit
  4. 27 Dec, 2021 1 commit
  5. 22 Dec, 2021 1 commit
  6. 03 Dec, 2021 1 commit
  7. 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
  8. 12 Nov, 2021 1 commit
  9. 05 Nov, 2021 1 commit
  10. 03 Nov, 2021 1 commit
  11. 28 Sep, 2021 1 commit
  12. 24 Sep, 2021 1 commit
  13. 17 Sep, 2021 1 commit
  14. 15 Sep, 2021 1 commit
    • Abseil Team's avatar
      Googletest export · 6202251f
      Abseil Team authored
      Introduce GMOCK_FLAG_GET and GMOCK_FLAG_SET macros.
      
      PiperOrigin-RevId: 396649214
      6202251f
  15. 04 Aug, 2021 1 commit
    • Abseil Team's avatar
      Googletest export · 652ec31f
      Abseil Team authored
      Introduce a new matcher for unescaping Base-64 strings to gmock.
      
      PiperOrigin-RevId: 388471904
      652ec31f
  16. 24 Jul, 2021 1 commit
  17. 07 Jul, 2021 2 commits
    • Abseil Team's avatar
      Googletest export · 8306020a
      Abseil Team authored
      Add `Conditional` wrapper to gtest
      
      This follows an initial proposal for an 'EqIff` matcher. `Conditional` was considered more precise as an EqIff() matcher may suffer from `Iff` not being universally understood.
      
      PiperOrigin-RevId: 383407665
      8306020a
    • Abseil Team's avatar
      Googletest export · 977cffc4
      Abseil Team authored
      Introduce GTEST_FLAG_GET and GTEST_FLAG_SET macros.
      
      PiperOrigin-RevId: 382808313
      977cffc4
  18. 30 Jun, 2021 1 commit
    • Abseil Team's avatar
      Googletest export · 4ec4cd23
      Abseil Team authored
      Implement 'Contains(e).Times(n)' matcher modifier which allows to test for arbitrary occurrences including absence with Times(0).
      
      PiperOrigin-RevId: 382210276
      4ec4cd23
  19. 26 Jun, 2021 1 commit
  20. 02 Jun, 2021 1 commit
    • dmauro's avatar
      Googletest export · 8ceecc27
      dmauro authored
      Updates Linux docker image to use Bazel 4.1.0 and GCC 11.1
      Updates Bazel dependencies
      Removes the last usage of the deprecated and removed Python2
      
      PiperOrigin-RevId: 375759184
      8ceecc27
  21. 13 May, 2021 1 commit
    • Abseil Team's avatar
      Googletest export · 662fe38e
      Abseil Team authored
      Support templating MockFunction over function objects besides std::function.
      
      PiperOrigin-RevId: 373586967
      662fe38e
  22. 15 Apr, 2021 1 commit
  23. 04 Mar, 2021 1 commit
    • Abseil Team's avatar
      Googletest export · e7e59176
      Abseil Team authored
      Format WORKSPACE and googlemock/test/BUILD.bazel using buildifier
      
      PiperOrigin-RevId: 360913861
      e7e59176
  24. 18 Feb, 2021 2 commits
  25. 11 Feb, 2021 2 commits
  26. 05 Feb, 2021 1 commit
    • Abseil Team's avatar
      Googletest export · d1143988
      Abseil Team authored
      Remove uses of GTEST_HAS_TYPED_TEST_P and GTEST_HAS_TYPED_TEST.
      
      PiperOrigin-RevId: 353935996
      d1143988
  27. 26 Jan, 2021 2 commits
    • ofats's avatar
      Googletest export · 59dea67b
      ofats authored
      Remove scripts for code generating together with related files.
      
      PiperOrigin-RevId: 352805926
      59dea67b
    • Abseil Team's avatar
      Googletest export · 14098f20
      Abseil Team authored
      Merge CONTRIBUTORS, delete LICENSEs in googletest/ and googlemock/
      
      PiperOrigin-RevId: 352558822
      14098f20
  28. 14 Jan, 2021 1 commit
    • 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
  29. 22 Dec, 2020 2 commits
    • 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
    • dmauro's avatar
      Googletest export · 4f6fa708
      dmauro authored
      Internal Change
      
      PiperOrigin-RevId: 347631521
      4f6fa708
  30. 10 Dec, 2020 1 commit
    • dmauro's avatar
      Googletest export · fb4b3b6b
      dmauro authored
      Fix a missing Bazel build dependency
      
      PiperOrigin-RevId: 346783462
      fb4b3b6b
  31. 09 Dec, 2020 1 commit
    • Abseil Team's avatar
      Googletest export · e5644f5f
      Abseil Team authored
      Introduce a new `Address` matcher to gmock.
      
      PiperOrigin-RevId: 346344591
      e5644f5f
  32. 07 Dec, 2020 1 commit
    • Abseil Team's avatar
      Googletest export · a02a5916
      Abseil Team authored
      Add a `Pointer` matcher as an analog to `Pointee`.
      
      Similar to `Pointee`, `Pointer` works with either raw or smart pointers and
      allows creating a matcher like Pointer(Eq(foo)) for smart pointers.
      
      PiperOrigin-RevId: 346164768
      a02a5916
  33. 03 Dec, 2020 1 commit
    • Abseil Team's avatar
      Googletest export · 93748a94
      Abseil Team authored
      Disable a gmock matcher test under MSVC 2015 (version 14) and earlier.  It interacts badly with Windows structured exceptions in a way we do not have the resources to investigate.  This test passes under MSVC 2017 and SEH.
      
      PiperOrigin-RevId: 345496734
      93748a94
  34. 09 Nov, 2020 1 commit
    • Abseil Team's avatar
      Googletest export · 0c400f67
      Abseil Team authored
      GMock: Make Truly explain when it fails
      
      I just wrote a test that had a matcher of the form
        Optional(AllOf(
          SomeMatcher,
          SomeOtherMatcher,
          Truly(SomePredicate)))
      
      The predicate failed, the other two matchers succeeded, and I got a hard-to-interpret message saying that the value in the optional "didn't match". Didn't match what?
      
      This change improves situations like that slightly by having Truly explain to its result listener when it fails. When there are multiple Trulys in an AllOf, there will be some ambiguity, but it will at least provide more information than right now.
      
      PiperOrigin-RevId: 341105141
      0c400f67
  35. 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