Lines Matching refs:table

30 ::testing::AssertionResult VerifyIds(ResourceTable* table);
33 auto table = test::ResourceTableBuilder() in TEST_F() local
40 ASSERT_TRUE(assigner.Consume(context.get(), table.get())); in TEST_F()
41 ASSERT_TRUE(VerifyIds(table.get())); in TEST_F()
45 auto table = test::ResourceTableBuilder() in TEST_F() local
57 ASSERT_TRUE(assigner.Consume(context.get(), table.get())); in TEST_F()
58 ASSERT_TRUE(VerifyIds(table.get())); in TEST_F()
64 maybe_result = table->FindResource(test::ParseNameOrDie("android:dimen/two")); in TEST_F()
69 table->FindResource(test::ParseNameOrDie("android:integer/three")); in TEST_F()
77 table->FindResource(test::ParseNameOrDie("android:string/five")); in TEST_F()
83 maybe_result = table->FindResource(test::ParseNameOrDie("android:attr/bar")); in TEST_F()
87 maybe_result = table->FindResource(test::ParseNameOrDie("android:attr/baz")); in TEST_F()
93 auto table = test::ResourceTableBuilder() in TEST_F() local
98 ASSERT_FALSE(assigner.Consume(context.get(), table.get())); in TEST_F()
102 auto table = test::ResourceTableBuilder() in TEST_F() local
107 ASSERT_FALSE(assigner.Consume(context.get(), table.get())); in TEST_F()
111 auto table = test::ResourceTableBuilder() in TEST_F() local
116 ASSERT_FALSE(assigner.Consume(context.get(), table.get())); in TEST_F()
120 auto table = in TEST_F() local
130 ASSERT_FALSE(assigner.Consume(context.get(), table.get())); in TEST_F()
134 auto table = in TEST_F() local
143 ASSERT_FALSE(assigner.Consume(context.get(), table.get())); in TEST_F()
147 auto table = test::ResourceTableBuilder() in TEST_F() local
154 ASSERT_TRUE(assigner.Consume(context.get(), table.get())); in TEST_F()
155 ASSERT_TRUE(VerifyIds(table.get())); in TEST_F()
156 auto result = table->FindResource(test::ParseNameOrDie("android:attr/foo")); in TEST_F()
164 ResourceTable table; in TEST_F() local
168 table.AddResource(NewResourceBuilder("android:attr/res" + std::to_string(i)).Build(), in TEST_F()
172 ASSERT_TRUE(assigner.Consume(context.get(), &table)); in TEST_F()
176 ResourceTable table; in TEST_F() local
180 table.AddResource(NewResourceBuilder("android:attr/res" + std::to_string(i)).Build(), in TEST_F()
184 ASSERT_FALSE(assigner.Consume(context.get(), &table)); in TEST_F()
188 ResourceTable table; in TEST_F() local
189 ASSERT_TRUE(table.AddResource(NewResourceBuilder("android:attr/res").SetId(0x0101ffff).Build(), in TEST_F()
194 table.AddResource(NewResourceBuilder("android:attr/res" + std::to_string(i)).Build(), in TEST_F()
198 ASSERT_FALSE(assigner.Consume(context.get(), &table)); in TEST_F()
201 ::testing::AssertionResult VerifyIds(ResourceTable* table) { in VerifyIds() argument
203 for (auto& package : table->packages) { in VerifyIds()