Chromium Code Reviews| Index: ui/base/ime/chromeos/mock_component_extension_ime_manager.h |
| diff --git a/ui/base/ime/chromeos/mock_component_extension_ime_manager.h b/ui/base/ime/chromeos/mock_component_extension_ime_manager.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..f027e40ffbf40f135740d808e8cf812ea82cb6c5 |
| --- /dev/null |
| +++ b/ui/base/ime/chromeos/mock_component_extension_ime_manager.h |
| @@ -0,0 +1,22 @@ |
| +// Copyright 2017 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#ifndef UI_BASE_IME_MOCK_CHROMEOS_COMPONENT_EXTENSION_IME_MANAGER_H_ |
| +#define UI_BASE_IME_MOCK_CHROMEOS_COMPONENT_EXTENSION_IME_MANAGER_H_ |
| + |
| +#include "ui/base/ime/chromeos/component_extension_ime_manager.h" |
| + |
| +namespace chromeos { |
| + |
| +class UI_BASE_IME_EXPORT MockComponentExtensionIMEManager |
| + : public ComponentExtensionIMEManager { |
| + public: |
| + input_method::InputMethodDescriptors GetXkbIMEAsInputMethodDescriptor() { |
|
xiyuan
2017/04/27 19:34:22
GetXkbIMEAsInputMethodDescriptor is not virtual so
kumarniranjan
2017/04/27 22:58:59
There are two levels of mocking: one where I creat
|
| + return input_method::InputMethodDescriptors(); |
| + } |
| +}; |
| + |
| +} // namespace chromeos |
| + |
| +#endif // UI_BASE_IME_MOCK_CHROMEOS_COMPONENT_EXTENSION_IME_MANAGER_H_ |