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

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

Issue 10868076: Only import certificates with Web trust from ONC if the user is managed and matches the enterprise … (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebaesd Created 8 years, 3 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 110 matching lines...) Expand 10 before | Expand all | Expand 10 after
121 .RetiresOnSaturation(); 121 .RetiresOnSaturation();
122 EXPECT_CALL(*mock_power_manager_client_, NotifyScreenUnlockCompleted()) 122 EXPECT_CALL(*mock_power_manager_client_, NotifyScreenUnlockCompleted())
123 .Times(1) 123 .Times(1)
124 .RetiresOnSaturation(); 124 .RetiresOnSaturation();
125 // Expectations for the status are on the screen lock window. 125 // Expectations for the status are on the screen lock window.
126 cros_mock_->SetStatusAreaMocksExpectations(); 126 cros_mock_->SetStatusAreaMocksExpectations();
127 MockNetworkLibrary* mock_network_library = 127 MockNetworkLibrary* mock_network_library =
128 cros_mock_->mock_network_library(); 128 cros_mock_->mock_network_library();
129 EXPECT_CALL(*mock_network_library, AddUserActionObserver(_)) 129 EXPECT_CALL(*mock_network_library, AddUserActionObserver(_))
130 .Times(AnyNumber()); 130 .Times(AnyNumber());
131 EXPECT_CALL(*mock_network_library, LoadOncNetworks(_, _, _, _)) 131 EXPECT_CALL(*mock_network_library, LoadOncNetworks(_, _, _, _, _))
132 .WillRepeatedly(Return(true)); 132 .WillRepeatedly(Return(true));
133 } 133 }
134 134
135 virtual void SetUpCommandLine(CommandLine* command_line) { 135 virtual void SetUpCommandLine(CommandLine* command_line) {
136 command_line->AppendSwitchASCII(switches::kLoginProfile, "user"); 136 command_line->AppendSwitchASCII(switches::kLoginProfile, "user");
137 command_line->AppendSwitch(switches::kNoFirstRun); 137 command_line->AppendSwitch(switches::kNoFirstRun);
138 } 138 }
139 139
140 DISALLOW_COPY_AND_ASSIGN(ScreenLockerTest); 140 DISALLOW_COPY_AND_ASSIGN(ScreenLockerTest);
141 }; 141 };
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
253 content::RunAllPendingInMessageLoop(); 253 content::RunAllPendingInMessageLoop();
254 EXPECT_EQ("", tester->GetPassword()); 254 EXPECT_EQ("", tester->GetPassword());
255 255
256 // Close the locker to match expectations. 256 // Close the locker to match expectations.
257 ScreenLocker::Hide(); 257 ScreenLocker::Hide();
258 content::RunAllPendingInMessageLoop(); 258 content::RunAllPendingInMessageLoop();
259 EXPECT_FALSE(tester->IsLocked()); 259 EXPECT_FALSE(tester->IsLocked());
260 } 260 }
261 261
262 } // namespace chromeos 262 } // namespace chromeos
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698