Home
last modified time | relevance | path

Searched refs:SafeMatcherCast (Results 1 – 7 of 7) sorted by relevance

/freebsd/contrib/llvm-project/llvm/include/llvm/Testing/ADT/
H A DStringMapEntry.h55 testing::SafeMatcherCast<const std::string &>(KeyMatcherArg)),
57 testing::SafeMatcherCast<const ValueT &>(ValueMatcherArg)) {}
/freebsd/contrib/llvm-project/llvm/include/llvm/Testing/Support/
H A DError.h76 new ValueMatchesMono<T>(testing::SafeMatcherCast<T>(Matcher)));
205 testing::SafeMatcherCast<InfoT &>(Matcher))); in Failed()
H A DSupportHelpers.h69 new Impl<T>(::testing::SafeMatcherCast<T>(ValueMatcher)));
/freebsd/contrib/googletest/googlemock/test/
H A Dgmock-matchers-comparisons_test.cc614 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 …]
/freebsd/contrib/googletest/googlemock/include/gmock/
H A Dgmock-matchers.h535 inline Matcher<T> SafeMatcherCast(const Matcher<U>& matcher) { in SafeMatcherCast() function
1363 values->push_back(SafeMatcherCast<T>(std::get<I>(matchers_)));
1455 return condition_ ? SafeMatcherCast<T>(matcher_true_)
1456 : SafeMatcherCast<T>(matcher_false_);
2707 testing::SafeMatcherCast<const Element&>(inner_matcher)) {}
2960 testing::SafeMatcherCast<const KeyType&>(inner_matcher)) {}
3063 testing::SafeMatcherCast<const FirstType&>(first_matcher)),
3285 : matchers_(testing::SafeMatcherCast<
3836 : mono_tuple2_matcher_(SafeMatcherCast<const ArgTuple&>(tm)),
5086 Matcher<T> monomorphic_matcher = SafeMatcherCast<T>(matcher);
[all …]
/freebsd/contrib/googletest/docs/reference/
H A Dmatchers.md253 | `SafeMatcherCast<T>(m)` | [safely casts](../gmock_cook_book.md#SafeMatcherCast) matcher `m` to ty…
/freebsd/contrib/googletest/docs/
H A Dgmock_cook_book.md917 ### Casting Matchers {#SafeMatcherCast}
930 To support this need, gMock gives you the `SafeMatcherCast<T>(m)` function. It
947 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 function
1255 using ::testing::SafeMatcherCast;