OLD | NEW |
| (Empty) |
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_MOCK_SHILL_IPCONFIG_CLIENT_H_ | |
6 #define CHROMEOS_DBUS_MOCK_SHILL_IPCONFIG_CLIENT_H_ | |
7 | |
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" | |
13 | |
14 namespace chromeos { | |
15 | |
16 class MockShillIPConfigClient : public ShillIPConfigClient { | |
17 public: | |
18 MockShillIPConfigClient(); | |
19 virtual ~MockShillIPConfigClient(); | |
20 | |
21 MOCK_METHOD1(Init, void(dbus::Bus* bus)); | |
22 MOCK_METHOD2(AddPropertyChangedObserver, | |
23 void(const dbus::ObjectPath& ipconfig_path, | |
24 ShillPropertyChangedObserver* observer)); | |
25 MOCK_METHOD2(RemovePropertyChangedObserver, | |
26 void(const dbus::ObjectPath& ipconfig_path, | |
27 ShillPropertyChangedObserver* observer)); | |
28 MOCK_METHOD2(Refresh, void(const dbus::ObjectPath& ipconfig_path, | |
29 const VoidDBusMethodCallback& callback)); | |
30 MOCK_METHOD2(GetProperties, void(const dbus::ObjectPath& ipconfig_path, | |
31 const DictionaryValueCallback& callback)); | |
32 MOCK_METHOD4(SetProperty, void(const dbus::ObjectPath& ipconfig_path, | |
33 const std::string& name, | |
34 const base::Value& value, | |
35 const VoidDBusMethodCallback& callback)); | |
36 MOCK_METHOD3(ClearProperty, void(const dbus::ObjectPath& ipconfig_path, | |
37 const std::string& name, | |
38 const VoidDBusMethodCallback& callback)); | |
39 MOCK_METHOD2(Remove, void(const dbus::ObjectPath& ipconfig_path, | |
40 const VoidDBusMethodCallback& callback)); | |
41 }; | |
42 | |
43 } // namespace chromeos | |
44 | |
45 #endif // CHROMEOS_DBUS_MOCK_SHILL_IPCONFIG_CLIENT_H_ | |
OLD | NEW |