Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(90)

Side by Side Diff: chromeos/dbus/fake_shill_manager_client.h

Issue 409883006: GCM: D-Bus methods for wake-on-packet (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: refining based on review comments Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
Daniel Erat 2014/08/23 14:44:52 nit: get rid of blank lines within this namespace:
Luigi Semenzato 2014/08/25 19:59:34 Done.
17 class IPEndPoint;
18
19 }
20
15 namespace chromeos { 21 namespace chromeos {
16 22
17 // A fake implementation of ShillManagerClient. This works in close coordination 23 // A fake implementation of ShillManagerClient. This works in close coordination
18 // with FakeShillServiceClient. FakeShillDeviceClient, and 24 // with FakeShillServiceClient. FakeShillDeviceClient, and
19 // FakeShillProfileClient, and is not intended to be used independently. 25 // FakeShillProfileClient, and is not intended to be used independently.
20 class CHROMEOS_EXPORT FakeShillManagerClient 26 class CHROMEOS_EXPORT FakeShillManagerClient
21 : public ShillManagerClient, 27 : public ShillManagerClient,
22 public ShillManagerClient::TestInterface { 28 public ShillManagerClient::TestInterface {
23 public: 29 public:
24 FakeShillManagerClient(); 30 FakeShillManagerClient();
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 const StringCallback& callback, 76 const StringCallback& callback,
71 const ErrorCallback& error_callback) OVERRIDE; 77 const ErrorCallback& error_callback) OVERRIDE;
72 virtual void VerifyAndEncryptData( 78 virtual void VerifyAndEncryptData(
73 const VerificationProperties& properties, 79 const VerificationProperties& properties,
74 const std::string& data, 80 const std::string& data,
75 const StringCallback& callback, 81 const StringCallback& callback,
76 const ErrorCallback& error_callback) OVERRIDE; 82 const ErrorCallback& error_callback) OVERRIDE;
77 virtual void ConnectToBestServices( 83 virtual void ConnectToBestServices(
78 const base::Closure& callback, 84 const base::Closure& callback,
79 const ErrorCallback& error_callback) OVERRIDE; 85 const ErrorCallback& error_callback) OVERRIDE;
86 virtual void AddWakeOnPacketConnection(
87 const net::IPEndPoint& ip_connection,
88 const base::Closure& callback,
89 const ErrorCallback& error_callback) OVERRIDE;
90 virtual void RemoveWakeOnPacketConnection(
91 const net::IPEndPoint& ip_endpoint,
92 const base::Closure& callback,
93 const ErrorCallback& error_callback) OVERRIDE;
94 virtual void RemoveAllWakeOnPacketConnections(
95 const base::Closure& callback,
96 const ErrorCallback& error_callback) OVERRIDE;
97
80 virtual ShillManagerClient::TestInterface* GetTestInterface() OVERRIDE; 98 virtual ShillManagerClient::TestInterface* GetTestInterface() OVERRIDE;
81 99
82 // ShillManagerClient::TestInterface overrides. 100 // ShillManagerClient::TestInterface overrides.
83 virtual void AddDevice(const std::string& device_path) OVERRIDE; 101 virtual void AddDevice(const std::string& device_path) OVERRIDE;
84 virtual void RemoveDevice(const std::string& device_path) OVERRIDE; 102 virtual void RemoveDevice(const std::string& device_path) OVERRIDE;
85 virtual void ClearDevices() OVERRIDE; 103 virtual void ClearDevices() OVERRIDE;
86 virtual void AddTechnology(const std::string& type, bool enabled) OVERRIDE; 104 virtual void AddTechnology(const std::string& type, bool enabled) OVERRIDE;
87 virtual void RemoveTechnology(const std::string& type) OVERRIDE; 105 virtual void RemoveTechnology(const std::string& type) OVERRIDE;
88 virtual void SetTechnologyInitializing(const std::string& type, 106 virtual void SetTechnologyInitializing(const std::string& type,
89 bool initializing) OVERRIDE; 107 bool initializing) OVERRIDE;
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
157 175
158 // 'Best' service to connect to on ConnectToBestServices() calls. 176 // 'Best' service to connect to on ConnectToBestServices() calls.
159 std::string best_service_; 177 std::string best_service_;
160 178
161 DISALLOW_COPY_AND_ASSIGN(FakeShillManagerClient); 179 DISALLOW_COPY_AND_ASSIGN(FakeShillManagerClient);
162 }; 180 };
163 181
164 } // namespace chromeos 182 } // namespace chromeos
165 183
166 #endif // CHROMEOS_DBUS_FAKE_SHILL_MANAGER_CLIENT_H_ 184 #endif // CHROMEOS_DBUS_FAKE_SHILL_MANAGER_CLIENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698