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/tools/aapt2/
DConfigDescription_test.cpp30 static ::testing::AssertionResult TestParse( in TestParse() function
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()
61 TestParse("mcc310-pl-sw720dp-normal-long-port-night-" in TEST()
71 EXPECT_TRUE(TestParse("en-rUS", &config)); in TEST()
[all …]
DResourceParser_test.cpp65 ::testing::AssertionResult TestParse(const StringPiece& str) { in TestParse() function in aapt::ResourceParserTest
66 return TestParse(str, ConfigDescription{}); in TestParse()
69 ::testing::AssertionResult TestParse(const StringPiece& str, const ConfigDescription& config) { in TestParse() function in aapt::ResourceParserTest
92 ASSERT_TRUE(TestParse(R"(<string name="foo"> " hey there " </string>)")); in TEST_F()
99 ASSERT_TRUE(TestParse(R"(<string name="bar">Isn\'t it cool?</string>)")); in TEST_F()
104 ASSERT_TRUE(TestParse(R"(<string name="baz">"Isn't it cool?"</string>)")); in TEST_F()
134 ASSERT_TRUE(TestParse(input)); in TEST_F()
153 ASSERT_TRUE(TestParse(R"(<string name="foo"> This is what I think </string>)")); in TEST_F()
160 ASSERT_TRUE(TestParse(R"(<string name="foo2">" This is what I think "</string>)")); in TEST_F()
169 EXPECT_TRUE(TestParse(R"(<string name="foo">&#32;Hello&#32;</string>)")); in TEST_F()
[all …]