Lines Matching defs:Derived
667 class Derived : public Base {
669 Derived() : Base() {}
699 Derived d, d2;
701 Matcher<Derived*> m2 = SafeMatcherCast<Derived*>(m1);
706 Matcher<Derived&> m4 = SafeMatcherCast<Derived&>(m3);
799 Derived derived;
801 // This shouldn't compile: EXPECT_THAT(&base, A<Derived*>());
803 EXPECT_THAT(&derived, A<Derived*>());
1147 Derived derived;
3191 Derived derived;
3196 EXPECT_THAT(as_base_ptr, WhenDynamicCastTo<Derived*>(Not(IsNull())));
3197 EXPECT_THAT(as_base_ptr, WhenDynamicCastTo<Derived*>(Pointee(FieldIIs(4))));
3199 Not(WhenDynamicCastTo<Derived*>(Pointee(FieldIIs(5)))));
3204 Derived derived;
3208 EXPECT_THAT(&base, Not(WhenDynamicCastTo<Derived*>(Pointee(_))));
3209 EXPECT_THAT(&base, WhenDynamicCastTo<Derived*>(IsNull()));
3214 EXPECT_THAT(as_base_ptr, Not(WhenDynamicCastTo<Derived*>(Pointee(_))));
3215 EXPECT_THAT(as_base_ptr, WhenDynamicCastTo<Derived*>(IsNull()));
3221 EXPECT_THAT(as_base_ptr, WhenDynamicCastTo<Derived*>(IsNull()));
3246 Matcher<Base*> matcher = WhenDynamicCastTo<Derived*>(Pointee(_));
3248 "when dynamic_cast to " + internal::GetTypeName<Derived*>() + ", ";
3255 Matcher<Base*> matcher = WhenDynamicCastTo<Derived*>(Pointee(_));
3258 Derived derived;
3269 Derived derived;
3272 EXPECT_THAT(as_base_ref, WhenDynamicCastTo<const Derived&>(FieldIIs(4)));
3273 EXPECT_THAT(as_base_ref, WhenDynamicCastTo<const Derived&>(Not(FieldIIs(5))));
3277 Derived derived;