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

Side by Side Diff: chrome/browser/chromeos/login/lock/screen_locker_browsertest.cc

Issue 819133004: Make callers of CommandLine use it via the base:: namespace. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix Created 6 years 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 "chrome/browser/chromeos/login/lock/screen_locker.h" 5 #include "chrome/browser/chromeos/login/lock/screen_locker.h"
6 6
7 #include "ash/wm/window_state.h" 7 #include "ash/wm/window_state.h"
8 #include "base/command_line.h" 8 #include "base/command_line.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "base/message_loop/message_loop.h" 10 #include "base/message_loop/message_loop.h"
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
122 virtual void SetUpInProcessBrowserTestFixture() override { 122 virtual void SetUpInProcessBrowserTestFixture() override {
123 fake_session_manager_client_ = new FakeSessionManagerClient; 123 fake_session_manager_client_ = new FakeSessionManagerClient;
124 DBusThreadManager::GetSetterForTesting()->SetSessionManagerClient( 124 DBusThreadManager::GetSetterForTesting()->SetSessionManagerClient(
125 scoped_ptr<SessionManagerClient>(fake_session_manager_client_)); 125 scoped_ptr<SessionManagerClient>(fake_session_manager_client_));
126 126
127 InProcessBrowserTest::SetUpInProcessBrowserTestFixture(); 127 InProcessBrowserTest::SetUpInProcessBrowserTestFixture();
128 zero_duration_mode_.reset(new ui::ScopedAnimationDurationScaleMode( 128 zero_duration_mode_.reset(new ui::ScopedAnimationDurationScaleMode(
129 ui::ScopedAnimationDurationScaleMode::ZERO_DURATION)); 129 ui::ScopedAnimationDurationScaleMode::ZERO_DURATION));
130 } 130 }
131 131
132 virtual void SetUpCommandLine(CommandLine* command_line) override { 132 virtual void SetUpCommandLine(base::CommandLine* command_line) override {
133 command_line->AppendSwitchASCII(switches::kLoginProfile, "user"); 133 command_line->AppendSwitchASCII(switches::kLoginProfile, "user");
134 } 134 }
135 135
136 scoped_ptr<ui::ScopedAnimationDurationScaleMode> zero_duration_mode_; 136 scoped_ptr<ui::ScopedAnimationDurationScaleMode> zero_duration_mode_;
137 137
138 DISALLOW_COPY_AND_ASSIGN(ScreenLockerTest); 138 DISALLOW_COPY_AND_ASSIGN(ScreenLockerTest);
139 }; 139 };
140 140
141 IN_PROC_BROWSER_TEST_F(ScreenLockerTest, TestBasic) { 141 IN_PROC_BROWSER_TEST_F(ScreenLockerTest, TestBasic) {
142 ScreenLocker::Show(); 142 ScreenLocker::Show();
(...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after
295 EXPECT_EQ("", tester->GetPassword()); 295 EXPECT_EQ("", tester->GetPassword());
296 296
297 // Close the locker to match expectations. 297 // Close the locker to match expectations.
298 ScreenLocker::Hide(); 298 ScreenLocker::Hide();
299 content::RunAllPendingInMessageLoop(); 299 content::RunAllPendingInMessageLoop();
300 EXPECT_FALSE(tester->IsLocked()); 300 EXPECT_FALSE(tester->IsLocked());
301 EXPECT_TRUE(VerifyLockScreenDismissed()); 301 EXPECT_TRUE(VerifyLockScreenDismissed());
302 } 302 }
303 303
304 } // namespace chromeos 304 } // namespace chromeos
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/login/kiosk_browsertest.cc ('k') | chrome/browser/chromeos/login/login_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698