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.cc660 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 …]
/freebsd/contrib/googletest/googlemock/include/gmock/
H A Dgmock-matchers.h530 inline Matcher<T> SafeMatcherCast(const M& polymorphic_matcher_or_value) { in SafeMatcherCast() function
545 inline Matcher<T> SafeMatcherCast(const Matcher<U>& matcher) { in SafeMatcherCast() function
1278 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 …]
/freebsd/contrib/googletest/docs/reference/
H A Dmatchers.md256 | `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;