| 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_FLIMFLAM_IPCONFIG_CLIENT_H_ | |
| 6 #define CHROMEOS_DBUS_MOCK_FLIMFLAM_IPCONFIG_CLIENT_H_ | |
| 7 | |
| 8 #include "base/values.h" | |
| 9 #include "chromeos/dbus/flimflam_ipconfig_client.h" | |
| 10 #include "dbus/object_path.h" | |
| 11 #include "testing/gmock/include/gmock/gmock.h" | |
| 12 | |
| 13 namespace chromeos { | |
| 14 | |
| 15 class MockFlimflamIPConfigClient : public FlimflamIPConfigClient { | |
| 16 public: | |
| 17 MockFlimflamIPConfigClient(); | |
| 18 virtual ~MockFlimflamIPConfigClient(); | |
| 19 | |
| 20 MOCK_METHOD2(SetPropertyChangedHandler, | |
| 21 void(const dbus::ObjectPath& ipconfig_path, | |
| 22 const PropertyChangedHandler& handler)); | |
| 23 MOCK_METHOD1(ResetPropertyChangedHandler, | |
| 24 void(const dbus::ObjectPath& ipconfig_path)); | |
| 25 MOCK_METHOD2(Refresh, void(const dbus::ObjectPath& ipconfig_path, | |
| 26 const VoidDBusMethodCallback& callback)); | |
| 27 MOCK_METHOD2(GetProperties, void(const dbus::ObjectPath& ipconfig_path, | |
| 28 const DictionaryValueCallback& callback)); | |
| 29 MOCK_METHOD1(CallGetPropertiesAndBlock, | |
| 30 base::DictionaryValue*(const dbus::ObjectPath& ipconfig_path)); | |
| 31 MOCK_METHOD4(SetProperty, void(const dbus::ObjectPath& ipconfig_path, | |
| 32 const std::string& name, | |
| 33 const base::Value& value, | |
| 34 const VoidDBusMethodCallback& callback)); | |
| 35 MOCK_METHOD3(ClearProperty, void(const dbus::ObjectPath& ipconfig_path, | |
| 36 const std::string& name, | |
| 37 const VoidDBusMethodCallback& callback)); | |
| 38 MOCK_METHOD2(Remove, void(const dbus::ObjectPath& ipconfig_path, | |
| 39 const VoidDBusMethodCallback& callback)); | |
| 40 MOCK_METHOD1(CallRemoveAndBlock, bool(const dbus::ObjectPath& ipconfig_path)); | |
| 41 }; | |
| 42 | |
| 43 } // namespace chromeos | |
| 44 | |
| 45 #endif // CHROMEOS_DBUS_MOCK_FLIMFLAM_IPCONFIG_CLIENT_H_ | |
| OLD | NEW |