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)));
614 m2 = SafeMatcherCast<char>(GtestGreaterThan(32)); in TEST_P()616 m2 = SafeMatcherCast<char>(Gt(32)); in TEST_P()627 Matcher<float> m2 = SafeMatcherCast<float>(m1); in TEST()631 Matcher<char> m3 = SafeMatcherCast<char>(TypedEq<int>('a')); in TEST()641 Matcher<Derived*> m2 = SafeMatcherCast<Derived*>(m1); in TEST()646 Matcher<Derived&> m4 = SafeMatcherCast<Derived&>(m3); in TEST()655 Matcher<int&> m2 = SafeMatcherCast<int&>(m1); in TEST()665 SafeMatcherCast<const std::unique_ptr<int>&>(m1); in TEST()673 Matcher<int&> m2 = SafeMatcherCast<int&>(m1); in TEST()683 Matcher<int> m2 = SafeMatcherCast<int>(m1); in TEST()[all …]
521 inline Matcher<T> SafeMatcherCast(const M& polymorphic_matcher_or_value) { in SafeMatcherCast() function535 inline Matcher<T> SafeMatcherCast(const Matcher<U>& matcher) { in SafeMatcherCast() function1266 return Matcher<T>(new NotMatcherImpl<T>(SafeMatcherCast<T>(matcher_)));1363 values->push_back(SafeMatcherCast<T>(std::get<I>(matchers_)));1455 return condition_ ? SafeMatcherCast<T>(matcher_true_)1456 : SafeMatcherCast<T>(matcher_false_);1591 const Matcher<const T&> matcher = SafeMatcherCast<const T&>(matcher_);2625 : mono_tuple_matcher_(SafeMatcherCast<InnerMatcherArg>(tuple_matcher)),2707 testing::SafeMatcherCast<const Element&>(inner_matcher)) {}2961 testing::SafeMatcherCast<const KeyType&>(inner_matcher)) {}[all …]
253 | `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;