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 192 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
203 .WillRepeatedly((Return("us"))) | 203 .WillRepeatedly((Return("us"))) |
204 .RetiresOnSaturation(); | 204 .RetiresOnSaturation(); |
205 EXPECT_CALL(*mock_keyboard_library_, SetCurrentKeyboardLayoutByName(_)) | 205 EXPECT_CALL(*mock_keyboard_library_, SetCurrentKeyboardLayoutByName(_)) |
206 .Times(AnyNumber()) | 206 .Times(AnyNumber()) |
207 .WillRepeatedly((Return(true))) | 207 .WillRepeatedly((Return(true))) |
208 .RetiresOnSaturation(); | 208 .RetiresOnSaturation(); |
209 EXPECT_CALL(*mock_keyboard_library_, RemapModifierKeys(_)) | 209 EXPECT_CALL(*mock_keyboard_library_, RemapModifierKeys(_)) |
210 .Times(AnyNumber()) | 210 .Times(AnyNumber()) |
211 .WillRepeatedly((Return(true))) | 211 .WillRepeatedly((Return(true))) |
212 .RetiresOnSaturation(); | 212 .RetiresOnSaturation(); |
213 EXPECT_CALL(*mock_keyboard_library_, SetKeyboardLayoutPerWindow(_)) | |
214 .Times(AnyNumber()) | |
215 .WillRepeatedly((Return(true))) | |
216 .RetiresOnSaturation(); | |
217 EXPECT_CALL(*mock_keyboard_library_, GetKeyboardLayoutPerWindow(_)) | |
218 .Times(AnyNumber()) | |
219 .WillRepeatedly((Return(true))) | |
220 .RetiresOnSaturation(); | |
221 EXPECT_CALL(*mock_keyboard_library_, GetAutoRepeatEnabled(_)) | 213 EXPECT_CALL(*mock_keyboard_library_, GetAutoRepeatEnabled(_)) |
222 .Times(AnyNumber()) | 214 .Times(AnyNumber()) |
223 .WillRepeatedly((Return(true))) | 215 .WillRepeatedly((Return(true))) |
224 .RetiresOnSaturation(); | 216 .RetiresOnSaturation(); |
225 EXPECT_CALL(*mock_keyboard_library_, SetAutoRepeatEnabled(_)) | 217 EXPECT_CALL(*mock_keyboard_library_, SetAutoRepeatEnabled(_)) |
226 .Times(AnyNumber()) | 218 .Times(AnyNumber()) |
227 .WillRepeatedly((Return(true))) | 219 .WillRepeatedly((Return(true))) |
228 .RetiresOnSaturation(); | 220 .RetiresOnSaturation(); |
229 EXPECT_CALL(*mock_keyboard_library_, GetAutoRepeatRate(_)) | 221 EXPECT_CALL(*mock_keyboard_library_, GetAutoRepeatRate(_)) |
230 .Times(AnyNumber()) | 222 .Times(AnyNumber()) |
(...skipping 210 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
441 test_api()->SetScreenLockLibrary(NULL, false); | 433 test_api()->SetScreenLockLibrary(NULL, false); |
442 if (mock_speech_synthesis_library_) | 434 if (mock_speech_synthesis_library_) |
443 test_api()->SetSpeechSynthesisLibrary(NULL, false); | 435 test_api()->SetSpeechSynthesisLibrary(NULL, false); |
444 if (mock_system_library_) | 436 if (mock_system_library_) |
445 test_api()->SetSystemLibrary(NULL, false); | 437 test_api()->SetSystemLibrary(NULL, false); |
446 if (mock_touchpad_library_) | 438 if (mock_touchpad_library_) |
447 test_api()->SetTouchpadLibrary(NULL, false); | 439 test_api()->SetTouchpadLibrary(NULL, false); |
448 } | 440 } |
449 | 441 |
450 } // namespace chromeos | 442 } // namespace chromeos |
OLD | NEW |