| 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);
|
|
|