Home
last modified time | relevance | path

Searched refs:DerivedType (Results 1 – 1 of 1) sorted by relevance

/frameworks/native/libs/vr/libpdx/
Dvariant_tests.cpp22 struct DerivedType : BaseType { struct
24 DerivedType(int value) : BaseType{value} {}; in DerivedType() argument
995 Variant<std::unique_ptr<DerivedType>, int> v( in TEST()
996 std::make_unique<DerivedType>(10)); in TEST()
997 ASSERT_TRUE(v.is<std::unique_ptr<DerivedType>>()); in TEST()
998 const DerivedType* original_v = in TEST()
999 std::get<std::unique_ptr<DerivedType>>(v).get(); in TEST()
1003 EXPECT_TRUE(IfAnyOf<std::unique_ptr<DerivedType>>::Take(&v, &u)); in TEST()
1004 ASSERT_TRUE(v.is<std::unique_ptr<DerivedType>>()); in TEST()
1005 EXPECT_TRUE(std::get<std::unique_ptr<DerivedType>>(v) == nullptr); in TEST()