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