Separate Simple Backend creation from initialization.
[chromium-blink-merge.git] / chromeos / dbus / mock_shill_ipconfig_client.h
blob4a4bea3c15a1cd1e05c115d788332d42c7d42d81
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_MOCK_SHILL_IPCONFIG_CLIENT_H_
6 #define CHROMEOS_DBUS_MOCK_SHILL_IPCONFIG_CLIENT_H_
8 #include "base/values.h"
9 #include "chromeos/dbus/shill_ipconfig_client.h"
10 #include "chromeos/dbus/shill_property_changed_observer.h"
11 #include "dbus/object_path.h"
12 #include "testing/gmock/include/gmock/gmock.h"
14 namespace chromeos {
16 class MockShillIPConfigClient : public ShillIPConfigClient {
17 public:
18 MockShillIPConfigClient();
19 virtual ~MockShillIPConfigClient();
21 MOCK_METHOD2(AddPropertyChangedObserver,
22 void(const dbus::ObjectPath& ipconfig_path,
23 ShillPropertyChangedObserver* observer));
24 MOCK_METHOD2(RemovePropertyChangedObserver,
25 void(const dbus::ObjectPath& ipconfig_path,
26 ShillPropertyChangedObserver* observer));
27 MOCK_METHOD2(Refresh, void(const dbus::ObjectPath& ipconfig_path,
28 const VoidDBusMethodCallback& callback));
29 MOCK_METHOD2(GetProperties, void(const dbus::ObjectPath& ipconfig_path,
30 const DictionaryValueCallback& callback));
31 MOCK_METHOD1(CallGetPropertiesAndBlock,
32 base::DictionaryValue*(const dbus::ObjectPath& ipconfig_path));
33 MOCK_METHOD4(SetProperty, void(const dbus::ObjectPath& ipconfig_path,
34 const std::string& name,
35 const base::Value& value,
36 const VoidDBusMethodCallback& callback));
37 MOCK_METHOD3(ClearProperty, void(const dbus::ObjectPath& ipconfig_path,
38 const std::string& name,
39 const VoidDBusMethodCallback& callback));
40 MOCK_METHOD2(Remove, void(const dbus::ObjectPath& ipconfig_path,
41 const VoidDBusMethodCallback& callback));
42 MOCK_METHOD1(CallRemoveAndBlock, bool(const dbus::ObjectPath& ipconfig_path));
45 } // namespace chromeos
47 #endif // CHROMEOS_DBUS_MOCK_SHILL_IPCONFIG_CLIENT_H_