| 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_in_process_browser_test.h" | 5 #include "chrome/browser/chromeos/cros/cros_in_process_browser_test.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 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 107 .RetiresOnSaturation(); | 107 .RetiresOnSaturation(); |
| 108 EXPECT_CALL(*mock_language_library_, GetActiveInputMethods()) | 108 EXPECT_CALL(*mock_language_library_, GetActiveInputMethods()) |
| 109 .Times(1) | 109 .Times(1) |
| 110 .WillOnce(Return(CreateFallbackInputMethodDescriptors())) | 110 .WillOnce(Return(CreateFallbackInputMethodDescriptors())) |
| 111 .RetiresOnSaturation(); | 111 .RetiresOnSaturation(); |
| 112 EXPECT_CALL(*mock_language_library_, current_ime_properties()) | 112 EXPECT_CALL(*mock_language_library_, current_ime_properties()) |
| 113 .Times(1) | 113 .Times(1) |
| 114 .WillOnce((ReturnRef(ime_properties_))) | 114 .WillOnce((ReturnRef(ime_properties_))) |
| 115 .RetiresOnSaturation(); | 115 .RetiresOnSaturation(); |
| 116 EXPECT_CALL(*mock_language_library_, SetImeConfig(_, _, _)) | 116 EXPECT_CALL(*mock_language_library_, SetImeConfig(_, _, _)) |
| 117 .Times(5) | 117 .Times(AnyNumber()) |
| 118 .WillRepeatedly((Return(true))) | 118 .WillRepeatedly((Return(true))) |
| 119 .RetiresOnSaturation(); | 119 .RetiresOnSaturation(); |
| 120 EXPECT_CALL(*mock_language_library_, RemoveObserver(_)) | 120 EXPECT_CALL(*mock_language_library_, RemoveObserver(_)) |
| 121 .Times(1) | 121 .Times(1) |
| 122 .RetiresOnSaturation(); | 122 .RetiresOnSaturation(); |
| 123 } | 123 } |
| 124 | 124 |
| 125 void CrosInProcessBrowserTest::SetNetworkLibraryStatusAreaExpectations() { | 125 void CrosInProcessBrowserTest::SetNetworkLibraryStatusAreaExpectations() { |
| 126 EXPECT_CALL(*mock_network_library_, AddObserver(_)) | 126 EXPECT_CALL(*mock_network_library_, AddObserver(_)) |
| 127 .Times(1) | 127 .Times(1) |
| (...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 205 test_api()->SetLanguageLibrary(NULL, false); | 205 test_api()->SetLanguageLibrary(NULL, false); |
| 206 if (mock_network_library_) | 206 if (mock_network_library_) |
| 207 test_api()->SetNetworkLibrary(NULL, false); | 207 test_api()->SetNetworkLibrary(NULL, false); |
| 208 if (mock_power_library_) | 208 if (mock_power_library_) |
| 209 test_api()->SetPowerLibrary(NULL, false); | 209 test_api()->SetPowerLibrary(NULL, false); |
| 210 if (mock_synaptics_library_) | 210 if (mock_synaptics_library_) |
| 211 test_api()->SetSynapticsLibrary(NULL, false); | 211 test_api()->SetSynapticsLibrary(NULL, false); |
| 212 } | 212 } |
| 213 | 213 |
| 214 } // namespace chromeos | 214 } // namespace chromeos |
| OLD | NEW |