Searched refs:TestParse (Results 1 – 4 of 4) sorted by relevance
/frameworks/base/tools/aapt/tests/ |
D | AaptConfig_test.cpp | 27 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 …]
|
D | AaptGroupEntry_test.cpp | 26 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/ |
D | ConfigDescription_test.cpp | 30 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 …]
|
D | ResourceParser_test.cpp | 64 ::testing::AssertionResult TestParse(const StringPiece& str) { in TestParse() function in aapt::ResourceParserTest 65 return TestParse(str, ConfigDescription{}); in TestParse() 68 ::testing::AssertionResult TestParse(const StringPiece& str, const ConfigDescription& config) { in TestParse() function in aapt::ResourceParserTest 91 ASSERT_TRUE(TestParse(R"(<string name="foo"> " hey there " </string>)")); in TEST_F() 100 ASSERT_TRUE(TestParse(R"(<string name="foo">\?123</string>)")); in TEST_F() 107 ASSERT_TRUE(TestParse(R"(<string name="bar">This isn\’t a bad string</string>)")); in TEST_F() 114 ASSERT_FALSE(TestParse(R"(<string name="foo">%d %s</string>)")); in TEST_F() 115 ASSERT_TRUE(TestParse(R"(<string name="foo">%1$d %2$s</string>)")); in TEST_F() 123 ASSERT_TRUE(TestParse(input)); in TEST_F() 142 ASSERT_TRUE(TestParse(R"(<string name="foo"> This is what I think </string>)")); in TEST_F() [all …]
|