Home
last modified time | relevance | path

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

/frameworks/native/libs/vr/libpdx/
Dvariant_tests.cpp940 TEST(Variant, IfAnyOf) { in TEST() argument
946 EXPECT_TRUE(IfAnyOf<int>::Get(&v, &b)); in TEST()
950 EXPECT_TRUE((IfAnyOf<int, float>::Get(&v, &f))); in TEST()
959 EXPECT_TRUE(IfAnyOf<int>::Get(&v, &b)); in TEST()
963 EXPECT_TRUE((IfAnyOf<int, float>::Get(&v, &f))); in TEST()
972 EXPECT_TRUE(IfAnyOf<int>::Call(&v, [&b](const auto& value) { b = value; })); in TEST()
977 IfAnyOf<int, float>::Call(&v, [&f](const auto& value) { f = value; }))); in TEST()
988 EXPECT_TRUE(IfAnyOf<std::unique_ptr<int>>::Take(&v, &u)); in TEST()
1003 EXPECT_TRUE(IfAnyOf<std::unique_ptr<DerivedType>>::Take(&v, &u)); in TEST()
1016 EXPECT_TRUE(IfAnyOf<std::unique_ptr<int>>::Call( in TEST()
[all …]
/frameworks/native/libs/vr/libpdx/private/pdx/rpc/
Dvariant.h658 struct IfAnyOf {