Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(639)

Unified Diff: chrome/browser/chromeos/arc/arc_util_unittest.cc

Issue 2926893002: arc: Start ARC for Public Session users.
Patch Set: Hide Play Store Created 3 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/chromeos/arc/arc_util_unittest.cc
diff --git a/chrome/browser/chromeos/arc/arc_util_unittest.cc b/chrome/browser/chromeos/arc/arc_util_unittest.cc
index e826282e1671e2595c9f12a0202ae9fa4e3c08db..ba0fbdbfa7eddbc2dd9072fee752e19f43dc4f68 100644
--- a/chrome/browser/chromeos/arc/arc_util_unittest.cc
+++ b/chrome/browser/chromeos/arc/arc_util_unittest.cc
@@ -238,7 +238,10 @@ TEST_F(ChromeArcUtilTest, IsArcAllowedForProfile_PublicAccount) {
ScopedLogIn login(GetFakeUserManager(),
AccountId::FromUserEmail("public_user@gmail.com"),
user_manager::USER_TYPE_PUBLIC_ACCOUNT);
- EXPECT_FALSE(IsArcAllowedForProfile(profile()));
+ EXPECT_FALSE(chromeos::ProfileHelper::Get()
+ ->GetUserByProfile(profile())
+ ->HasGaiaAccount());
+ EXPECT_TRUE(IsArcAllowedForProfile(profile()));
}
TEST_F(ChromeArcUtilTest, IsArcAllowedForProfile_ActiveDirectoryEnabled) {
@@ -319,7 +322,7 @@ TEST_F(ChromeArcUtilTest, IsArcAllowedForProfile_GuestAccount) {
{"", "--arc-availability=officially-supported"});
ScopedLogIn login(GetFakeUserManager(),
GetFakeUserManager()->GetGuestAccountId());
- EXPECT_FALSE(IsArcAllowedForProfile(profile()));
+ EXPECT_TRUE(IsArcAllowedForProfile(profile()));
}
// Demo account is interpreted as EphemeralDataUser.
@@ -327,7 +330,7 @@ TEST_F(ChromeArcUtilTest, IsArcAllowedForProfile_DemoAccount) {
base::CommandLine::ForCurrentProcess()->InitFromArgv(
{"", "--arc-availability=officially-supported"});
ScopedLogIn login(GetFakeUserManager(), user_manager::DemoAccountId());
- EXPECT_FALSE(IsArcAllowedForProfile(profile()));
+ EXPECT_TRUE(IsArcAllowedForProfile(profile()));
}
TEST_F(ChromeArcUtilTest, IsArcCompatibleFileSystemUsedForProfile) {

Powered by Google App Engine
This is Rietveld 408576698