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

Side by Side Diff: chrome/browser/chromeos/login/existing_user_controller_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, 8 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 <vector> 5 #include <vector>
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/bind_helpers.h" 8 #include "base/bind_helpers.h"
9 #include "base/callback.h" 9 #include "base/callback.h"
10 #include "base/command_line.h" 10 #include "base/command_line.h"
(...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after
169 169
170 SetUpSessionManager(); 170 SetUpSessionManager();
171 171
172 DevicePolicyCrosBrowserTest::SetUpInProcessBrowserTestFixture(); 172 DevicePolicyCrosBrowserTest::SetUpInProcessBrowserTestFixture();
173 cros_mock_->InitStatusAreaMocks(); 173 cros_mock_->InitStatusAreaMocks();
174 cros_mock_->SetStatusAreaMocksExpectations(); 174 cros_mock_->SetStatusAreaMocksExpectations();
175 175
176 mock_network_library_ = cros_mock_->mock_network_library(); 176 mock_network_library_ = cros_mock_->mock_network_library();
177 EXPECT_CALL(*mock_network_library_, AddUserActionObserver(_)) 177 EXPECT_CALL(*mock_network_library_, AddUserActionObserver(_))
178 .Times(AnyNumber()); 178 .Times(AnyNumber());
179 EXPECT_CALL(*mock_network_library_, LoadOncNetworks(_, _, _, _)) 179 EXPECT_CALL(*mock_network_library_, LoadOncNetworks(_, _))
180 .WillRepeatedly(Return(true)); 180 .Times(AnyNumber());
181 181
182 mock_login_utils_ = new MockLoginUtils(); 182 mock_login_utils_ = new MockLoginUtils();
183 LoginUtils::Set(mock_login_utils_); 183 LoginUtils::Set(mock_login_utils_);
184 EXPECT_CALL(*mock_login_utils_, PrewarmAuthentication()) 184 EXPECT_CALL(*mock_login_utils_, PrewarmAuthentication())
185 .Times(AnyNumber()); 185 .Times(AnyNumber());
186 EXPECT_CALL(*mock_login_utils_, StopBackgroundFetchers()) 186 EXPECT_CALL(*mock_login_utils_, StopBackgroundFetchers())
187 .Times(AnyNumber()); 187 .Times(AnyNumber());
188 EXPECT_CALL(*mock_login_utils_, DelegateDeleted(_)) 188 EXPECT_CALL(*mock_login_utils_, DelegateDeleted(_))
189 .Times(1); 189 .Times(1);
190 190
(...skipping 561 matching lines...) Expand 10 before | Expand all | Expand 10 after
752 752
753 // Wait for login tasks to complete. 753 // Wait for login tasks to complete.
754 content::RunAllPendingInMessageLoop(); 754 content::RunAllPendingInMessageLoop();
755 755
756 // Timer should still be stopped after login completes. 756 // Timer should still be stopped after login completes.
757 ASSERT_TRUE(auto_login_timer()); 757 ASSERT_TRUE(auto_login_timer());
758 EXPECT_FALSE(auto_login_timer()->IsRunning()); 758 EXPECT_FALSE(auto_login_timer()->IsRunning());
759 } 759 }
760 760
761 } // namespace chromeos 761 } // namespace chromeos
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/cros/network_library_unittest.cc ('k') | chrome/browser/chromeos/login/login_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698