Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(5415)

Unified Diff: chrome/browser/chromeos/input_method/browser_state_monitor_unittest.cc

Issue 419293002: IME refactoring: ChromeOS introduce input methods State. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/chromeos/input_method/browser_state_monitor_unittest.cc
diff --git a/chrome/browser/chromeos/input_method/browser_state_monitor_unittest.cc b/chrome/browser/chromeos/input_method/browser_state_monitor_unittest.cc
index 909c854deab310949537c2e6d5dab09e9f3631fc..235542fc7b483badb2cc75a03cd70506caceb646 100644
--- a/chrome/browser/chromeos/input_method/browser_state_monitor_unittest.cc
+++ b/chrome/browser/chromeos/input_method/browser_state_monitor_unittest.cc
@@ -23,12 +23,12 @@ class MockObserver {
: state_(InputMethodManager::STATE_TERMINATING),
update_state_count_(0) { }
- void SetState(InputMethodManager::State new_state) {
+ void SetState(InputMethodManager::UIState new_state) {
++update_state_count_;
state_ = new_state;
}
- base::Callback<void(InputMethodManager::State new_state)> AsCallback() {
+ base::Callback<void(InputMethodManager::UIState new_state)> AsCallback() {
return base::Bind(&MockObserver::SetState, base::Unretained(this));
}
@@ -36,12 +36,10 @@ class MockObserver {
return update_state_count_;
}
- InputMethodManager::State state() const {
- return state_;
- }
+ InputMethodManager::UIState state() const { return state_; }
private:
- InputMethodManager::State state_;
+ InputMethodManager::UIState state_;
int update_state_count_;
DISALLOW_COPY_AND_ASSIGN(MockObserver);

Powered by Google App Engine
This is Rietveld 408576698