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 #ifndef CHROMEOS_DBUS_IBUS_MOCK_IBUS_CONFIG_CLIENT_H_ 6 #define CHROMEOS_DBUS_IBUS_MOCK_IBUS_CONFIG_CLIENT_H_ 7 8 #include <string> 9 #include <vector> 10 11 #include "chromeos/dbus/ibus/ibus_config_client.h" 12 13 namespace chromeos { 14 15 class MockIBusConfigClient : public IBusConfigClient { 16 public: 17 MockIBusConfigClient(); 18 virtual ~MockIBusConfigClient(); 19 virtual void InitializeAsync(const OnIBusConfigReady& onready) OVERRIDE; 20 21 virtual void SetStringValue(const std::string& key, 22 const std::string& section, 23 const std::string& value, 24 const ErrorCallback& error_callback) OVERRIDE; 25 26 virtual void SetIntValue(const std::string& key, 27 const std::string& section, 28 int value, 29 const ErrorCallback& error_callback) OVERRIDE; 30 31 virtual void SetBoolValue(const std::string& key, 32 const std::string& section, 33 bool value, 34 const ErrorCallback& error_callback) OVERRIDE; 35 36 virtual void SetStringListValue(const std::string& key, 37 const std::string& section, 38 const std::vector<std::string>& value, 39 const ErrorCallback& error_callback) OVERRIDE; 40 41 private: 42 DISALLOW_COPY_AND_ASSIGN(MockIBusConfigClient); 43 }; 44 45 } // namespace chromeos 46 47 #endif // CHROMEOS_DBUS_IBUS_MOCK_IBUS_CONFIG_CLIENT_H_ 48