summaryrefslogtreecommitdiffstats
path: root/chrome/browser/chromeos/input_method/mock_input_method_manager.cc
diff options
context:
space:
mode:
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.cc11
1 files changed, 10 insertions, 1 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 d7bdc87..7a1facd 100644
--- a/chrome/browser/chromeos/input_method/mock_input_method_manager.cc
+++ b/chrome/browser/chromeos/input_method/mock_input_method_manager.cc
@@ -12,7 +12,7 @@ MockInputMethodManager::MockInputMethodManager()
remove_observer_count_(0),
set_state_count_(0),
last_state_(STATE_TERMINATING),
- util_(whitelist_.GetSupportedInputMethods()) {
+ util_(&delegate_, whitelist_.GetSupportedInputMethods()) {
}
MockInputMethodManager::~MockInputMethodManager() {
@@ -143,5 +143,14 @@ InputMethodUtil* MockInputMethodManager::GetInputMethodUtil() {
return &util_;
}
+void MockInputMethodManager::set_application_locale(const std::string& value) {
+ delegate_.set_active_locale(value);
+}
+
+void MockInputMethodManager::set_hardware_keyboard_layout(
+ const std::string& value) {
+ delegate_.set_hardware_keyboard_layout(value);
+}
+
} // namespace input_method
} // namespace chromeos