Lines Matching refs:Union
39 using android::aidl::tests::Union;
157 Union original = Union::make<Union::ns>({1, 2, 3}); in TEST_F()
158 Union repeated, reversed; in TEST_F()
164 std::reverse(reversed.get<Union::ns>().begin(), reversed.get<Union::ns>().end()); in TEST_F()
170 EXPECT_EQ(Union::make<Union::ns>(), Union()); in TEST_F()
173 Union one_two_three = Union::make<Union::ns>({1, 2, 3}); in TEST_F()
176 EXPECT_EQ(Union::ns, one_two_three.getTag()); in TEST_F()
179 EXPECT_EQ(one_two_three, Union(std::vector{1, 2, 3})); in TEST_F()
184 EXPECT_EQ(Union::make<Union::ns>(3, 0), Union(std::in_place_index<Union::ns>, 3, 0)); in TEST_F()
186 Union one_two = one_two_three; in TEST_F()
188 one_two.get<Union::ns>().pop_back(); in TEST_F()
191 one_two.get<Union::ns>() = std::vector<int>{1, 2}; in TEST_F()
195 EXPECT_DEATH(one_two.get<Union::n>(), "bad access"); in TEST_F()
198 one_two_three.set<Union::s>("123"); in TEST_F()
204 EXPECT_EQ(Union::ss, one_two_three.getTag()); in TEST_F()
208 EXPECT_EQ(Union::make<Union::ns>(), Union()); // int[] ns in TEST_F()
326 EXPECT_EQ(parcelable.u->get<Union::ns>(), vector<int32_t>({1, 2, 3})); in TEST_F()
327 EXPECT_EQ(parcelable.shouldBeConstS1->get<Union::s>(), Union::S1()); in TEST_F()
486 p.unionValue = Union(std::vector<std::string>{"union", "value"}); in TEST_F()