Lines Matching refs:TestParse
27 static ::testing::AssertionResult TestParse(const String8& input, ConfigDescription* config=NULL) {
34 static ::testing::AssertionResult TestParse(const char* input, ConfigDescription* config=NULL) {
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("fr-land", &config));
60 EXPECT_TRUE(TestParse("mcc310-pl-sw720dp-normal-long-port-night-"
68 EXPECT_TRUE(TestParse("en-rUS", &config));
74 EXPECT_TRUE(TestParse("sw600dp", &config));
77 EXPECT_TRUE(TestParse("sw600dp-v8", &config));
83 EXPECT_TRUE(TestParse("car", &config));
89 EXPECT_TRUE(TestParse("round", &config));
95 EXPECT_TRUE(TestParse("notround", &config));