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_DEVICE_CLIENT_H_ |
| 6 #define CHROMEOS_DBUS_MOCK_FLIMFLAM_DEVICE_CLIENT_H_ |
| 7 |
| 8 #include "base/values.h" |
| 9 #include "chromeos/dbus/flimflam_device_client.h" |
| 10 #include "dbus/object_path.h" |
| 11 #include "testing/gmock/include/gmock/gmock.h" |
| 12 |
| 13 namespace chromeos { |
| 14 |
| 15 class MockFlimflamDeviceClient : public FlimflamDeviceClient { |
| 16 public: |
| 17 MockFlimflamDeviceClient(); |
| 18 virtual ~MockFlimflamDeviceClient(); |
| 19 |
| 20 MOCK_METHOD2(SetPropertyChangedHandler, |
| 21 void(const dbus::ObjectPath& device_path, |
| 22 const PropertyChangedHandler& handler)); |
| 23 MOCK_METHOD1(ResetPropertyChangedHandler, |
| 24 void(const dbus::ObjectPath& device_path)); |
| 25 MOCK_METHOD2(GetProperties, void(const dbus::ObjectPath& device_path, |
| 26 const DictionaryValueCallback& callback)); |
| 27 MOCK_METHOD2(ProposeScan, void(const dbus::ObjectPath& device_path, |
| 28 const VoidCallback& callback)); |
| 29 MOCK_METHOD4(SetProperty, void(const dbus::ObjectPath& device_path, |
| 30 const std::string& name, |
| 31 const base::Value& value, |
| 32 const VoidCallback& callback)); |
| 33 MOCK_METHOD3(ClearProperty, void(const dbus::ObjectPath& device_path, |
| 34 const std::string& name, |
| 35 const VoidCallback& callback)); |
| 36 MOCK_METHOD3(AddIPConfig, void(const dbus::ObjectPath& device_path, |
| 37 const std::string& method, |
| 38 const ObjectPathCallback& callback)); |
| 39 MOCK_METHOD4(RequirePin, void(const dbus::ObjectPath& device_path, |
| 40 const std::string& pin, |
| 41 bool require, |
| 42 const VoidCallback& callback)); |
| 43 MOCK_METHOD3(EnterPin, void(const dbus::ObjectPath& device_path, |
| 44 const std::string& pin, |
| 45 const VoidCallback& callback)); |
| 46 MOCK_METHOD4(UnblockPin, void(const dbus::ObjectPath& device_path, |
| 47 const std::string& puk, |
| 48 const std::string& pin, |
| 49 const VoidCallback& callback)); |
| 50 MOCK_METHOD4(ChangePin, void(const dbus::ObjectPath& device_path, |
| 51 const std::string& old_pin, |
| 52 const std::string& new_pin, |
| 53 const VoidCallback& callback)); |
| 54 MOCK_METHOD3(Register, void(const dbus::ObjectPath& device_path, |
| 55 const std::string& network_id, |
| 56 const VoidCallback& callback)); |
| 57 }; |
| 58 |
| 59 } // namespace chromeos |
| 60 |
| 61 #endif // CHROMEOS_DBUS_MOCK_FLIMFLAM_DEVICE_CLIENT_H_ |
OLD | NEW |