Lines Matching refs:test

24   std::unique_ptr<IAaptContext> context = test::ContextBuilder().Build();  in TEST()
26 test::ResourceTableBuilder() in TEST()
29 .AddSimple("android:string/foo", test::ParseConfigOrDie("en-rGB")) in TEST()
30 .AddSimple("android:string/foo", test::ParseConfigOrDie("fr-rFR")) in TEST()
31 .AddSimple("android:string/bar", test::ParseConfigOrDie("en-rGB")) in TEST()
32 .AddSimple("android:string/bar", test::ParseConfigOrDie("fr-rFR")) in TEST()
33 .AddSimple("android:string/bat", test::ParseConfigOrDie("en-rGB-xhdpi")) in TEST()
34 .AddSimple("android:string/bat", test::ParseConfigOrDie("fr-rFR-hdpi")) in TEST()
35 .AddSimple("android:string/baz", test::ParseConfigOrDie("en-rGB")) in TEST()
36 .AddSimple("android:string/baz", test::ParseConfigOrDie("fr-rFR")) in TEST()
43 EXPECT_TRUE(table->FindResource(test::ParseNameOrDie("android:string/foo"))); in TEST()
44 EXPECT_FALSE(table->FindResource(test::ParseNameOrDie("android:string/bar"))); in TEST()
45 EXPECT_TRUE(table->FindResource(test::ParseNameOrDie("android:string/bat"))); in TEST()
46 EXPECT_TRUE(table->FindResource(test::ParseNameOrDie("android:string/baz"))); in TEST()
50 std::unique_ptr<IAaptContext> context = test::ContextBuilder().SetMinSdkVersion(26).Build(); in TEST()
52 test::ResourceTableBuilder() in TEST()
54 .AddSimple("android:drawable/keep1", test::ParseConfigOrDie("mdpi")) // v4 in TEST()
55 .AddSimple("android:drawable/keep1", test::ParseConfigOrDie("en-rGB")) in TEST()
56 .AddSimple("android:drawable/keep1", test::ParseConfigOrDie("fr-rFR")) in TEST()
57 .AddSimple("android:drawable/keep2", test::ParseConfigOrDie("fr-rFR")) in TEST()
58 .AddSimple("android:drawable/keep2", test::ParseConfigOrDie("en-rGB")) in TEST()
59 .AddSimple("android:drawable/keep2", test::ParseConfigOrDie("xxxhdpi")) // v4 in TEST()
60 .AddSimple("android:drawable/remove1", test::ParseConfigOrDie("fr-rFR")) in TEST()
61 .AddSimple("android:drawable/remove1", test::ParseConfigOrDie("en-rGB")) in TEST()
62 .AddSimple("android:drawable/remove1", test::ParseConfigOrDie("w600dp-xhdpi")) // v13 in TEST()
68 EXPECT_TRUE(table->FindResource(test::ParseNameOrDie("android:drawable/keep1"))); in TEST()
69 EXPECT_TRUE(table->FindResource(test::ParseNameOrDie("android:drawable/keep2"))); in TEST()
70 EXPECT_FALSE(table->FindResource(test::ParseNameOrDie("android:drawable/remove1"))); in TEST()
74 std::unique_ptr<IAaptContext> context = test::ContextBuilder().SetMinSdkVersion(3).Build(); in TEST()
76 test::ResourceTableBuilder() in TEST()
78 .AddSimple("android:drawable/remove1", test::ParseConfigOrDie("mdpi")) // v4 in TEST()
79 .AddSimple("android:drawable/remove1", test::ParseConfigOrDie("en-rGB")) in TEST()
80 .AddSimple("android:drawable/remove1", test::ParseConfigOrDie("fr-rFR")) in TEST()
86 EXPECT_FALSE(table->FindResource(test::ParseNameOrDie("android:drawable/remove1"))); in TEST()
90 std::unique_ptr<IAaptContext> context = test::ContextBuilder().SetMinSdkVersion(8).Build(); in TEST()
92 test::ResourceTableBuilder() in TEST()
94 .AddSimple("android:drawable/keep1", test::ParseConfigOrDie("v8")) in TEST()
95 .AddSimple("android:drawable/keep1", test::ParseConfigOrDie("en-rGB")) in TEST()
96 .AddSimple("android:drawable/keep1", test::ParseConfigOrDie("fr-rFR")) in TEST()
97 .AddSimple("android:drawable/remove1", test::ParseConfigOrDie("v9")) in TEST()
98 .AddSimple("android:drawable/remove1", test::ParseConfigOrDie("en-rGB")) in TEST()
99 .AddSimple("android:drawable/remove1", test::ParseConfigOrDie("fr-rFR")) in TEST()
105 EXPECT_TRUE(table->FindResource(test::ParseNameOrDie("android:drawable/keep1"))); in TEST()
106 EXPECT_FALSE(table->FindResource(test::ParseNameOrDie("android:drawable/remove1"))); in TEST()