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 9172adac21408764af83477c5419ac277e57ddc4..f6bb14c89313a1455c15aaaa946a6904a45b9e5a 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(); |
@@ -74,6 +83,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; |