summaryrefslogtreecommitdiffstats
path: root/chrome/browser/chromeos/input_method/mock_input_method_manager.cc
diff options
context:
space:
mode:
authorerikwright@chromium.org <erikwright@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-12-14 00:17:04 +0000
committererikwright@chromium.org <erikwright@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-12-14 00:17:04 +0000
commite6c1a7d3b21482fb58491b231a32bcff8666f73f (patch)
tree44de04765c7d85aeb2f94e0819ed1a87aa6e806a /chrome/browser/chromeos/input_method/mock_input_method_manager.cc
parent06af6a46eb2f078f8df6e241051ded35b2f1ae6e (diff)
downloadchromium_src-e6c1a7d3b21482fb58491b231a32bcff8666f73f.zip
chromium_src-e6c1a7d3b21482fb58491b231a32bcff8666f73f.tar.gz
chromium_src-e6c1a7d3b21482fb58491b231a32bcff8666f73f.tar.bz2
Decompose BrowserStateMonitor into two parts, simplifying unit tests and APIs.
Decouple InputMethodManagerImpl from content notifications by requiring the client to push said notifications. BrowserStateMonitor and InputMethodPersistence thus become part of the client (configuration layer). BUG=164375 TBR=sky Review URL: https://chromiumcodereview.appspot.com/11466010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@173015 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/chromeos/input_method/mock_input_method_manager.cc')
-rw-r--r--chrome/browser/chromeos/input_method/mock_input_method_manager.cc7
1 files changed, 0 insertions, 7 deletions
diff --git a/chrome/browser/chromeos/input_method/mock_input_method_manager.cc b/chrome/browser/chromeos/input_method/mock_input_method_manager.cc
index 7a1facd..d79810c 100644
--- a/chrome/browser/chromeos/input_method/mock_input_method_manager.cc
+++ b/chrome/browser/chromeos/input_method/mock_input_method_manager.cc
@@ -10,8 +10,6 @@ namespace input_method {
MockInputMethodManager::MockInputMethodManager()
: add_observer_count_(0),
remove_observer_count_(0),
- set_state_count_(0),
- last_state_(STATE_TERMINATING),
util_(&delegate_, whitelist_.GetSupportedInputMethods()) {
}
@@ -36,11 +34,6 @@ void MockInputMethodManager::RemoveCandidateWindowObserver(
InputMethodManager::CandidateWindowObserver* observer) {
}
-void MockInputMethodManager::SetState(State new_state) {
- ++set_state_count_;
- last_state_ = new_state;
-}
-
scoped_ptr<InputMethodDescriptors>
MockInputMethodManager::GetSupportedInputMethods() const {
scoped_ptr<InputMethodDescriptors> result(new InputMethodDescriptors);