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

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

Issue 2725113002: Enable ARC kiosk mode always when ARC is available (Closed)
Patch Set: feedback2 Created 3 years, 10 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
« no previous file with comments | « no previous file | chromeos/chromeos_switches.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 ef9845b19772a30f4df9dcce131a3c46acc02b37..2b2bb2db9cedd5a65b519aea0822da23f1c9b3c1 100644
--- a/chrome/browser/chromeos/arc/arc_util_unittest.cc
+++ b/chrome/browser/chromeos/arc/arc_util_unittest.cc
@@ -200,30 +200,32 @@ TEST_F(ChromeArcUtilTest, IsArcAllowedForProfile_ActiveDirectoryDisabled) {
EXPECT_FALSE(IsArcAllowedForProfile(profile()));
}
-TEST_F(ChromeArcUtilTest, IsArcAllowedForProfile_KioskArcEnabled) {
+TEST_F(ChromeArcUtilTest, IsArcAllowedForProfile_KioskArcNotAvailable) {
+ base::CommandLine::ForCurrentProcess()->InitFromArgv({""});
ScopedLogIn login(GetFakeUserManager(),
AccountId::FromUserEmail(profile()->GetProfileUserName()),
user_manager::USER_TYPE_ARC_KIOSK_APP);
EXPECT_FALSE(chromeos::ProfileHelper::Get()
->GetUserByProfile(profile())
->HasGaiaAccount());
- EXPECT_TRUE(IsArcAllowedForProfile(profile()));
+ EXPECT_FALSE(IsArcAllowedForProfile(profile()));
}
-TEST_F(ChromeArcUtilTest, IsArcAllowedForProfile_KioskArcDisabled) {
- base::CommandLine::ForCurrentProcess()->InitFromArgv({""});
+TEST_F(ChromeArcUtilTest, IsArcAllowedForProfile_KioskArcInstalled) {
+ base::CommandLine::ForCurrentProcess()->InitFromArgv(
+ {"", "--arc-availability=installed"});
ScopedLogIn login(GetFakeUserManager(),
AccountId::FromUserEmail(profile()->GetProfileUserName()),
user_manager::USER_TYPE_ARC_KIOSK_APP);
EXPECT_FALSE(chromeos::ProfileHelper::Get()
->GetUserByProfile(profile())
->HasGaiaAccount());
- EXPECT_FALSE(IsArcAllowedForProfile(profile()));
+ EXPECT_TRUE(IsArcAllowedForProfile(profile()));
}
-TEST_F(ChromeArcUtilTest, IsArcAllowedForProfile_KioskOnlyEnabled) {
+TEST_F(ChromeArcUtilTest, IsArcAllowedForProfile_KioskArcSupported) {
base::CommandLine::ForCurrentProcess()->InitFromArgv(
- {"", "--arc-availability=installed-only-kiosk-supported"});
+ {"", "--arc-availability=officially-supported"});
ScopedLogIn login(GetFakeUserManager(),
AccountId::FromUserEmail(profile()->GetProfileUserName()),
user_manager::USER_TYPE_ARC_KIOSK_APP);
« no previous file with comments | « no previous file | chromeos/chromeos_switches.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698