OLD | NEW |
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 170 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
181 SetUpSessionManager(mock_dbus_thread_manager); | 181 SetUpSessionManager(mock_dbus_thread_manager); |
182 | 182 |
183 DBusThreadManager::InitializeForTesting(mock_dbus_thread_manager); | 183 DBusThreadManager::InitializeForTesting(mock_dbus_thread_manager); |
184 CrosInProcessBrowserTest::SetUpInProcessBrowserTestFixture(); | 184 CrosInProcessBrowserTest::SetUpInProcessBrowserTestFixture(); |
185 cros_mock_->InitStatusAreaMocks(); | 185 cros_mock_->InitStatusAreaMocks(); |
186 cros_mock_->SetStatusAreaMocksExpectations(); | 186 cros_mock_->SetStatusAreaMocksExpectations(); |
187 | 187 |
188 mock_network_library_ = cros_mock_->mock_network_library(); | 188 mock_network_library_ = cros_mock_->mock_network_library(); |
189 EXPECT_CALL(*mock_network_library_, AddUserActionObserver(_)) | 189 EXPECT_CALL(*mock_network_library_, AddUserActionObserver(_)) |
190 .Times(AnyNumber()); | 190 .Times(AnyNumber()); |
191 EXPECT_CALL(*mock_network_library_, LoadOncNetworks(_, _, _, _)) | 191 EXPECT_CALL(*mock_network_library_, LoadOncNetworks(_, _)) |
192 .WillRepeatedly(Return(true)); | 192 .Times(AnyNumber()); |
193 | 193 |
194 mock_login_utils_ = new MockLoginUtils(); | 194 mock_login_utils_ = new MockLoginUtils(); |
195 LoginUtils::Set(mock_login_utils_); | 195 LoginUtils::Set(mock_login_utils_); |
196 EXPECT_CALL(*mock_login_utils_, PrewarmAuthentication()) | 196 EXPECT_CALL(*mock_login_utils_, PrewarmAuthentication()) |
197 .Times(AnyNumber()); | 197 .Times(AnyNumber()); |
198 EXPECT_CALL(*mock_login_utils_, StopBackgroundFetchers()) | 198 EXPECT_CALL(*mock_login_utils_, StopBackgroundFetchers()) |
199 .Times(AnyNumber()); | 199 .Times(AnyNumber()); |
200 EXPECT_CALL(*mock_login_utils_, DelegateDeleted(_)) | 200 EXPECT_CALL(*mock_login_utils_, DelegateDeleted(_)) |
201 .Times(1); | 201 .Times(1); |
202 | 202 |
(...skipping 599 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
802 | 802 |
803 // Wait for login tasks to complete. | 803 // Wait for login tasks to complete. |
804 content::RunAllPendingInMessageLoop(); | 804 content::RunAllPendingInMessageLoop(); |
805 | 805 |
806 // Timer should still be stopped after login completes. | 806 // Timer should still be stopped after login completes. |
807 ASSERT_TRUE(auto_login_timer()); | 807 ASSERT_TRUE(auto_login_timer()); |
808 EXPECT_FALSE(auto_login_timer()->IsRunning()); | 808 EXPECT_FALSE(auto_login_timer()->IsRunning()); |
809 } | 809 } |
810 | 810 |
811 } // namespace chromeos | 811 } // namespace chromeos |
OLD | NEW |