| Index: chrome/browser/chromeos/input_method/mock_input_method_manager.h
|
| diff --git a/chrome/browser/chromeos/input_method/mock_input_method_manager.h b/chrome/browser/chromeos/input_method/mock_input_method_manager.h
|
| index 93191268b4d83c1bc20652c8bcb7931cf1ca3558..79bbad595465b055b9580e05632b63014bd6820b 100644
|
| --- a/chrome/browser/chromeos/input_method/mock_input_method_manager.h
|
| +++ b/chrome/browser/chromeos/input_method/mock_input_method_manager.h
|
| @@ -18,6 +18,15 @@ namespace input_method {
|
| // The mock implementation of InputMethodManager for testing.
|
| class MockInputMethodManager : public InputMethodManager {
|
| public:
|
| + class State : public InputMethodManager::State {
|
| + public:
|
| + State();
|
| +
|
| + protected:
|
| + friend base::RefCounted<chromeos::input_method::InputMethodManager::State>;
|
| + virtual ~State();
|
| + };
|
| +
|
| MockInputMethodManager();
|
| virtual ~MockInputMethodManager();
|
|
|
| @@ -71,6 +80,11 @@ class MockInputMethodManager : public InputMethodManager {
|
| virtual bool MigrateInputMethods(
|
| std::vector<std::string>* input_method_ids) OVERRIDE;
|
|
|
| + virtual scoped_refptr<InputMethodManager::State> CreateNewState(
|
| + const std::string& debug_name) const OVERRIDE;
|
| + virtual void SetState(
|
| + scoped_refptr<InputMethodManager::State> state) OVERRIDE;
|
| +
|
| // Sets an input method ID which will be returned by GetCurrentInputMethod().
|
| void SetCurrentInputMethodId(const std::string& input_method_id) {
|
| current_input_method_id_ = input_method_id;
|
|
|