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

Unified Diff: chrome/browser/chromeos/input_method/mock_input_method_manager.h

Issue 11415266: Extract a delegate interface from c/b/input_method to permit decoupling from c/b. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Class comment. Created 8 years 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/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 d5f0cc804ebe161d594df9265343dc94c7733297..31425a88de5dc55e77c158d5c0eac9f1fbed98c1 100644
--- a/chrome/browser/chromeos/input_method/mock_input_method_manager.h
+++ b/chrome/browser/chromeos/input_method/mock_input_method_manager.h
@@ -8,6 +8,7 @@
#include "chrome/browser/chromeos/input_method/input_method_manager.h"
#include "chrome/browser/chromeos/input_method/input_method_util.h"
#include "chrome/browser/chromeos/input_method/input_method_whitelist.h"
+#include "chrome/browser/chromeos/input_method/mock_input_method_delegate.h"
#include "chrome/browser/chromeos/input_method/mock_xkeyboard.h"
namespace chromeos {
@@ -66,6 +67,10 @@ class MockInputMethodManager : public InputMethodManager {
current_input_method_id_ = input_method_id;
}
+ // Set values that will be provided to the InputMethodUtil.
+ void set_application_locale(const std::string& value);
+ void set_hardware_keyboard_layout(const std::string& value);
+
// TODO(yusukes): Add more variables for counting the numbers of the API calls
int add_observer_count_;
int remove_observer_count_;
@@ -77,6 +82,7 @@ class MockInputMethodManager : public InputMethodManager {
std::string current_input_method_id_;
InputMethodWhitelist whitelist_;
+ MockInputMethodDelegate delegate_; // used by util_
InputMethodUtil util_;
MockXKeyboard xkeyboard_;

Powered by Google App Engine
This is Rietveld 408576698