| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CHROMEOS_DBUS_IBUS_MOCK_IBUS_CONFIG_CLIENT_H_ | 5 #ifndef CHROMEOS_DBUS_IBUS_MOCK_IBUS_CONFIG_CLIENT_H_ |
| 6 #define CHROMEOS_DBUS_IBUS_MOCK_IBUS_CONFIG_CLIENT_H_ | 6 #define CHROMEOS_DBUS_IBUS_MOCK_IBUS_CONFIG_CLIENT_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> |
| 9 | 10 |
| 10 #include "chromeos/dbus/ibus/ibus_config_client.h" | 11 #include "chromeos/dbus/ibus/ibus_config_client.h" |
| 11 | 12 |
| 12 namespace chromeos { | 13 namespace chromeos { |
| 13 | 14 |
| 14 class MockIBusConfigClient : public IBusConfigClient { | 15 class MockIBusConfigClient : public IBusConfigClient { |
| 15 public: | 16 public: |
| 16 MockIBusConfigClient(); | 17 MockIBusConfigClient(); |
| 17 virtual ~MockIBusConfigClient(); | 18 virtual ~MockIBusConfigClient(); |
| 19 virtual void InitializeAsync(const OnIBusConfigReady& onready) OVERRIDE; |
| 18 | 20 |
| 19 virtual void SetStringValue(const std::string& key, | 21 virtual void SetStringValue(const std::string& key, |
| 20 const std::string& section, | 22 const std::string& section, |
| 21 const std::string& value, | 23 const std::string& value, |
| 22 const ErrorCallback& error_callback) OVERRIDE; | 24 const ErrorCallback& error_callback) OVERRIDE; |
| 23 | 25 |
| 24 virtual void SetIntValue(const std::string& key, | 26 virtual void SetIntValue(const std::string& key, |
| 25 const std::string& section, | 27 const std::string& section, |
| 26 int value, | 28 int value, |
| 27 const ErrorCallback& error_callback) OVERRIDE; | 29 const ErrorCallback& error_callback) OVERRIDE; |
| 28 | 30 |
| 29 virtual void SetBoolValue(const std::string& key, | 31 virtual void SetBoolValue(const std::string& key, |
| 30 const std::string& section, | 32 const std::string& section, |
| 31 bool value, | 33 bool value, |
| 32 const ErrorCallback& error_callback) OVERRIDE; | 34 const ErrorCallback& error_callback) OVERRIDE; |
| 33 | 35 |
| 34 virtual void SetStringListValue(const std::string& key, | 36 virtual void SetStringListValue(const std::string& key, |
| 35 const std::string& section, | 37 const std::string& section, |
| 36 const std::vector<std::string>& value, | 38 const std::vector<std::string>& value, |
| 37 const ErrorCallback& error_callback) OVERRIDE; | 39 const ErrorCallback& error_callback) OVERRIDE; |
| 38 | 40 |
| 39 private: | 41 private: |
| 40 DISALLOW_COPY_AND_ASSIGN(MockIBusConfigClient); | 42 DISALLOW_COPY_AND_ASSIGN(MockIBusConfigClient); |
| 41 }; | 43 }; |
| 42 | 44 |
| 43 } // namespace chromeos | 45 } // namespace chromeos |
| 44 | 46 |
| 45 #endif // CHROMEOS_DBUS_IBUS_MOCK_IBUS_CLIENT_H_ | 47 #endif // CHROMEOS_DBUS_IBUS_MOCK_IBUS_CONFIG_CLIENT_H_ |
| OLD | NEW |