Lines Matching refs:test

39       test::ParseNameOrDie("android:id/hey,there"), ConfigDescription{}, "",  in TEST()
40 test::ValueBuilder<Id>().SetSource("test.xml", 21u).Build(), in TEST()
41 test::GetDiagnostics())); in TEST()
44 test::ParseNameOrDie("android:id/hey:there"), ConfigDescription{}, "", in TEST()
45 test::ValueBuilder<Id>().SetSource("test.xml", 21u).Build(), in TEST()
46 test::GetDiagnostics())); in TEST()
53 test::ParseNameOrDie("android:id/heythere "), ConfigDescription{}, "", in TEST()
54 test::ValueBuilder<Id>().SetSource("test.xml", 21u).Build(), test::GetDiagnostics())); in TEST()
61 test::ParseNameOrDie("android:attr/id"), ConfigDescription{}, "", in TEST()
62 test::ValueBuilder<Id>().SetSource("test/path/file.xml", 23u).Build(), in TEST()
63 test::GetDiagnostics())); in TEST()
65 EXPECT_THAT(test::GetValue<Id>(&table, "android:attr/id"), NotNull()); in TEST()
76 test::ParseNameOrDie("android:attr/layout_width"), config, "", in TEST()
77 test::ValueBuilder<Id>().SetSource("test/path/file.xml", 10u).Build(), in TEST()
78 test::GetDiagnostics())); in TEST()
81 test::ParseNameOrDie("android:attr/id"), config, "", in TEST()
82 test::ValueBuilder<Id>().SetSource("test/path/file.xml", 12u).Build(), in TEST()
83 test::GetDiagnostics())); in TEST()
86 test::ParseNameOrDie("android:string/ok"), config, "", in TEST()
87 test::ValueBuilder<Id>().SetSource("test/path/file.xml", 14u).Build(), in TEST()
88 test::GetDiagnostics())); in TEST()
91 test::ParseNameOrDie("android:string/ok"), language_config, "", in TEST()
92 test::ValueBuilder<BinaryPrimitive>(android::Res_value{}) in TEST()
95 test::GetDiagnostics())); in TEST()
97 EXPECT_THAT(test::GetValue<Id>(&table, "android:attr/layout_width"), NotNull()); in TEST()
98 EXPECT_THAT(test::GetValue<Id>(&table, "android:attr/id"), NotNull()); in TEST()
99 EXPECT_THAT(test::GetValue<Id>(&table, "android:string/ok"), NotNull()); in TEST()
100 …EXPECT_THAT(test::GetValueForConfig<BinaryPrimitive>(&table, "android:string/ok", language_config)… in TEST()
106 ASSERT_TRUE(table.AddResource(test::ParseNameOrDie("android:attr/foo"), ConfigDescription{}, "", in TEST()
107 test::AttributeBuilder().SetWeak(true).Build(), in TEST()
108 test::GetDiagnostics())); in TEST()
110 Attribute* attr = test::GetValue<Attribute>(&table, "android:attr/foo"); in TEST()
114 ASSERT_TRUE(table.AddResource(test::ParseNameOrDie("android:attr/foo"), ConfigDescription{}, "", in TEST()
115 util::make_unique<Attribute>(), test::GetDiagnostics())); in TEST()
117 attr = test::GetValue<Attribute>(&table, "android:attr/foo"); in TEST()
125 const ResourceName name = test::ParseNameOrDie("android:attr/foo"); in TEST()
132 util::make_unique<Attribute>(attr_one), test::GetDiagnostics())); in TEST()
134 util::make_unique<Attribute>(attr_two), test::GetDiagnostics())); in TEST()
140 EXPECT_TRUE(table.AddResource(test::ParseNameOrDie("android:string/foo"), in TEST()
141 test::ParseConfigOrDie("land"), "tablet", in TEST()
143 test::GetDiagnostics())); in TEST()
144 EXPECT_TRUE(table.AddResource(test::ParseNameOrDie("android:string/foo"), in TEST()
145 test::ParseConfigOrDie("land"), "phone", in TEST()
147 test::GetDiagnostics())); in TEST()
149 …EXPECT_THAT(test::GetValueForConfigAndProduct<Id>(&table, "android:string/foo",test::ParseConfigOr… in TEST()
150 …EXPECT_THAT(test::GetValueForConfigAndProduct<Id>(&table, "android:string/foo",test::ParseConfigOr… in TEST()
153 table.FindResource(test::ParseNameOrDie("android:string/foo")); in TEST()
156 sr.value().entry->FindAllValues(test::ParseConfigOrDie("land")); in TEST()
199 const ResourceName name = test::ParseNameOrDie("android:string/foo"); in TEST()
204 ASSERT_TRUE(table.SetVisibility(name, visibility, test::GetDiagnostics())); in TEST()
209 ASSERT_TRUE(table.SetVisibility(name, visibility, test::GetDiagnostics())); in TEST()
214 ASSERT_TRUE(table.SetVisibility(name, visibility, test::GetDiagnostics())); in TEST()
219 ASSERT_TRUE(table.SetVisibility(name, visibility, test::GetDiagnostics())); in TEST()
225 const ResourceName name = test::ParseNameOrDie("android:string/foo"); in TEST()
231 ASSERT_TRUE(table.SetAllowNew(name, allow_new, test::GetDiagnostics())); in TEST()
238 ASSERT_TRUE(table.SetAllowNew(name, allow_new, test::GetDiagnostics())); in TEST()
255 const ResourceName name = test::ParseNameOrDie("android:string/foo"); in TEST()
256 ASSERT_TRUE(table.SetOverlayable(name, overlayable_item, test::GetDiagnostics())); in TEST()
277 const ResourceName foo = test::ParseNameOrDie("android:string/foo"); in TEST()
281 ASSERT_TRUE(table.SetOverlayable(foo, overlayable, test::GetDiagnostics())); in TEST()
283 const ResourceName bar = test::ParseNameOrDie("android:string/bar"); in TEST()
286 ASSERT_TRUE(table.SetOverlayable(bar, overlayable2, test::GetDiagnostics())); in TEST()
288 const ResourceName baz = test::ParseNameOrDie("android:string/baz"); in TEST()
291 ASSERT_TRUE(table.SetOverlayable(baz, overlayable3, test::GetDiagnostics())); in TEST()
297 const ResourceName foo = test::ParseNameOrDie("android:string/foo"); in TEST()
300 ASSERT_TRUE(table.SetOverlayable(foo, overlayable_item, test::GetDiagnostics())); in TEST()
302 const ResourceName bar = test::ParseNameOrDie("android:string/bar"); in TEST()
305 ASSERT_TRUE(table.SetOverlayable(bar, overlayable_item2, test::GetDiagnostics())); in TEST()
310 const ResourceName name = test::ParseNameOrDie("android:string/foo"); in TEST()
314 ASSERT_TRUE(table.SetOverlayable(name, overlayable_item, test::GetDiagnostics())); in TEST()
317 ASSERT_FALSE(table.SetOverlayable(name, overlayable_item2, test::GetDiagnostics())); in TEST()
322 const ResourceName name = test::ParseNameOrDie("android:string/foo"); in TEST()
326 ASSERT_TRUE(table.SetOverlayable(name, overlayable_item, test::GetDiagnostics())); in TEST()
330 ASSERT_FALSE(table.SetOverlayable(name, overlayable_item2, test::GetDiagnostics())); in TEST()
336 const ResourceName foo_name = test::ParseNameOrDie("android:bool/foo"); in TEST()
338 test::BuildPrimitive(android::Res_value::TYPE_INT_BOOLEAN, 0), in TEST()
339 test::GetDiagnostics())); in TEST()
341 test::BuildPrimitive(android::Res_value::TYPE_INT_BOOLEAN, 1), in TEST()
342 test::GetDiagnostics())); in TEST()
345 ResourceId(0x7f0100ff), test::GetDiagnostics())); in TEST()
347 ResourceId(0x7f010100), test::GetDiagnostics())); in TEST()