1. 28 Feb, 2020 1 commit
    • Abseil Team's avatar
      Googletest export · 909b1ccf
      Abseil Team authored
      Relax the implementation of MatcherCast to allow conversion of `Matcher<T>` to
      `Matcher<const T&>`. They have the same match signature.
      
      PiperOrigin-RevId: 297115843
      909b1ccf
  2. 11 Feb, 2020 1 commit
    • Abseil Team's avatar
      Googletest export · 6f5fd0d7
      Abseil Team authored
      Add gmock Matcher<std::string_view> specialization.
      
      PiperOrigin-RevId: 294443240
      6f5fd0d7
  3. 07 Feb, 2020 1 commit
    • Abseil Team's avatar
      Googletest export · 572e261b
      Abseil Team authored
      Fix use of reserved names.
      Minimize code duplication needed for explict-vs-nonexplicit constructor.
      
      PiperOrigin-RevId: 292555014
      572e261b
  4. 13 Jan, 2020 1 commit
  5. 12 Jan, 2020 1 commit
  6. 22 Nov, 2019 2 commits
  7. 22 Oct, 2019 1 commit
    • Abseil Team's avatar
      Googletest export · 011c4e23
      Abseil Team authored
      Rolling forward IsNan() matcher with fixes in test for -Wconversion issues. Use
      std::nanf and std::nanl where appropriate.
      PiperOrigin-RevId: 275523003
      011c4e23
  8. 18 Oct, 2019 1 commit
  9. 17 Oct, 2019 1 commit
  10. 27 Sep, 2019 1 commit
    • Abseil Team's avatar
      Googletest export · cb3f7ce1
      Abseil Team authored
      Makes testing::ResultOf() work with non-copyable arguments.
      
      PiperOrigin-RevId: 271222632
      cb3f7ce1
  11. 23 Sep, 2019 1 commit
    • Krystian Kuzniarek's avatar
      remove GTEST_ARRAY_SIZE_ · e0d16aa3
      Krystian Kuzniarek authored
      This macro didn't work when an array was passed to a function by pointer,
      in which case the information about its size was lost.
      Better alternatives are:
      * std::extent<T>::value (compile-time)
      * std::array<T, N>::size() (compile-time)
      * std::distance(std::begin(array), std::end(array)) (run-time)
      e0d16aa3
  12. 26 Aug, 2019 1 commit
    • misterg's avatar
      Googletest export · 6a3d632f
      misterg authored
      Add tuple version of Optional() matches. This allows Optional() to be used in Pointwise matchers.
      
      PiperOrigin-RevId: 265501882
      6a3d632f
  13. 23 Aug, 2019 1 commit
    • Abseil Team's avatar
      Googletest export · ed2eef65
      Abseil Team authored
      Add tuple version of Optional() matches. This allows Optional() to be used in Pointwise matchers.
      
      PiperOrigin-RevId: 265110864
      ed2eef65
  14. 20 Aug, 2019 1 commit
  15. 14 Aug, 2019 1 commit
  16. 30 Jul, 2019 1 commit
  17. 13 Jun, 2019 1 commit
  18. 06 Apr, 2019 1 commit
    • Enji Cooper's avatar
      clang: fix `-Wsign-conversion` errors · 3829b84e
      Enji Cooper authored
      
      
      Cast some values as their unsigned equivalents or `size_t` to match the
      parameter type used for the template object under test. Also, provide
      UInt32 equivalent delegate methods for some callers (with
      int-equivalents for backwards compatibility).
      
      This closes #2146.
      Signed-off-by: default avatarEnji Cooper <yaneurabeya@gmail.com>
      3829b84e
  19. 01 Apr, 2019 1 commit
    • Abseil Team's avatar
      Googletest export · d9825431
      Abseil Team authored
      Remove support for "global" ::string and ::wstring types.
      This support existed for legacy codebases that existed from before namespaces
      where a thing. It is no longer necessary.
      
      PiperOrigin-RevId: 241335738
      d9825431
  20. 13 Feb, 2019 4 commits
  21. 12 Feb, 2019 1 commit
    • Abseil Team's avatar
      Googletest export · 28a96d18
      Abseil Team authored
      Fix matcher comparisons for std::reference_wrapper.
      
      The googletest docs indicate that std::reference_wrapper should be used to for
      objects that should not be copied by the matcher (in fact, the ByRef() function
      is basically the same as a call to std::cref).
      
      However, for many types (such as std::string), the overloaded operator== will
      not resolve correctly. Specifically, this is problematic if operator== depends
      on template argument deduction, where the same type is named on LHS and RHS.
      
      Because template argument deduction happens before any implict conversions for
      purposes of overload resolution, attempting to compare T with
      std::reference_wrapper<T> simply looks like a comparison of unlike types.
      
      For exapmle, std::reference_wrapper<std::string> is implicitly convertible to
      'const std::string&', which would be able to choose an overload specialization
      of operator==. However, the implicit conversion can only happen after template
      argument deduction for operator==, so a specialization that would other be an
      applicable overload is never considered.
      
      Note also that this change only affects matchers. There are good reasons that
      matchers may need to transparently hold a std::reference_wrapper. Other
      comparisons (like EXPECT_EQ, et. al.) don't need to capture a reference: they
      don't need to defer evaluation (as in googlemock), and they don't need to avoid
      copies (as the call chain of matchers does).
      
      PiperOrigin-RevId: 232499175
      28a96d18
  22. 04 Feb, 2019 1 commit
    • misterg's avatar
      Googletest export · 52ea4f7b
      misterg authored
      Mark legacy _TEST_CASE_ macros as deprecated
      
      PiperOrigin-RevId: 232303251
      52ea4f7b
  23. 14 Jan, 2019 2 commits
    • Abseil Team's avatar
      Googletest export · 9acd065a
      Abseil Team authored
      Add move-only argument support to almost all remaining matchers.
      
      PiperOrigin-RevId: 229030728
      9acd065a
    • Abseil Team's avatar
      Googletest export · 097407fd
      Abseil Team authored
      Deduplicate testing::ReferenceWrapper with std::reference_wrapper.
      Minor cleanups in matchers_test.
      
      PiperOrigin-RevId: 229022872
      097407fd
  24. 02 Jan, 2019 1 commit
    • Abseil Team's avatar
      Googletest export · f8b1c1af
      Abseil Team authored
      Remove the #ifs for old, unsupported and buggy compilers:
      * old versions of GCC & MSVC
      * Symbian
      
      PiperOrigin-RevId: 227116941
      f8b1c1af
  25. 20 Dec, 2018 1 commit
    • Abseil Team's avatar
      Googletest export · e26a3fa1
      Abseil Team authored
      Unifdef c++11-related macros from googletest now that it requires C++11.
      
      PiperOrigin-RevId: 225905601
      e26a3fa1
  26. 17 Dec, 2018 1 commit
    • Abseil Team's avatar
      Googletest export · 1ec20f87
      Abseil Team authored
      Allow container matchers to accept move-only containers.
      
      PiperOrigin-RevId: 225667441
      1ec20f87
  27. 12 Dec, 2018 1 commit
    • Abseil Team's avatar
      Googletest export · 6ef59138
      Abseil Team authored
      The gmock matchers have a concept of MatchAndExpain; where the details of the
      matching are written to a "result listener". A matcher can avoid creating
      expensive debug info by checking result_listener->IsInterested(); but,
      unfortunately, the default matcher code (called from EXPECT_THAT) is always
      "interested".
      
      This change implements EXPECT_THAT matching to first run the matcher in a "not
      interested" mode; and then run it a second time ("interested") only if the
      match fails.
      
      PiperOrigin-RevId: 225036073
      6ef59138
  28. 11 Dec, 2018 2 commits
    • misterg's avatar
      Googletest export · 6cbd3753
      misterg authored
      rollback of 224929783
      
      PiperOrigin-RevId: 225008559
      6cbd3753
    • Abseil Team's avatar
      Googletest export · 06bb8d4d
      Abseil Team authored
      The gmock matchers have a concept of MatchAndExpain; where the details of the
      matching are written to a "result listener". A matcher can avoid creating
      expensive debug info by checking result_listener->IsInterested(); but,
      unfortunately, the default matcher code (called from EXPECT_THAT) is always
      "interested".
      
      This change implements EXPECT_THAT matching to first run the matcher in a "not
      interested" mode; and then run it a second time ("interested") only if the
      match fails.
      
      PiperOrigin-RevId: 224929783
      06bb8d4d
  29. 04 Dec, 2018 1 commit
    • Abseil Team's avatar
      Googletest export · 3d71ab4c
      Abseil Team authored
      Deduce SizeType for SizeIs() from the return value of the size() member function
      
      PiperOrigin-RevId: 223835674
      3d71ab4c
  30. 03 Dec, 2018 2 commits
    • Abseil Team's avatar
      Googletest export · 26743363
      Abseil Team authored
      Applied fixes for ClangTidy modernize-use-override and modernize-use-using.
      
      PiperOrigin-RevId: 223800219
      26743363
    • Abseil Team's avatar
      Googletest export · a42cdf2a
      Abseil Team authored
      Replace pump'd Args() matcher with variadic templates.
      
      PiperOrigin-RevId: 223794430
      a42cdf2a
  31. 31 Oct, 2018 1 commit
    • misterg's avatar
      Googletest export · e857f9cd
      misterg authored
      Remove scoped_ptr replace with std::unique_ptr
      
      PiperOrigin-RevId: 219291284
      e857f9cd
  32. 29 Oct, 2018 1 commit
    • misterg's avatar
      Googletest export · 80b43d90
      misterg authored
      Remove linked_ptr and use std::shared_ptr instead
      
      PiperOrigin-RevId: 219129336
      80b43d90
  33. 28 Oct, 2018 1 commit