1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 2 // Use of this source code is governed by a BSD-style license that can be 3 // found in the LICENSE file. 4 5 #include "chrome/browser/chromeos/input_method/mock_ibus_controller.h" 6 7 #include "chromeos/ime/input_method_config.h" 8 #include "chromeos/ime/input_method_property.h" 9 10 namespace chromeos { 11 namespace input_method { 12 13 MockIBusController::MockIBusController() 14 : activate_input_method_property_count_(0), 15 activate_input_method_property_return_(true), 16 set_input_method_config_internal_count_(0), 17 set_input_method_config_internal_return_(true) { 18 } 19 20 MockIBusController::~MockIBusController() { 21 } 22 23 bool MockIBusController::ActivateInputMethodProperty(const std::string& key) { 24 ++activate_input_method_property_count_; 25 activate_input_method_property_key_ = key; 26 return activate_input_method_property_return_; 27 } 28 29 bool MockIBusController::SetInputMethodConfigInternal( 30 const ConfigKeyType& key, 31 const InputMethodConfigValue& value) { 32 ++set_input_method_config_internal_count_; 33 set_input_method_config_internal_key_ = key; 34 set_input_method_config_internal_value_ = value; 35 return set_input_method_config_internal_return_; 36 } 37 38 } // namespace input_method 39 } // namespace chromeos 40