Separate Simple Backend creation from initialization.
[chromium-blink-merge.git] / chromeos / dbus / ibus / mock_ibus_config_client.h
blob2112dc1e2c9b2daa3f9d0925e350688d5d9743b6
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.
5 #ifndef CHROMEOS_DBUS_IBUS_MOCK_IBUS_CONFIG_CLIENT_H_
6 #define CHROMEOS_DBUS_IBUS_MOCK_IBUS_CONFIG_CLIENT_H_
8 #include <string>
9 #include <vector>
11 #include "chromeos/dbus/ibus/ibus_config_client.h"
13 namespace chromeos {
15 class MockIBusConfigClient : public IBusConfigClient {
16 public:
17 MockIBusConfigClient();
18 virtual ~MockIBusConfigClient();
19 virtual void InitializeAsync(const OnIBusConfigReady& onready) OVERRIDE;
21 virtual void SetStringValue(const std::string& key,
22 const std::string& section,
23 const std::string& value,
24 const ErrorCallback& error_callback) OVERRIDE;
26 virtual void SetIntValue(const std::string& key,
27 const std::string& section,
28 int value,
29 const ErrorCallback& error_callback) OVERRIDE;
31 virtual void SetBoolValue(const std::string& key,
32 const std::string& section,
33 bool value,
34 const ErrorCallback& error_callback) OVERRIDE;
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;
41 private:
42 DISALLOW_COPY_AND_ASSIGN(MockIBusConfigClient);
45 } // namespace chromeos
47 #endif // CHROMEOS_DBUS_IBUS_MOCK_IBUS_CONFIG_CLIENT_H_