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