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 = test::ResourceTableBuilder() in TEST_F() local
129 ASSERT_FALSE(assigner.Consume(context.get(), table.get())); in TEST_F()
133 auto table = test::ResourceTableBuilder() in TEST_F() local
140 ASSERT_TRUE(assigner.Consume(context.get(), table.get())); in TEST_F()
141 ASSERT_TRUE(VerifyIds(table.get())); in TEST_F()
142 auto result = table->FindResource(test::ParseNameOrDie("android:attr/foo")); in TEST_F()
150 ResourceTable table; in TEST_F() local
154 table.AddResource(NewResourceBuilder("android:attr/res" + std::to_string(i)).Build(), in TEST_F()
158 ASSERT_TRUE(assigner.Consume(context.get(), &table)); in TEST_F()
162 ResourceTable table; in TEST_F() local
166 table.AddResource(NewResourceBuilder("android:attr/res" + std::to_string(i)).Build(), in TEST_F()
170 ASSERT_FALSE(assigner.Consume(context.get(), &table)); in TEST_F()
174 ResourceTable table; in TEST_F() local
175 ASSERT_TRUE(table.AddResource(NewResourceBuilder("android:attr/res").SetId(0x0101ffff).Build(), in TEST_F()
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()
187 ::testing::AssertionResult VerifyIds(ResourceTable* table) { in VerifyIds() argument
189 for (auto& package : table->packages) { in VerifyIds()