Lines Matching refs:TestParse
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()
60 EXPECT_TRUE(TestParse("mcc310-pl-sw720dp-normal-long-port-night-" in TEST()
68 EXPECT_TRUE(TestParse("en-rUS", &config)); in TEST()
74 EXPECT_TRUE(TestParse("sw600dp", &config)); in TEST()
77 EXPECT_TRUE(TestParse("sw600dp-v8", &config)); in TEST()
83 EXPECT_TRUE(TestParse("car", &config)); in TEST()
89 EXPECT_TRUE(TestParse("round", &config)); in TEST()
95 EXPECT_TRUE(TestParse("notround", &config)); in TEST()
104 EXPECT_TRUE(TestParse("widecg", &config)); in TEST()
110 EXPECT_TRUE(TestParse("nowidecg", &config)); in TEST()
119 EXPECT_TRUE(TestParse("highdr", &config)); in TEST()
125 EXPECT_TRUE(TestParse("lowdr", &config)); in TEST()