Lines Matching refs:IsAndroidPackageName
123 TEST(UtilTest, IsAndroidPackageName) { in TEST() argument
124 EXPECT_TRUE(util::IsAndroidPackageName("android")); in TEST()
125 EXPECT_TRUE(util::IsAndroidPackageName("android.test")); in TEST()
126 EXPECT_TRUE(util::IsAndroidPackageName("com.foo")); in TEST()
127 EXPECT_TRUE(util::IsAndroidPackageName("com.foo.test_thing")); in TEST()
128 EXPECT_TRUE(util::IsAndroidPackageName("com.foo.testing_thing_")); in TEST()
129 EXPECT_TRUE(util::IsAndroidPackageName("com.foo.test_99_")); in TEST()
130 EXPECT_TRUE(util::IsAndroidPackageName(kMaxPackageName)); in TEST()
132 EXPECT_FALSE(util::IsAndroidPackageName("android._test")); in TEST()
133 EXPECT_FALSE(util::IsAndroidPackageName("com")); in TEST()
134 EXPECT_FALSE(util::IsAndroidPackageName("_android")); in TEST()
135 EXPECT_FALSE(util::IsAndroidPackageName("android.")); in TEST()
136 EXPECT_FALSE(util::IsAndroidPackageName(".android")); in TEST()
137 EXPECT_FALSE(util::IsAndroidPackageName("..")); in TEST()
138 EXPECT_FALSE(util::IsAndroidPackageName("cøm.foo")); in TEST()
139 EXPECT_FALSE(util::IsAndroidPackageName(kLongPackageName)); in TEST()