summaryrefslogtreecommitdiffstats
path: root/chromeos/dbus/fake_shill_manager_client.h
diff options
context:
space:
mode:
authorsemenzato <semenzato@chromium.org>2014-09-15 17:05:26 -0700
committerCommit bot <commit-bot@chromium.org>2014-09-16 00:11:43 +0000
commit88a95a70fa94bb578b371490d0f9868584b7096e (patch)
tree7111c31fc148d5647336adf512862c2920565232 /chromeos/dbus/fake_shill_manager_client.h
parent1afc65175c84ddf6087f65da818bbdbba6d28101 (diff)
downloadchromium_src-88a95a70fa94bb578b371490d0f9868584b7096e.zip
chromium_src-88a95a70fa94bb578b371490d0f9868584b7096e.tar.gz
chromium_src-88a95a70fa94bb578b371490d0f9868584b7096e.tar.bz2
GCM: D-Bus methods for wake-on-packet
Program the NIC to wake-on-packet for packets arriving from the GCM server. Chrome notifies the connection manager (shill) by calling D-Bus methods. The return status indicates if the operation succeeded or not (depending on hardware support and the type of connection). Keywords: wowlan, wake-on-lan, wake-on-wlan BUG=360295 TEST=verified dbus methods are called, and packets are sent on the TEST=connection passed to the methods. Also verified that shill TEST=programs the NIC correctly, and packets wake up the device. Review URL: https://codereview.chromium.org/409883006 Cr-Commit-Position: refs/heads/master@{#294936}
Diffstat (limited to 'chromeos/dbus/fake_shill_manager_client.h')
-rw-r--r--chromeos/dbus/fake_shill_manager_client.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/chromeos/dbus/fake_shill_manager_client.h b/chromeos/dbus/fake_shill_manager_client.h
index 34b10a5..7f24ca2 100644
--- a/chromeos/dbus/fake_shill_manager_client.h
+++ b/chromeos/dbus/fake_shill_manager_client.h
@@ -12,6 +12,10 @@
#include "chromeos/chromeos_export.h"
#include "chromeos/dbus/shill_manager_client.h"
+namespace net {
+class IPEndPoint;
+}
+
namespace chromeos {
// A fake implementation of ShillManagerClient. This works in close coordination
@@ -77,6 +81,18 @@ class CHROMEOS_EXPORT FakeShillManagerClient
virtual void ConnectToBestServices(
const base::Closure& callback,
const ErrorCallback& error_callback) OVERRIDE;
+ virtual void AddWakeOnPacketConnection(
+ const net::IPEndPoint& ip_connection,
+ const base::Closure& callback,
+ const ErrorCallback& error_callback) OVERRIDE;
+ virtual void RemoveWakeOnPacketConnection(
+ const net::IPEndPoint& ip_endpoint,
+ const base::Closure& callback,
+ const ErrorCallback& error_callback) OVERRIDE;
+ virtual void RemoveAllWakeOnPacketConnections(
+ const base::Closure& callback,
+ const ErrorCallback& error_callback) OVERRIDE;
+
virtual ShillManagerClient::TestInterface* GetTestInterface() OVERRIDE;
// ShillManagerClient::TestInterface overrides.