| 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/chromeos/cros/mock_cryptohome_library.h" | 10 #include "chrome/browser/chromeos/cros/mock_cryptohome_library.h" |
| (...skipping 253 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 264 EXPECT_CALL(*mock_network_library_, AddNetworkManagerObserver(_)) | 264 EXPECT_CALL(*mock_network_library_, AddNetworkManagerObserver(_)) |
| 265 .Times(AnyNumber()); | 265 .Times(AnyNumber()); |
| 266 EXPECT_CALL(*mock_network_library_, AddCellularDataPlanObserver(_)) | 266 EXPECT_CALL(*mock_network_library_, AddCellularDataPlanObserver(_)) |
| 267 .Times(AnyNumber()); | 267 .Times(AnyNumber()); |
| 268 EXPECT_CALL(*mock_network_library_, RemoveNetworkManagerObserver(_)) | 268 EXPECT_CALL(*mock_network_library_, RemoveNetworkManagerObserver(_)) |
| 269 .Times(AnyNumber()); | 269 .Times(AnyNumber()); |
| 270 EXPECT_CALL(*mock_network_library_, RemoveObserverForAllNetworks(_)) | 270 EXPECT_CALL(*mock_network_library_, RemoveObserverForAllNetworks(_)) |
| 271 .Times(AnyNumber()); | 271 .Times(AnyNumber()); |
| 272 EXPECT_CALL(*mock_network_library_, RemoveCellularDataPlanObserver(_)) | 272 EXPECT_CALL(*mock_network_library_, RemoveCellularDataPlanObserver(_)) |
| 273 .Times(AnyNumber()); | 273 .Times(AnyNumber()); |
| 274 EXPECT_CALL(*mock_network_library_, IsLocked()) |
| 275 .Times(AnyNumber()) |
| 276 .WillRepeatedly((Return(false))); |
| 274 EXPECT_CALL(*mock_network_library_, ethernet_available()) | 277 EXPECT_CALL(*mock_network_library_, ethernet_available()) |
| 275 .Times(AnyNumber()) | 278 .Times(AnyNumber()) |
| 276 .WillRepeatedly((Return(true))); | 279 .WillRepeatedly((Return(true))); |
| 277 EXPECT_CALL(*mock_network_library_, wifi_available()) | 280 EXPECT_CALL(*mock_network_library_, wifi_available()) |
| 278 .Times(AnyNumber()) | 281 .Times(AnyNumber()) |
| 279 .WillRepeatedly((Return(false))); | 282 .WillRepeatedly((Return(false))); |
| 280 EXPECT_CALL(*mock_network_library_, cellular_available()) | 283 EXPECT_CALL(*mock_network_library_, cellular_available()) |
| 281 .Times(AnyNumber()) | 284 .Times(AnyNumber()) |
| 282 .WillRepeatedly((Return(false))); | 285 .WillRepeatedly((Return(false))); |
| 283 EXPECT_CALL(*mock_network_library_, ethernet_enabled()) | 286 EXPECT_CALL(*mock_network_library_, ethernet_enabled()) |
| (...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 433 test_api()->SetScreenLockLibrary(NULL, false); | 436 test_api()->SetScreenLockLibrary(NULL, false); |
| 434 if (mock_speech_synthesis_library_) | 437 if (mock_speech_synthesis_library_) |
| 435 test_api()->SetSpeechSynthesisLibrary(NULL, false); | 438 test_api()->SetSpeechSynthesisLibrary(NULL, false); |
| 436 if (mock_system_library_) | 439 if (mock_system_library_) |
| 437 test_api()->SetSystemLibrary(NULL, false); | 440 test_api()->SetSystemLibrary(NULL, false); |
| 438 if (mock_touchpad_library_) | 441 if (mock_touchpad_library_) |
| 439 test_api()->SetTouchpadLibrary(NULL, false); | 442 test_api()->SetTouchpadLibrary(NULL, false); |
| 440 } | 443 } |
| 441 | 444 |
| 442 } // namespace chromeos | 445 } // namespace chromeos |
| OLD | NEW |