Home
last modified time | relevance | path

Searched refs:TestParse (Results 1 – 4 of 4) sorted by relevance

/frameworks/base/tools/aapt/tests/
DAaptConfig_test.cpp27 static ::testing::AssertionResult TestParse(const String8& input, ConfigDescription* config=NULL) { in TestParse() function
34 static ::testing::AssertionResult TestParse(const char* input, ConfigDescription* config=NULL) { in TestParse() function
35 return TestParse(String8(input), config); in TestParse()
39 EXPECT_FALSE(TestParse("en-sw600dp-ldrtl")); in TEST()
40 EXPECT_FALSE(TestParse("land-en")); in TEST()
41 EXPECT_FALSE(TestParse("hdpi-320dpi")); in TEST()
45 EXPECT_FALSE(TestParse("en-sw600dp-ILLEGAL")); in TEST()
49 EXPECT_FALSE(TestParse("en-sw600dp-land-")); in TEST()
54 EXPECT_TRUE(TestParse("", &config)); in TEST()
57 EXPECT_TRUE(TestParse("fr-land", &config)); in TEST()
[all …]
DAaptGroupEntry_test.cpp26 static ::testing::AssertionResult TestParse(AaptGroupEntry& entry, const String8& dirName, in TestParse() function
34 static ::testing::AssertionResult TestParse(AaptGroupEntry& entry, const char* input, in TestParse() function
36 return TestParse(entry, String8(input), outType); in TestParse()
42 EXPECT_TRUE(TestParse(entry, "menu", &type)); in TEST()
49 EXPECT_TRUE(TestParse(entry, "anim", &type)); in TEST()
52 EXPECT_TRUE(TestParse(entry, "animator", &type)); in TEST()
/frameworks/base/libs/androidfw/tests/
DConfigDescription_test.cpp28 static ::testing::AssertionResult TestParse( in TestParse() function
37 EXPECT_FALSE(TestParse("en-sw600dp-ldrtl")); in TEST()
38 EXPECT_FALSE(TestParse("land-en")); in TEST()
39 EXPECT_FALSE(TestParse("hdpi-320dpi")); in TEST()
43 EXPECT_FALSE(TestParse("en-sw600dp-ILLEGAL")); in TEST()
47 EXPECT_FALSE(TestParse("en-sw600dp-land-")); in TEST()
52 EXPECT_TRUE(TestParse("", &config)); in TEST()
55 EXPECT_TRUE(TestParse("fr-land", &config)); in TEST()
59 TestParse("mcc310-pl-sw720dp-normal-long-port-night-" in TEST()
69 EXPECT_TRUE(TestParse("en-rUS", &config)); in TEST()
[all …]
/frameworks/base/tools/aapt2/
DResourceParser_test.cpp66 ::testing::AssertionResult TestParse(const StringPiece& str) { in TestParse() function in aapt::ResourceParserTest
67 return TestParse(str, ConfigDescription{}); in TestParse()
70 ::testing::AssertionResult TestParse(const StringPiece& str, const ConfigDescription& config) { in TestParse() function in aapt::ResourceParserTest
93 ASSERT_TRUE(TestParse(R"(<string name="foo"> " hey there " </string>)")); in TEST_F()
100 ASSERT_TRUE(TestParse(R"(<string name="bar">Isn\'t it cool?</string>)")); in TEST_F()
105 ASSERT_TRUE(TestParse(R"(<string name="baz">"Isn't it cool?"</string>)")); in TEST_F()
135 ASSERT_TRUE(TestParse(input)); in TEST_F()
154 ASSERT_TRUE(TestParse(R"(<string name="foo"> This is what I think </string>)")); in TEST_F()
161 ASSERT_TRUE(TestParse(R"(<string name="foo2">" This is what I think "</string>)")); in TEST_F()
170 EXPECT_TRUE(TestParse(R"(<string name="foo">&#32;Hello&#32;</string>)")); in TEST_F()
[all …]