Searched refs:SafeMatcherCast (Results 1 – 7 of 7) sorted by relevance
55 testing::SafeMatcherCast<const std::string &>(KeyMatcherArg)),57 testing::SafeMatcherCast<const ValueT &>(ValueMatcherArg)) {}
76 new ValueMatchesMono<T>(testing::SafeMatcherCast<T>(Matcher)));205 testing::SafeMatcherCast<InfoT &>(Matcher))); in Failed()
69 new Impl<T>(::testing::SafeMatcherCast<T>(ValueMatcher)));
660 m2 = SafeMatcherCast<char>(GtestGreaterThan(32)); in TEST_P()662 m2 = SafeMatcherCast<char>(Gt(32)); in TEST_P()673 Matcher<float> m2 = SafeMatcherCast<float>(m1); in TEST()677 Matcher<char> m3 = SafeMatcherCast<char>(TypedEq<int>('a')); in TEST()687 Matcher<Derived*> m2 = SafeMatcherCast<Derived*>(m1); in TEST()692 Matcher<Derived&> m4 = SafeMatcherCast<Derived&>(m3); in TEST()701 Matcher<int> m2 = SafeMatcherCast<int>(m1); in TEST()711 Matcher<int&> m2 = SafeMatcherCast<int&>(m1); in TEST()721 SafeMatcherCast<const std::unique_ptr<int>&>(m1); in TEST()729 Matcher<int&> m2 = SafeMatcherCast<int&>(m1); in TEST()[all …]
530 inline Matcher<T> SafeMatcherCast(const M& polymorphic_matcher_or_value) { in SafeMatcherCast() function545 inline Matcher<T> SafeMatcherCast(const Matcher<U>& matcher) { in SafeMatcherCast() function1278 return Matcher<T>(new NotMatcherImpl<T>(SafeMatcherCast<T>(matcher_)));1398 values->push_back(SafeMatcherCast<T>(std::get<I>(matchers_)));1520 return condition_ ? SafeMatcherCast<T>(matcher_true_)1521 : SafeMatcherCast<T>(matcher_false_);1656 const Matcher<const T&> matcher = SafeMatcherCast<const T&>(matcher_);2693 : mono_tuple_matcher_(SafeMatcherCast<InnerMatcherArg>(tuple_matcher)),2775 testing::SafeMatcherCast<const Element&>(inner_matcher)) {}3119 testing::SafeMatcherCast<const KeyType&>(inner_matcher)) {}[all …]
256 | `SafeMatcherCast<T>(m)` | [safely casts](../gmock_cook_book.md#SafeMatcherCast) matcher `m` to ty…
917 ### Casting Matchers {#SafeMatcherCast}930 To support this need, gMock gives you the `SafeMatcherCast<T>(m)` function. It947 using ::testing::SafeMatcherCast;961 EXPECT_CALL(foo, DoThis(SafeMatcherCast<Derived*>(m)));964 If you find `SafeMatcherCast<T>(m)` too limiting, you can use a similar function1255 using ::testing::SafeMatcherCast;