Searched defs:TestParse (Results 1 - 4 of 4) sorted by relevance

/frameworks/base/tools/aapt/tests/
H A DAaptConfig_test.cpp27 static ::testing::AssertionResult TestParse(const String8& input, ConfigDescription* config=NULL) { function
34 static ::testing::AssertionResult TestParse(const char* input, ConfigDescription* config=NULL) { function
35 return TestParse(String8(input), config);
39 EXPECT_FALSE(TestParse("en-sw600dp-ldrtl"));
40 EXPECT_FALSE(TestParse("land-en"));
41 EXPECT_FALSE(TestParse("hdpi-320dpi"));
45 EXPECT_FALSE(TestParse("en-sw600dp-ILLEGAL"));
49 EXPECT_FALSE(TestParse("en-sw600dp-land-"));
54 EXPECT_TRUE(TestParse("", &config));
57 EXPECT_TRUE(TestParse("f
[all...]
H A DAaptGroupEntry_test.cpp26 static ::testing::AssertionResult TestParse(AaptGroupEntry& entry, const String8& dirName, function
34 static ::testing::AssertionResult TestParse(AaptGroupEntry& entry, const char* input, function
36 return TestParse(entry, String8(input), outType);
42 EXPECT_TRUE(TestParse(entry, "menu", &type));
49 EXPECT_TRUE(TestParse(entry, "anim", &type));
52 EXPECT_TRUE(TestParse(entry, "animator", &type));
/frameworks/base/tools/aapt2/
H A DConfigDescription_test.cpp30 static ::testing::AssertionResult TestParse( function in namespace:aapt
39 EXPECT_FALSE(TestParse("en-sw600dp-ldrtl"));
40 EXPECT_FALSE(TestParse("land-en"));
41 EXPECT_FALSE(TestParse("hdpi-320dpi"));
45 EXPECT_FALSE(TestParse("en-sw600dp-ILLEGAL"));
49 EXPECT_FALSE(TestParse("en-sw600dp-land-"));
54 EXPECT_TRUE(TestParse("", &config));
57 EXPECT_TRUE(TestParse("fr-land", &config));
61 TestParse("mcc310-pl-sw720dp-normal-long-port-night-"
71 EXPECT_TRUE(TestParse("e
[all...]
H A DResourceParser_test.cpp65 ::testing::AssertionResult TestParse(const StringPiece& str) { function in class:aapt::ResourceParserTest
66 return TestParse(str, ConfigDescription{});
69 ::testing::AssertionResult TestParse(const StringPiece& str, const ConfigDescription& config) { function in class:aapt::ResourceParserTest
92 ASSERT_TRUE(TestParse(R"(<string name="foo"> " hey there " </string>)"));
99 ASSERT_TRUE(TestParse(R"(<string name="bar">Isn\'t it cool?</string>)"));
104 ASSERT_TRUE(TestParse(R"(<string name="baz">"Isn't it cool?"</string>)"));
111 ASSERT_TRUE(TestParse(R"(<string name="foo">\?123</string>)"));
118 ASSERT_TRUE(TestParse(R"(<string name="bar">This isn\’t a bad string</string>)"));
125 ASSERT_FALSE(TestParse(R"(<string name="foo">%d %s</string>)"));
126 ASSERT_TRUE(TestParse(
[all...]

Completed in 104 milliseconds