1. 16 Jan, 2020 2 commits
    • Abseil Team's avatar
      Googletest export · 5336106b
      Abseil Team authored
      Use GMOCK_PP to create GMOCK_INTERNAL_ACTION macro.
      
      Create GMOCK_INTERNAL_ACTION macro that generates ACTION_P* macroses using
      GMOCK_PP.
      
      PiperOrigin-RevId: 289815906
      5336106b
    • Abseil Team's avatar
      Googletest export · 7a8591e6
      Abseil Team authored
      Use GMOCK_PP to generate args boilerplate.
      
      Move common args describing part to separate macroses that uses GMOCK_PP to
      generate sequences.
      
      PiperOrigin-RevId: 289655624
      7a8591e6
  2. 09 Jan, 2020 2 commits
    • Abseil Team's avatar
      Googletest export · c901f67d
      Abseil Team authored
      Move part of functionality of Action* class to the base one. Reduce copypaste.
      
      Make constructor and conversion operator of Action* class independent of pump.
      
      PiperOrigin-RevId: 288907005
      c901f67d
    • Abseil Team's avatar
      Googletest export · 4b9c1691
      Abseil Team authored
      Use C++11 variadic templates for Invoke in gmock-generated-actions.h.
      
      Replace InvokeArgumentAdl with Invoke that uses C++11 variadic templates.
      
      PiperOrigin-RevId: 288449236
      4b9c1691
  3. 02 Jan, 2020 4 commits
    • Abseil Team's avatar
      Googletest export · 306f3754
      Abseil Team authored
      Explicitly default copy constructor in BoundSecondMatcher
      
      Since C++11, implicit defaulting of copy constructors is deprecated for types
      with user-defined copy assignment operators, so we should explicitly default the
      copy constructor of BoundSecondMatcher.
      
      PiperOrigin-RevId: 287587847
      306f3754
    • Abseil Team's avatar
      Googletest export · 153909f0
      Abseil Team authored
      Fix typo in example.
      
      PiperOrigin-RevId: 287212448
      153909f0
    • Abseil Team's avatar
      Googletest export · d0a52125
      Abseil Team authored
      Use C++11 variadic templates for InvokeArgumentAdl in gmock-generated-actions.h.
      
      Make InvokeArgumentAdl use variadic templates to generate its overloads instead
      of using pump.py syntax.
      
      PiperOrigin-RevId: 286267615
      d0a52125
    • Abseil Team's avatar
      Googletest export · 6f1a8ffd
      Abseil Team authored
      Use C++11 variadic templates for InvokeArgumentAdl in gmock-generated-actions.h.
      
      Make InvokeArgumentAdl use variadic templates to generate its overloads instead
      of using pump.py syntax.
      
      PiperOrigin-RevId: 286148805
      6f1a8ffd
  4. 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
  5. 13 Dec, 2019 1 commit
    • Abseil Team's avatar
      Googletest export · d8eeb976
      Abseil Team authored
      Use C++11 variadic templates for ActionHelper in gmock-generated-actions.h.
      
      Make ActionHelper use variadic templates to generate Perform static member function specializations instead of using pump.py syntax.
      
      PiperOrigin-RevId: 284988441
      d8eeb976
  6. 02 Dec, 2019 1 commit
    • Abseil Team's avatar
      Googletest export · ae8d1fc8
      Abseil Team authored
      Clarify use of IsTrue and IsFalse matchers.
      
      These matchers are subtle and confusing: what are they for?
      The docs in the code are clear, but not very accessible.
      googletest/googlemock/include/gmock/gmock-more-matchers.h
      
      PiperOrigin-RevId: 283393275
      ae8d1fc8
  7. 27 Nov, 2019 2 commits
  8. 25 Nov, 2019 1 commit
  9. 22 Nov, 2019 9 commits
  10. 21 Nov, 2019 1 commit
  11. 20 Nov, 2019 1 commit
    • Abseil Team's avatar
      Googletest export · 4bf46623
      Abseil Team authored
      Add a breadcrumb about nullopt comparison near the Optional() matcher.
      
      Also add a note about how otherwise-spurious 'Eq()' may be needed in some cases. Without this, something like Field(&MyStruct::optional_field_without_equals_equals, absl::nullopt) doesn't work - it converts the nullopt to an optional<> of the non-equalable type, and fails to select the operator==(optional<>, nullopt_t) overload. The Eq() lets the type persist later into the match.
      
      PiperOrigin-RevId: 281305519
      4bf46623
  12. 19 Nov, 2019 1 commit
    • Abseil Team's avatar
      Googletest export · 50cfbb72
      Abseil Team authored
      Update stale comments to point to proper location.
      
      PiperOrigin-RevId: 281157036
      50cfbb72
  13. 05 Nov, 2019 1 commit
  14. 02 Nov, 2019 3 commits
  15. 31 Oct, 2019 2 commits
    • Abseil Team's avatar
      Googletest export · 2db3df9c
      Abseil Team authored
      Change variable name to match comment.
      
      PiperOrigin-RevId: 277713621
      2db3df9c
    • Abseil Team's avatar
      Googletest export · e2fc3a9c
      Abseil Team authored
      Tolerate std::string's explicit copy construction from std::string_view.
      
      PiperOrigin-RevId: 277583394
      e2fc3a9c
  16. 30 Oct, 2019 1 commit
    • misterg's avatar
      Googletest export · 0a034808
      misterg authored
      Remove outdated unsupported scripts
      
      PiperOrigin-RevId: 277556831
      0a034808
  17. 29 Oct, 2019 4 commits
    • misterg's avatar
      Googletest export · ba33a887
      misterg authored
      Internal Change
      
      PiperOrigin-RevId: 277336786
      ba33a887
    • mhermas's avatar
      Googletest export · fff8dabb
      mhermas authored
      Merge 65032e28cba171c000accc85ffaf6f1e62921b86 into 8c91ecef
      
      Closes #2470
      
      COPYBARA_INTEGRATE_REVIEW=https://github.com/google/googletest/pull/2470 from hermas55:bugfix/default_const_param 65032e28cba171c000accc85ffaf6f1e62921b86
      PiperOrigin-RevId: 277118535
      fff8dabb
    • Abseil Team's avatar
      Googletest export · 755f853c
      Abseil Team authored
      Avoid temporary matcher instances.
      They are unnecessary and can be relatively more expensive than the rest of the
      algorithm.
      
      PiperOrigin-RevId: 277084853
      755f853c
    • Abseil Team's avatar
      Googletest export · a1f71dd5
      Abseil Team authored
      Remove badly formatted suggestion in gmock cheat sheet.
      
      PiperOrigin-RevId: 277060475
      a1f71dd5
  18. 25 Oct, 2019 3 commits