OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CHROMEOS_DBUS_FAKE_SHILL_DEVICE_CLIENT_H_ | 5 #ifndef CHROMEOS_DBUS_FAKE_SHILL_DEVICE_CLIENT_H_ |
6 #define CHROMEOS_DBUS_FAKE_SHILL_DEVICE_CLIENT_H_ | 6 #define CHROMEOS_DBUS_FAKE_SHILL_DEVICE_CLIENT_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
75 const ErrorCallback& error_callback) override; | 75 const ErrorCallback& error_callback) override; |
76 virtual void Reset(const dbus::ObjectPath& device_path, | 76 virtual void Reset(const dbus::ObjectPath& device_path, |
77 const base::Closure& callback, | 77 const base::Closure& callback, |
78 const ErrorCallback& error_callback) override; | 78 const ErrorCallback& error_callback) override; |
79 virtual void PerformTDLSOperation( | 79 virtual void PerformTDLSOperation( |
80 const dbus::ObjectPath& device_path, | 80 const dbus::ObjectPath& device_path, |
81 const std::string& operation, | 81 const std::string& operation, |
82 const std::string& peer, | 82 const std::string& peer, |
83 const StringCallback& callback, | 83 const StringCallback& callback, |
84 const ErrorCallback& error_callback) override; | 84 const ErrorCallback& error_callback) override; |
| 85 void AddWakeOnPacketConnection( |
| 86 const dbus::ObjectPath& device_path, |
| 87 const net::IPEndPoint& ip_endpoint, |
| 88 const base::Closure& callback, |
| 89 const ErrorCallback& error_callback) override; |
| 90 void RemoveWakeOnPacketConnection( |
| 91 const dbus::ObjectPath& device_path, |
| 92 const net::IPEndPoint& ip_endpoint, |
| 93 const base::Closure& callback, |
| 94 const ErrorCallback& error_callback) override; |
| 95 void RemoveAllWakeOnPacketConnections( |
| 96 const dbus::ObjectPath& device_path, |
| 97 const base::Closure& callback, |
| 98 const ErrorCallback& error_callback) override; |
85 | 99 |
86 virtual ShillDeviceClient::TestInterface* GetTestInterface() override; | 100 virtual ShillDeviceClient::TestInterface* GetTestInterface() override; |
87 | 101 |
88 // ShillDeviceClient::TestInterface overrides. | 102 // ShillDeviceClient::TestInterface overrides. |
89 virtual void AddDevice(const std::string& device_path, | 103 virtual void AddDevice(const std::string& device_path, |
90 const std::string& type, | 104 const std::string& type, |
91 const std::string& name) override; | 105 const std::string& name) override; |
92 virtual void RemoveDevice(const std::string& device_path) override; | 106 virtual void RemoveDevice(const std::string& device_path) override; |
93 virtual void ClearDevices() override; | 107 virtual void ClearDevices() override; |
94 virtual void SetDeviceProperty(const std::string& device_path, | 108 virtual void SetDeviceProperty(const std::string& device_path, |
(...skipping 29 matching lines...) Expand all Loading... |
124 // Note: This should remain the last member so it'll be destroyed and | 138 // Note: This should remain the last member so it'll be destroyed and |
125 // invalidate its weak pointers before any other members are destroyed. | 139 // invalidate its weak pointers before any other members are destroyed. |
126 base::WeakPtrFactory<FakeShillDeviceClient> weak_ptr_factory_; | 140 base::WeakPtrFactory<FakeShillDeviceClient> weak_ptr_factory_; |
127 | 141 |
128 DISALLOW_COPY_AND_ASSIGN(FakeShillDeviceClient); | 142 DISALLOW_COPY_AND_ASSIGN(FakeShillDeviceClient); |
129 }; | 143 }; |
130 | 144 |
131 } // namespace chromeos | 145 } // namespace chromeos |
132 | 146 |
133 #endif // CHROMEOS_DBUS_FAKE_SHILL_DEVICE_CLIENT_H_ | 147 #endif // CHROMEOS_DBUS_FAKE_SHILL_DEVICE_CLIENT_H_ |
OLD | NEW |