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 5f6c65ffa67a92c77ec40ae1a116daefbc380602..0446e9172e193e13f15d2d28025aef182bde8e3e 100644 |
--- a/chrome/browser/chromeos/arc/arc_util_unittest.cc |
+++ b/chrome/browser/chromeos/arc/arc_util_unittest.cc |
@@ -237,7 +237,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) { |
@@ -318,7 +321,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. |
@@ -326,7 +329,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) { |