OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/input_method/input_method_manager_impl.h" | 5 #include "chrome/browser/chromeos/input_method/input_method_manager_impl.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 | 8 |
9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
148 | 148 |
149 scoped_ptr<InputMethodManagerImpl> manager_; | 149 scoped_ptr<InputMethodManagerImpl> manager_; |
150 FakeInputMethodDelegate* delegate_; | 150 FakeInputMethodDelegate* delegate_; |
151 MockIBusController* controller_; | 151 MockIBusController* controller_; |
152 MockCandidateWindowController* candidate_window_controller_; | 152 MockCandidateWindowController* candidate_window_controller_; |
153 MockIBusDaemonController* mock_ibus_daemon_controller_; | 153 MockIBusDaemonController* mock_ibus_daemon_controller_; |
154 MockIBusInputContextClient* mock_ibus_input_context_client_; | 154 MockIBusInputContextClient* mock_ibus_input_context_client_; |
155 MockIBusClient* mock_ibus_client_; | 155 MockIBusClient* mock_ibus_client_; |
156 MockDBusThreadManagerWithoutGMock* mock_dbus_thread_manager_; | 156 MockDBusThreadManagerWithoutGMock* mock_dbus_thread_manager_; |
157 MockXKeyboard* xkeyboard_; | 157 MockXKeyboard* xkeyboard_; |
158 MessageLoop message_loop_; | 158 base::MessageLoop message_loop_; |
159 MockComponentExtIMEManagerDelegate* mock_delegate_; | 159 MockComponentExtIMEManagerDelegate* mock_delegate_; |
160 std::vector<ComponentExtensionIME> ime_list_; | 160 std::vector<ComponentExtensionIME> ime_list_; |
161 | 161 |
162 private: | 162 private: |
163 DISALLOW_COPY_AND_ASSIGN(InputMethodManagerImplTest); | 163 DISALLOW_COPY_AND_ASSIGN(InputMethodManagerImplTest); |
164 }; | 164 }; |
165 | 165 |
166 class TestableComponentExtensionIMEManager | 166 class TestableComponentExtensionIMEManager |
167 : public ComponentExtensionIMEManager { | 167 : public ComponentExtensionIMEManager { |
168 public: | 168 public: |
(...skipping 1182 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1351 EXPECT_EQ(fallback_id, manager_->GetCurrentInputMethod().id()); | 1351 EXPECT_EQ(fallback_id, manager_->GetCurrentInputMethod().id()); |
1352 | 1352 |
1353 // After component extension IME is initialized, previous specified input | 1353 // After component extension IME is initialized, previous specified input |
1354 // method should be automatically enabled. | 1354 // method should be automatically enabled. |
1355 InitComponentExtension(); | 1355 InitComponentExtension(); |
1356 EXPECT_EQ(xkb_id, manager_->GetCurrentInputMethod().id()); | 1356 EXPECT_EQ(xkb_id, manager_->GetCurrentInputMethod().id()); |
1357 } | 1357 } |
1358 | 1358 |
1359 } // namespace input_method | 1359 } // namespace input_method |
1360 } // namespace chromeos | 1360 } // namespace chromeos |
OLD | NEW |