Lines Matching refs:MatcherCast
108 using testing::MatcherCast;
529 // Tests that MatcherCast<T>(m) works when m is a polymorphic matcher.
531 Matcher<int> m = MatcherCast<int>(Eq(5));
553 // Tests that MatcherCast<T>(m) works when m is a Matcher<U> where T
557 Matcher<int> m2 = MatcherCast<int>(m1);
562 Matcher<int> m4 = MatcherCast<int>(m3);
570 // Tests that MatcherCast<T>(m) works when m is a Matcher<const T&>.
573 Matcher<int> m2 = MatcherCast<int>(m1);
578 // Tests that MatcherCast<T>(m) works when m is a Matcher<T&>.
581 Matcher<int> m2 = MatcherCast<int>(m1);
586 // Tests that MatcherCast<const T&>(m) works when m is a Matcher<T>.
589 Matcher<const int&> m2 = MatcherCast<const int&>(m1);
594 // Tests that MatcherCast<T&>(m) works when m is a Matcher<T>.
597 Matcher<int&> m2 = MatcherCast<int&>(m1);
604 // Tests that MatcherCast<T>(m) works when m is a Matcher<T>.
607 Matcher<int> m2 = MatcherCast<int>(m1);
631 Matcher<ConvertibleFromAny> m = MatcherCast<ConvertibleFromAny>(1);
638 MatcherCast<ConvertibleFromAny>(Eq(ConvertibleFromAny(1)));
654 Matcher<IntReferenceWrapper> m = MatcherCast<IntReferenceWrapper>(n);
721 // Tests that MatcherCast<const T&>(m) works when m is a Matcher<T>.