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

Side by Side Diff: chrome/browser/chromeos/app_mode/arc/arc_kiosk_app_manager_browsertest.cc

Issue 2730003002: [M57] Enable ARC kiosk mode always when ARC is available (Closed)
Patch Set: rebase Created 3 years, 9 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 unified diff | Download patch
« no previous file with comments | « no previous file | chrome/browser/chromeos/login/chrome_restart_request.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/chromeos/login/chrome_restart_request.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698