Searched refs:MatcherCast (Results 1 - 3 of 3) sorted by relevance

/gem5/ext/googletest/googlemock/test/
H A Dgmock_link_test.h98 // MatcherCast<T>
154 using testing::MatcherCast;
663 // Tests the linkage of the MatcherCast<T>() function.
665 Matcher<const char*> m = MatcherCast<const char*>(_);
H A Dgmock-matchers_test.cc108 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<in
[all...]
/gem5/ext/googletest/googlemock/include/gmock/
H A Dgmock-matchers.h505 // MatcherCast(). We need this helper in order to partially
506 // specialize the implementation of MatcherCast() (C++ allows
510 // This general version is used when MatcherCast()'s argument is a
559 // This more specialized version is used when MatcherCast()'s argument
606 // types is done explicitly via MatcherCast<T>(m), which takes a
610 inline Matcher<T> MatcherCast(const M& matcher) { function in namespace:testing
660 return MatcherCast<T>(matcher);
1820 // MatcherCast<const T&>() is necessary for making the code work
1822 return MatcherCast<const T&>(matcher_).Matches(x);
1852 // We don't write MatcherCast<cons
[all...]

Completed in 33 milliseconds