| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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/cros/cros_mock.h" | 5 #include "chrome/browser/chromeos/cros/cros_mock.h" |
| 6 | 6 |
| 7 #include "base/message_loop.h" | 7 #include "base/message_loop.h" |
| 8 #include "base/ref_counted.h" | 8 #include "base/ref_counted.h" |
| 9 #include "base/time.h" | 9 #include "base/time.h" |
| 10 #include "chrome/browser/browser.h" | 10 #include "chrome/browser/browser.h" |
| (...skipping 255 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 266 EXPECT_CALL(*mock_input_method_library_, StopInputMethodProcesses()) | 266 EXPECT_CALL(*mock_input_method_library_, StopInputMethodProcesses()) |
| 267 .Times(AnyNumber()) | 267 .Times(AnyNumber()) |
| 268 .RetiresOnSaturation(); | 268 .RetiresOnSaturation(); |
| 269 } | 269 } |
| 270 | 270 |
| 271 void CrosMock::SetNetworkLibraryStatusAreaExpectations() { | 271 void CrosMock::SetNetworkLibraryStatusAreaExpectations() { |
| 272 EXPECT_CALL(*mock_network_library_, AddObserver(_)) | 272 EXPECT_CALL(*mock_network_library_, AddObserver(_)) |
| 273 .Times(1) | 273 .Times(1) |
| 274 .RetiresOnSaturation(); | 274 .RetiresOnSaturation(); |
| 275 | 275 |
| 276 // NetworkDropdownButton::OnNetworkManagerChanged() calls: | 276 // NetworkDropdownButton::NetworkChanged() calls: |
| 277 EXPECT_CALL(*mock_network_library_, ethernet_connected()) | 277 EXPECT_CALL(*mock_network_library_, ethernet_connected()) |
| 278 .Times(1) | 278 .Times(1) |
| 279 .WillRepeatedly((Return(false))) | 279 .WillRepeatedly((Return(false))) |
| 280 .RetiresOnSaturation(); | 280 .RetiresOnSaturation(); |
| 281 EXPECT_CALL(*mock_network_library_, wifi_connected()) | 281 EXPECT_CALL(*mock_network_library_, wifi_connected()) |
| 282 .Times(1) | 282 .Times(1) |
| 283 .WillRepeatedly((Return(false))) | 283 .WillRepeatedly((Return(false))) |
| 284 .RetiresOnSaturation(); | 284 .RetiresOnSaturation(); |
| 285 EXPECT_CALL(*mock_network_library_, wifi_connecting()) | 285 EXPECT_CALL(*mock_network_library_, wifi_connecting()) |
| 286 .Times(1) | 286 .Times(1) |
| (...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 432 test_api()->SetScreenLockLibrary(NULL, false); | 432 test_api()->SetScreenLockLibrary(NULL, false); |
| 433 if (mock_speech_synthesis_library_) | 433 if (mock_speech_synthesis_library_) |
| 434 test_api()->SetSpeechSynthesisLibrary(NULL, false); | 434 test_api()->SetSpeechSynthesisLibrary(NULL, false); |
| 435 if (mock_system_library_) | 435 if (mock_system_library_) |
| 436 test_api()->SetSystemLibrary(NULL, false); | 436 test_api()->SetSystemLibrary(NULL, false); |
| 437 if (mock_touchpad_library_) | 437 if (mock_touchpad_library_) |
| 438 test_api()->SetTouchpadLibrary(NULL, false); | 438 test_api()->SetTouchpadLibrary(NULL, false); |
| 439 } | 439 } |
| 440 | 440 |
| 441 } // namespace chromeos | 441 } // namespace chromeos |
| OLD | NEW |