• Home
  • Raw
  • Download

Lines Matching refs:dest

27     aidl::hidl2aidl::test::OnlyIn10 dest;  in TEST_F()  local
30 ASSERT_TRUE(h2a::translate(source, &dest)); in TEST_F()
31 EXPECT_EQ(source.str, dest.str); in TEST_F()
35 aidl::hidl2aidl::test::OnlyIn11 dest; in TEST_F() local
38 ASSERT_TRUE(h2a::translate(source, &dest)); in TEST_F()
39 EXPECT_EQ(source.str, dest.str); in TEST_F()
43 aidl::hidl2aidl::test::OverrideMe dest; in TEST_F() local
46 ASSERT_TRUE(h2a::translate(source, &dest)); in TEST_F()
47 EXPECT_EQ(source.a, dest.a); in TEST_F()
51 aidl::hidl2aidl::test::Outer dest; in TEST_F() local
55 ASSERT_TRUE(h2a::translate(source, &dest)); in TEST_F()
56 EXPECT_EQ(source.a, dest.a); in TEST_F()
57 EXPECT_EQ(source.v1_0.inner.a, dest.inner.a); in TEST_F()
61 aidl::hidl2aidl::test::OuterInner dest; in TEST_F() local
64 ASSERT_TRUE(h2a::translate(source, &dest)); in TEST_F()
65 EXPECT_EQ(source.a, dest.a); in TEST_F()
69 aidl::hidl2aidl::test::NameCollision dest; in TEST_F() local
74 ASSERT_TRUE(h2a::translate(source, &dest)); in TEST_F()
75 EXPECT_EQ(source.reference.reference.a, dest.a); in TEST_F()
76 EXPECT_EQ(source.reference.b, dest.b); in TEST_F()
77 EXPECT_EQ(source.c, dest.c); in TEST_F()
81 aidl::hidl2aidl::test::IFooBigStruct dest; in TEST_F() local
85 ASSERT_TRUE(h2a::translate(source, &dest)); in TEST_F()
86 EXPECT_EQ(source.type, dest.type); in TEST_F()
87 EXPECT_EQ(source.value, dest.value); in TEST_F()
91 aidl::hidl2aidl::test::IBarInner dest; in TEST_F() local
94 ASSERT_TRUE(h2a::translate(source, &dest)); in TEST_F()
95 EXPECT_EQ(static_cast<int32_t>(source.a), dest.a); in TEST_F()
99 aidl::hidl2aidl::test::IBarInner dest; in TEST_F() local
103 ASSERT_FALSE(h2a::translate(source, &dest)); in TEST_F()
104 EXPECT_NE(static_cast<int32_t>(source.a), dest.a); in TEST_F()
108 aidl::hidl2aidl::test::SafeUnionBar dest; in TEST_F() local
111 ASSERT_TRUE(h2a::translate(source, &dest)); in TEST_F()
112 EXPECT_EQ(source.a(), dest.get<aidl::hidl2aidl::test::SafeUnionBar::a>()); in TEST_F()
116 aidl::hidl2aidl::test::SafeUnionBar dest; in TEST_F() local
119 ASSERT_TRUE(h2a::translate(source, &dest)); in TEST_F()
120 EXPECT_EQ(static_cast<int64_t>(source.b()), dest.get<aidl::hidl2aidl::test::SafeUnionBar::b>()); in TEST_F()
124 aidl::hidl2aidl::test::SafeUnionBar dest; in TEST_F() local
130 ASSERT_TRUE(h2a::translate(source, &dest)); in TEST_F()
132 dest.get<aidl::hidl2aidl::test::SafeUnionBar::innerStructBar>().x); in TEST_F()
134 dest.get<aidl::hidl2aidl::test::SafeUnionBar::innerStructBar>().z); in TEST_F()
138 aidl::hidl2aidl::test::SafeUnionBar dest; in TEST_F() local
143 ASSERT_TRUE(h2a::translate(source, &dest)); in TEST_F()
144 EXPECT_EQ(source.c().str, dest.get<aidl::hidl2aidl::test::SafeUnionBar::c>().str); in TEST_F()
148 aidl::hidl2aidl::test::SafeUnionBar dest; in TEST_F() local
151 ASSERT_TRUE(h2a::translate(source, &dest)); in TEST_F()
152 EXPECT_EQ(source.d(), dest.get<aidl::hidl2aidl::test::SafeUnionBar::d>()); in TEST_F()
156 aidl::hidl2aidl::test::SafeUnionBar dest; in TEST_F() local
159 ASSERT_TRUE(h2a::translate(source, &dest)); in TEST_F()
160 EXPECT_EQ(source.e(), dest.get<aidl::hidl2aidl::test::SafeUnionBar::e>()); in TEST_F()
164 aidl::hidl2aidl::test::SafeUnionBar dest; in TEST_F() local
167 ASSERT_TRUE(h2a::translate(source, &dest)); in TEST_F()
168 EXPECT_EQ(source.f(), dest.get<aidl::hidl2aidl::test::SafeUnionBar::f>()); in TEST_F()
172 aidl::hidl2aidl::test::SafeUnionBar dest; in TEST_F() local
177 ASSERT_TRUE(h2a::translate(source, &dest)); in TEST_F()
179 dest.get<aidl::hidl2aidl::test::SafeUnionBar::g>()); in TEST_F()
183 aidl::hidl2aidl::test::SafeUnionBar dest; in TEST_F() local
186 ASSERT_TRUE(h2a::translate(source, &dest)); in TEST_F()
188 dest.get<aidl::hidl2aidl::test::SafeUnionBar::h>()); in TEST_F()
192 aidl::hidl2aidl::test::SafeUnionBar dest; in TEST_F() local
195 ASSERT_TRUE(h2a::translate(source, &dest)); in TEST_F()
196 EXPECT_EQ(source.i(), dest.get<aidl::hidl2aidl::test::SafeUnionBar::i>()); in TEST_F()
200 aidl::hidl2aidl::test::ArrayFoo dest; in TEST_F() local
204 ASSERT_TRUE(h2a::translate(source, &dest)); in TEST_F()
205 ASSERT_EQ(12u, dest.a.size()); in TEST_F()
206 EXPECT_EQ(source.a[0], dest.a[0]); in TEST_F()
207 EXPECT_EQ(source.a[1], dest.a[1]); in TEST_F()
208 EXPECT_EQ(source.a[2], dest.a[2]); in TEST_F()
209 EXPECT_EQ(source.a[11], dest.a[11]); in TEST_F()
213 aidl::hidl2aidl::test::ArrayFoo dest; in TEST_F() local
215 ASSERT_TRUE(h2a::translate(source, &dest)); in TEST_F()
216 EXPECT_EQ(12u, dest.a.size()); in TEST_F()
217 EXPECT_EQ(0, dest.a[0]); in TEST_F()
221 aidl::hidl2aidl::test::ArrayFoo dest; in TEST_F() local
225 ASSERT_TRUE(h2a::translate(source, &dest)); in TEST_F()
226 EXPECT_EQ(static_cast<aidl::hidl2aidl::test::Value>(source.c[0]), dest.c[0]); in TEST_F()
227 EXPECT_EQ(static_cast<aidl::hidl2aidl::test::Value>(source.c[1]), dest.c[1]); in TEST_F()
231 aidl::hidl2aidl::test::ArrayFoo dest; in TEST_F() local
235 ASSERT_TRUE(h2a::translate(source, &dest)); in TEST_F()
236 EXPECT_EQ(source.d[0], dest.d[0]); in TEST_F()
237 EXPECT_EQ(source.d[1], dest.d[1]); in TEST_F()
241 aidl::hidl2aidl::test::VectorFoo dest; in TEST_F() local
244 ASSERT_TRUE(h2a::translate(source, &dest)); in TEST_F()
245 EXPECT_EQ(source.a[0], dest.a[0]); in TEST_F()
246 EXPECT_EQ(source.a[1], dest.a[1]); in TEST_F()
250 aidl::hidl2aidl::test::VectorFoo dest; in TEST_F() local
252 ASSERT_TRUE(h2a::translate(source, &dest)); in TEST_F()
253 EXPECT_EQ(0u, dest.a.size()); in TEST_F()
257 aidl::hidl2aidl::test::VectorFoo dest; in TEST_F() local
261 ASSERT_FALSE(h2a::translate(source, &dest)); in TEST_F()
265 aidl::hidl2aidl::test::VectorFoo dest; in TEST_F() local
268 ASSERT_TRUE(h2a::translate(source, &dest)); in TEST_F()
269 EXPECT_EQ(static_cast<aidl::hidl2aidl::test::Value>(source.c[0]), dest.c[0]); in TEST_F()
270 EXPECT_EQ(static_cast<aidl::hidl2aidl::test::Value>(source.c[1]), dest.c[1]); in TEST_F()
274 aidl::hidl2aidl::test::VectorFoo dest; in TEST_F() local
277 ASSERT_TRUE(h2a::translate(source, &dest)); in TEST_F()
278 EXPECT_EQ(source.d[0], dest.d[0]); in TEST_F()
279 EXPECT_EQ(source.d[1], dest.d[1]); in TEST_F()
283 aidl::hidl2aidl::test::extension::ArrayFoo dest; in TEST_F() local
287 ASSERT_TRUE(h2a::translate(source, &dest)); in TEST_F()
288 EXPECT_EQ(source.e[0], dest.e[0]); in TEST_F()
289 EXPECT_EQ(source.e[1], dest.e[1]); in TEST_F()