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

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

Issue 2926893002: arc: Start ARC for Public Session users.
Patch Set: Fix missed IsPublicSessionMode() checks. Created 3 years, 4 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 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) {

Powered by Google App Engine
This is Rietveld 408576698