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

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

Issue 2957983002: Remove pointless InProcessBrowserTest calls. (Closed)
Patch Set: build Created 3 years, 5 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
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 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 } 75 }
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);
86 arc::SetArcAvailableCommandLineForTesting(command_line); 85 arc::SetArcAvailableCommandLineForTesting(command_line);
87 } 86 }
88 87
89 void SetUpOnMainThread() override { 88 void SetUpOnMainThread() override {
90 settings_helper_.ReplaceProvider(kAccountsPrefDeviceLocalAccounts); 89 settings_helper_.ReplaceProvider(kAccountsPrefDeviceLocalAccounts);
91 owner_settings_service_ = 90 owner_settings_service_ =
92 settings_helper_.CreateOwnerSettingsService(browser()->profile()); 91 settings_helper_.CreateOwnerSettingsService(browser()->profile());
93 } 92 }
94 93
95 void TearDownOnMainThread() override { settings_helper_.RestoreProvider(); } 94 void TearDownOnMainThread() override { settings_helper_.RestoreProvider(); }
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after
222 EXPECT_TRUE(waiter.was_notified()); 221 EXPECT_TRUE(waiter.was_notified());
223 222
224 ArcKioskAppManager::Apps apps; 223 ArcKioskAppManager::Apps apps;
225 manager()->GetAllApps(&apps); 224 manager()->GetAllApps(&apps);
226 ASSERT_EQ(0u, apps.size()); 225 ASSERT_EQ(0u, apps.size());
227 EXPECT_FALSE(manager()->GetAutoLaunchAccountId().is_valid()); 226 EXPECT_FALSE(manager()->GetAutoLaunchAccountId().is_valid());
228 } 227 }
229 } 228 }
230 229
231 } // namespace chromeos 230 } // namespace chromeos
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698