| 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 "base/bind_helpers.h" | 5 #include "base/bind_helpers.h" |
| 6 #include "chrome/browser/extensions/extension_browsertest.h" | 6 #include "chrome/browser/extensions/extension_browsertest.h" |
| 7 #include "chrome/browser/extensions/extension_test_message_listener.h" | 7 #include "chrome/browser/extensions/extension_test_message_listener.h" |
| 8 #include "chrome/common/extensions/background_info.h" | 8 #include "chrome/common/extensions/background_info.h" |
| 9 #include "chromeos/dbus/ibus/ibus_text.h" | 9 #include "chromeos/dbus/ibus/ibus_text.h" |
| 10 #include "chromeos/ime/component_extension_ime_manager.h" | 10 #include "chromeos/ime/component_extension_ime_manager.h" |
| 11 #include "chromeos/ime/ibus_bridge.h" | 11 #include "chromeos/ime/ibus_bridge.h" |
| 12 #include "chromeos/ime/input_method_descriptor.h" | 12 #include "chromeos/ime/input_method_descriptor.h" |
| 13 #include "chromeos/ime/input_method_manager.h" | 13 #include "chromeos/ime/input_method_manager.h" |
| 14 #include "chromeos/ime/mock_ime_candidate_window_handler.h" | 14 #include "chromeos/ime/mock_ime_candidate_window_handler.h" |
| 15 #include "chromeos/ime/mock_ime_input_context_handler.h" | 15 #include "chromeos/ime/mock_ime_input_context_handler.h" |
| 16 #include "chromeos/ime/mock_ime_property_handler.h" | 16 #include "chromeos/ime/mock_ime_property_handler.h" |
| 17 #include "content/public/test/browser_test_utils.h" | 17 #include "content/public/test/browser_test_utils.h" |
| 18 #include "content/public/test/test_utils.h" | 18 #include "content/public/test/test_utils.h" |
| 19 #include "dbus/mock_bus.h" | |
| 20 | 19 |
| 21 namespace chromeos { | 20 namespace chromeos { |
| 22 namespace input_method { | 21 namespace input_method { |
| 23 namespace { | 22 namespace { |
| 24 | 23 |
| 25 const char kIdentityIMEID[] = | 24 const char kIdentityIMEID[] = |
| 26 "_ext_ime_iafoklpfplgfnoimmaejoeondnjnlcfpIdentityIME"; | 25 "_ext_ime_iafoklpfplgfnoimmaejoeondnjnlcfpIdentityIME"; |
| 27 const char kToUpperIMEID[] = | 26 const char kToUpperIMEID[] = |
| 28 "_ext_ime_iafoklpfplgfnoimmaejoeondnjnlcfpToUpperIME"; | 27 "_ext_ime_iafoklpfplgfnoimmaejoeondnjnlcfpToUpperIME"; |
| 29 const char kAPIArgumentIMEID[] = | 28 const char kAPIArgumentIMEID[] = |
| (...skipping 765 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 795 mock_input_context->last_delete_surrounding_text_arg().length); | 794 mock_input_context->last_delete_surrounding_text_arg().length); |
| 796 } | 795 } |
| 797 IBusBridge::Get()->SetInputContextHandler(NULL); | 796 IBusBridge::Get()->SetInputContextHandler(NULL); |
| 798 IBusBridge::Get()->SetCandidateWindowHandler(NULL); | 797 IBusBridge::Get()->SetCandidateWindowHandler(NULL); |
| 799 IBusBridge::Get()->SetPropertyHandler(NULL); | 798 IBusBridge::Get()->SetPropertyHandler(NULL); |
| 800 } | 799 } |
| 801 | 800 |
| 802 } // namespace | 801 } // namespace |
| 803 } // namespace input_method | 802 } // namespace input_method |
| 804 } // namespace chromeos | 803 } // namespace chromeos |
| OLD | NEW |