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_MANAGER_CLIENT_H_ | 5 #ifndef CHROMEOS_DBUS_FAKE_SHILL_MANAGER_CLIENT_H_ |
6 #define CHROMEOS_DBUS_FAKE_SHILL_MANAGER_CLIENT_H_ | 6 #define CHROMEOS_DBUS_FAKE_SHILL_MANAGER_CLIENT_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
11 #include "base/callback.h" | 11 #include "base/callback.h" |
12 #include "chromeos/chromeos_export.h" | 12 #include "chromeos/chromeos_export.h" |
13 #include "chromeos/dbus/shill_manager_client.h" | 13 #include "chromeos/dbus/shill_manager_client.h" |
14 | 14 |
15 namespace net { | |
16 class IPEndPoint; | |
17 } | |
18 | |
19 namespace chromeos { | 15 namespace chromeos { |
20 | 16 |
21 // A fake implementation of ShillManagerClient. This works in close coordination | 17 // A fake implementation of ShillManagerClient. This works in close coordination |
22 // with FakeShillServiceClient. FakeShillDeviceClient, and | 18 // with FakeShillServiceClient. FakeShillDeviceClient, and |
23 // FakeShillProfileClient, and is not intended to be used independently. | 19 // FakeShillProfileClient, and is not intended to be used independently. |
24 class CHROMEOS_EXPORT FakeShillManagerClient | 20 class CHROMEOS_EXPORT FakeShillManagerClient |
25 : public ShillManagerClient, | 21 : public ShillManagerClient, |
26 public ShillManagerClient::TestInterface { | 22 public ShillManagerClient::TestInterface { |
27 public: | 23 public: |
28 FakeShillManagerClient(); | 24 FakeShillManagerClient(); |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
74 const StringCallback& callback, | 70 const StringCallback& callback, |
75 const ErrorCallback& error_callback) OVERRIDE; | 71 const ErrorCallback& error_callback) OVERRIDE; |
76 virtual void VerifyAndEncryptData( | 72 virtual void VerifyAndEncryptData( |
77 const VerificationProperties& properties, | 73 const VerificationProperties& properties, |
78 const std::string& data, | 74 const std::string& data, |
79 const StringCallback& callback, | 75 const StringCallback& callback, |
80 const ErrorCallback& error_callback) OVERRIDE; | 76 const ErrorCallback& error_callback) OVERRIDE; |
81 virtual void ConnectToBestServices( | 77 virtual void ConnectToBestServices( |
82 const base::Closure& callback, | 78 const base::Closure& callback, |
83 const ErrorCallback& error_callback) OVERRIDE; | 79 const ErrorCallback& error_callback) OVERRIDE; |
84 virtual void AddWakeOnPacketConnection( | |
85 const net::IPEndPoint& ip_connection, | |
86 const base::Closure& callback, | |
87 const ErrorCallback& error_callback) OVERRIDE; | |
88 virtual void RemoveWakeOnPacketConnection( | |
89 const net::IPEndPoint& ip_endpoint, | |
90 const base::Closure& callback, | |
91 const ErrorCallback& error_callback) OVERRIDE; | |
92 virtual void RemoveAllWakeOnPacketConnections( | |
93 const base::Closure& callback, | |
94 const ErrorCallback& error_callback) OVERRIDE; | |
95 | |
96 virtual ShillManagerClient::TestInterface* GetTestInterface() OVERRIDE; | 80 virtual ShillManagerClient::TestInterface* GetTestInterface() OVERRIDE; |
97 | 81 |
98 // ShillManagerClient::TestInterface overrides. | 82 // ShillManagerClient::TestInterface overrides. |
99 virtual void AddDevice(const std::string& device_path) OVERRIDE; | 83 virtual void AddDevice(const std::string& device_path) OVERRIDE; |
100 virtual void RemoveDevice(const std::string& device_path) OVERRIDE; | 84 virtual void RemoveDevice(const std::string& device_path) OVERRIDE; |
101 virtual void ClearDevices() OVERRIDE; | 85 virtual void ClearDevices() OVERRIDE; |
102 virtual void AddTechnology(const std::string& type, bool enabled) OVERRIDE; | 86 virtual void AddTechnology(const std::string& type, bool enabled) OVERRIDE; |
103 virtual void RemoveTechnology(const std::string& type) OVERRIDE; | 87 virtual void RemoveTechnology(const std::string& type) OVERRIDE; |
104 virtual void SetTechnologyInitializing(const std::string& type, | 88 virtual void SetTechnologyInitializing(const std::string& type, |
105 bool initializing) OVERRIDE; | 89 bool initializing) OVERRIDE; |
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
175 | 159 |
176 // 'Best' service to connect to on ConnectToBestServices() calls. | 160 // 'Best' service to connect to on ConnectToBestServices() calls. |
177 std::string best_service_; | 161 std::string best_service_; |
178 | 162 |
179 DISALLOW_COPY_AND_ASSIGN(FakeShillManagerClient); | 163 DISALLOW_COPY_AND_ASSIGN(FakeShillManagerClient); |
180 }; | 164 }; |
181 | 165 |
182 } // namespace chromeos | 166 } // namespace chromeos |
183 | 167 |
184 #endif // CHROMEOS_DBUS_FAKE_SHILL_MANAGER_CLIENT_H_ | 168 #endif // CHROMEOS_DBUS_FAKE_SHILL_MANAGER_CLIENT_H_ |
OLD | NEW |