Lines Matching refs:IsAndroidSharedUserId
142 TEST(UtilTest, IsAndroidSharedUserId) { in TEST() argument
143 EXPECT_TRUE(util::IsAndroidSharedUserId("android", "foo")); in TEST()
144 EXPECT_TRUE(util::IsAndroidSharedUserId("com.foo", "android.test")); in TEST()
145 EXPECT_TRUE(util::IsAndroidSharedUserId("com.foo", "com.foo")); in TEST()
146 EXPECT_TRUE(util::IsAndroidSharedUserId("com.foo", "com.foo.test_thing")); in TEST()
147 EXPECT_TRUE(util::IsAndroidSharedUserId("com.foo", "com.foo.testing_thing_")); in TEST()
148 EXPECT_TRUE(util::IsAndroidSharedUserId("com.foo", "com.foo.test_99_")); in TEST()
149 EXPECT_TRUE(util::IsAndroidSharedUserId("com.foo", "")); in TEST()
150 EXPECT_TRUE(util::IsAndroidSharedUserId("com.foo", kMaxPackageName)); in TEST()
152 EXPECT_FALSE(util::IsAndroidSharedUserId("com.foo", "android._test")); in TEST()
153 EXPECT_FALSE(util::IsAndroidSharedUserId("com.foo", "com")); in TEST()
154 EXPECT_FALSE(util::IsAndroidSharedUserId("com.foo", "_android")); in TEST()
155 EXPECT_FALSE(util::IsAndroidSharedUserId("com.foo", "android.")); in TEST()
156 EXPECT_FALSE(util::IsAndroidSharedUserId("com.foo", ".android")); in TEST()
157 EXPECT_FALSE(util::IsAndroidSharedUserId("com.foo", "..")); in TEST()
158 EXPECT_FALSE(util::IsAndroidSharedUserId("com.foo", "cøm.foo")); in TEST()
159 EXPECT_FALSE(util::IsAndroidSharedUserId("com.foo", kLongPackageName)); in TEST()