| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include <memory> | 5 #include <memory> |
| 6 #include <string> | 6 #include <string> |
| 7 #include <utility> | 7 #include <utility> |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
| (...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 76 | 76 |
| 77 } // namespace | 77 } // namespace |
| 78 | 78 |
| 79 class ArcKioskAppManagerTest : public InProcessBrowserTest { | 79 class ArcKioskAppManagerTest : public InProcessBrowserTest { |
| 80 public: | 80 public: |
| 81 ArcKioskAppManagerTest() : settings_helper_(false) {} | 81 ArcKioskAppManagerTest() : settings_helper_(false) {} |
| 82 ~ArcKioskAppManagerTest() override {} | 82 ~ArcKioskAppManagerTest() override {} |
| 83 | 83 |
| 84 void SetUpCommandLine(base::CommandLine* command_line) override { | 84 void SetUpCommandLine(base::CommandLine* command_line) override { |
| 85 InProcessBrowserTest::SetUpCommandLine(command_line); | 85 InProcessBrowserTest::SetUpCommandLine(command_line); |
| 86 command_line->AppendSwitch(chromeos::switches::kEnableArcKiosk); | 86 command_line->AppendSwitch(chromeos::switches::kArcAvailable); |
| 87 } | 87 } |
| 88 | 88 |
| 89 void SetUpOnMainThread() override { | 89 void SetUpOnMainThread() override { |
| 90 InProcessBrowserTest::SetUpOnMainThread(); | 90 InProcessBrowserTest::SetUpOnMainThread(); |
| 91 | 91 |
| 92 settings_helper_.ReplaceProvider(kAccountsPrefDeviceLocalAccounts); | 92 settings_helper_.ReplaceProvider(kAccountsPrefDeviceLocalAccounts); |
| 93 owner_settings_service_ = | 93 owner_settings_service_ = |
| 94 settings_helper_.CreateOwnerSettingsService(browser()->profile()); | 94 settings_helper_.CreateOwnerSettingsService(browser()->profile()); |
| 95 } | 95 } |
| 96 | 96 |
| (...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 209 CleanApps(); | 209 CleanApps(); |
| 210 waiter.Wait(); | 210 waiter.Wait(); |
| 211 EXPECT_TRUE(waiter.was_notified()); | 211 EXPECT_TRUE(waiter.was_notified()); |
| 212 | 212 |
| 213 ASSERT_EQ(0u, manager()->GetAllApps().size()); | 213 ASSERT_EQ(0u, manager()->GetAllApps().size()); |
| 214 EXPECT_FALSE(manager()->GetAutoLaunchAccountId().is_valid()); | 214 EXPECT_FALSE(manager()->GetAutoLaunchAccountId().is_valid()); |
| 215 } | 215 } |
| 216 } | 216 } |
| 217 | 217 |
| 218 } // namespace chromeos | 218 } // namespace chromeos |
| OLD | NEW |