Lines Matching refs:SafeMatcherCast
675 // Tests that SafeMatcherCast<T>(m) works when m is a polymorphic matcher.
677 Matcher<char> m2 = SafeMatcherCast<char>(Eq(32));
682 // Tests that SafeMatcherCast<T>(m) works when m is a Matcher<U> where
687 Matcher<float> m2 = SafeMatcherCast<float>(m1);
691 Matcher<char> m3 = SafeMatcherCast<char>(TypedEq<int>('a'));
696 // Tests that SafeMatcherCast<T>(m) works when m is a Matcher<U> where T and U
701 Matcher<Derived*> m2 = SafeMatcherCast<Derived*>(m1);
706 Matcher<Derived&> m4 = SafeMatcherCast<Derived&>(m3);
711 // Tests that SafeMatcherCast<T&>(m) works when m is a Matcher<const T&>.
715 Matcher<int&> m2 = SafeMatcherCast<int&>(m1);
724 Matcher<const int&> m2 = SafeMatcherCast<const int&>(m1);
729 // Tests that SafeMatcherCast<T&>(m) works when m is a Matcher<T>.
732 Matcher<int&> m2 = SafeMatcherCast<int&>(m1);
739 // Tests that SafeMatcherCast<T>(m) works when m is a Matcher<T>.
742 Matcher<int> m2 = SafeMatcherCast<int>(m1);
748 Matcher<ConvertibleFromAny> m = SafeMatcherCast<ConvertibleFromAny>(1);
755 SafeMatcherCast<ConvertibleFromAny>(Eq(ConvertibleFromAny(1)));
762 Matcher<IntReferenceWrapper> m = SafeMatcherCast<IntReferenceWrapper>(n);