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

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

Issue 14192017: Extract certificate policy application from NetworkLibrary. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased. Created 7 years, 7 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 "base/command_line.h" 5 #include "base/command_line.h"
6 #include "base/memory/scoped_ptr.h" 6 #include "base/memory/scoped_ptr.h"
7 #include "base/message_loop.h" 7 #include "base/message_loop.h"
8 #include "chrome/browser/chromeos/cros/cros_in_process_browser_test.h" 8 #include "chrome/browser/chromeos/cros/cros_in_process_browser_test.h"
9 #include "chrome/browser/chromeos/cros/mock_network_library.h" 9 #include "chrome/browser/chromeos/cros/mock_network_library.h"
10 #include "chrome/browser/chromeos/login/mock_authenticator.h" 10 #include "chrome/browser/chromeos/login/mock_authenticator.h"
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after
130 .RetiresOnSaturation(); 130 .RetiresOnSaturation();
131 EXPECT_CALL(*mock_session_manager_client_, NotifyLockScreenDismissed()) 131 EXPECT_CALL(*mock_session_manager_client_, NotifyLockScreenDismissed())
132 .Times(1) 132 .Times(1)
133 .RetiresOnSaturation(); 133 .RetiresOnSaturation();
134 // Expectations for the status are on the screen lock window. 134 // Expectations for the status are on the screen lock window.
135 cros_mock_->SetStatusAreaMocksExpectations(); 135 cros_mock_->SetStatusAreaMocksExpectations();
136 MockNetworkLibrary* mock_network_library = 136 MockNetworkLibrary* mock_network_library =
137 cros_mock_->mock_network_library(); 137 cros_mock_->mock_network_library();
138 EXPECT_CALL(*mock_network_library, AddUserActionObserver(_)) 138 EXPECT_CALL(*mock_network_library, AddUserActionObserver(_))
139 .Times(AnyNumber()); 139 .Times(AnyNumber());
140 EXPECT_CALL(*mock_network_library, LoadOncNetworks(_, _, _, _)) 140 EXPECT_CALL(*mock_network_library, LoadOncNetworks(_, _))
141 .WillRepeatedly(Return(true)); 141 .Times(AnyNumber());
142 zero_duration_mode_.reset(new ui::ScopedAnimationDurationScaleMode( 142 zero_duration_mode_.reset(new ui::ScopedAnimationDurationScaleMode(
143 ui::ScopedAnimationDurationScaleMode::ZERO_DURATION)); 143 ui::ScopedAnimationDurationScaleMode::ZERO_DURATION));
144 } 144 }
145 145
146 virtual void SetUpCommandLine(CommandLine* command_line) OVERRIDE { 146 virtual void SetUpCommandLine(CommandLine* command_line) OVERRIDE {
147 command_line->AppendSwitchASCII(switches::kLoginProfile, "user"); 147 command_line->AppendSwitchASCII(switches::kLoginProfile, "user");
148 } 148 }
149 149
150 scoped_ptr<ui::ScopedAnimationDurationScaleMode> zero_duration_mode_; 150 scoped_ptr<ui::ScopedAnimationDurationScaleMode> zero_duration_mode_;
151 151
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after
265 content::RunAllPendingInMessageLoop(); 265 content::RunAllPendingInMessageLoop();
266 EXPECT_EQ("", tester->GetPassword()); 266 EXPECT_EQ("", tester->GetPassword());
267 267
268 // Close the locker to match expectations. 268 // Close the locker to match expectations.
269 ScreenLocker::Hide(); 269 ScreenLocker::Hide();
270 content::RunAllPendingInMessageLoop(); 270 content::RunAllPendingInMessageLoop();
271 EXPECT_FALSE(tester->IsLocked()); 271 EXPECT_FALSE(tester->IsLocked());
272 } 272 }
273 273
274 } // namespace chromeos 274 } // namespace chromeos
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698