| 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 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 145 | 145 |
| 146 void CrosInProcessBrowserTest::SetKeyboardLibraryStatusAreaExpectations() { | 146 void CrosInProcessBrowserTest::SetKeyboardLibraryStatusAreaExpectations() { |
| 147 EXPECT_CALL(*mock_keyboard_library_, GetCurrentKeyboardLayoutName()) | 147 EXPECT_CALL(*mock_keyboard_library_, GetCurrentKeyboardLayoutName()) |
| 148 .Times(AnyNumber()) | 148 .Times(AnyNumber()) |
| 149 .WillRepeatedly((Return("us"))) | 149 .WillRepeatedly((Return("us"))) |
| 150 .RetiresOnSaturation(); | 150 .RetiresOnSaturation(); |
| 151 EXPECT_CALL(*mock_keyboard_library_, SetCurrentKeyboardLayoutByName(_)) | 151 EXPECT_CALL(*mock_keyboard_library_, SetCurrentKeyboardLayoutByName(_)) |
| 152 .Times(AnyNumber()) | 152 .Times(AnyNumber()) |
| 153 .WillRepeatedly((Return(true))) | 153 .WillRepeatedly((Return(true))) |
| 154 .RetiresOnSaturation(); | 154 .RetiresOnSaturation(); |
| 155 EXPECT_CALL(*mock_keyboard_library_, RemapModifierKeys(_)) |
| 156 .Times(AnyNumber()) |
| 157 .WillRepeatedly((Return(true))) |
| 158 .RetiresOnSaturation(); |
| 155 EXPECT_CALL(*mock_keyboard_library_, SetKeyboardLayoutPerWindow(_)) | 159 EXPECT_CALL(*mock_keyboard_library_, SetKeyboardLayoutPerWindow(_)) |
| 156 .Times(AnyNumber()) | 160 .Times(AnyNumber()) |
| 157 .WillRepeatedly((Return(true))) | 161 .WillRepeatedly((Return(true))) |
| 158 .RetiresOnSaturation(); | 162 .RetiresOnSaturation(); |
| 159 EXPECT_CALL(*mock_keyboard_library_, GetKeyboardLayoutPerWindow(_)) | 163 EXPECT_CALL(*mock_keyboard_library_, GetKeyboardLayoutPerWindow(_)) |
| 160 .Times(AnyNumber()) | 164 .Times(AnyNumber()) |
| 161 .WillRepeatedly((Return(true))) | 165 .WillRepeatedly((Return(true))) |
| 162 .RetiresOnSaturation(); | 166 .RetiresOnSaturation(); |
| 163 } | 167 } |
| 164 | 168 |
| (...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 292 test_api()->SetPowerLibrary(NULL, false); | 296 test_api()->SetPowerLibrary(NULL, false); |
| 293 if (mock_screen_lock_library_) | 297 if (mock_screen_lock_library_) |
| 294 test_api()->SetScreenLockLibrary(NULL, false); | 298 test_api()->SetScreenLockLibrary(NULL, false); |
| 295 if (mock_synaptics_library_) | 299 if (mock_synaptics_library_) |
| 296 test_api()->SetSynapticsLibrary(NULL, false); | 300 test_api()->SetSynapticsLibrary(NULL, false); |
| 297 if (mock_system_library_) | 301 if (mock_system_library_) |
| 298 test_api()->SetSystemLibrary(NULL, false); | 302 test_api()->SetSystemLibrary(NULL, false); |
| 299 } | 303 } |
| 300 | 304 |
| 301 } // namespace chromeos | 305 } // namespace chromeos |
| OLD | NEW |