| 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_NETWORK_CLIENT_H_ | |
| 6 #define CHROMEOS_DBUS_MOCK_SHILL_NETWORK_CLIENT_H_ | |
| 7 | |
| 8 #include "chromeos/dbus/shill_network_client.h" | |
| 9 #include "chromeos/dbus/shill_property_changed_observer.h" | |
| 10 #include "dbus/object_path.h" | |
| 11 #include "testing/gmock/include/gmock/gmock.h" | |
| 12 | |
| 13 namespace chromeos { | |
| 14 | |
| 15 class MockShillNetworkClient : public ShillNetworkClient { | |
| 16 public: | |
| 17 MockShillNetworkClient(); | |
| 18 virtual ~MockShillNetworkClient(); | |
| 19 | |
| 20 MOCK_METHOD2(AddPropertyChangedObserver, | |
| 21 void(const dbus::ObjectPath& network_path, | |
| 22 ShillPropertyChangedObserver* observer)); | |
| 23 MOCK_METHOD2(RemovePropertyChangedObserver, | |
| 24 void(const dbus::ObjectPath& network_path, | |
| 25 ShillPropertyChangedObserver* observer)); | |
| 26 MOCK_METHOD2(GetProperties, void(const dbus::ObjectPath& network_path, | |
| 27 const DictionaryValueCallback& callback)); | |
| 28 MOCK_METHOD1(CallGetPropertiesAndBlock, | |
| 29 base::DictionaryValue*(const dbus::ObjectPath& network_path)); | |
| 30 }; | |
| 31 | |
| 32 } // namespace chromeos | |
| 33 | |
| 34 #endif // CHROMEOS_DBUS_MOCK_SHILL_NETWORK_CLIENT_H_ | |
| OLD | NEW |