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

Unified Diff: chromeos/dbus/fake_shill_device_client.cc

Issue 156353002: Implement networkingPrivate.setWifiTDLSEnabledState (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 6 years, 10 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 side-by-side diff with in-line comments
Download patch
Index: chromeos/dbus/fake_shill_device_client.cc
diff --git a/chromeos/dbus/fake_shill_device_client.cc b/chromeos/dbus/fake_shill_device_client.cc
index ca6e027671821992aa7328288d1529a1738ef37d..1f44bcd32060ce0f114e863d3d44a1779144dc12 100644
--- a/chromeos/dbus/fake_shill_device_client.cc
+++ b/chromeos/dbus/fake_shill_device_client.cc
@@ -201,6 +201,22 @@ void FakeShillDeviceClient::Reset(const dbus::ObjectPath& device_path,
}
base::MessageLoop::current()->PostTask(FROM_HERE, callback);
}
+void FakeShillDeviceClient::PerformTDLSOperation(
+ const dbus::ObjectPath& device_path,
+ const std::string& operation,
+ const std::string& peer,
+ const StringCallback& callback,
+ const ErrorCallback& error_callback) {
+ if (!stub_devices_.HasKey(device_path.value())) {
+ PostDeviceNotFoundError(error_callback);
+ return;
+ }
+ std::string result;
+ if (operation == shill::kTDLSStatusOperation)
+ result = shill::kTDLSConnectedState;
+ base::MessageLoop::current()->PostTask(FROM_HERE,
+ base::Bind(callback, result));
+}
ShillDeviceClient::TestInterface* FakeShillDeviceClient::GetTestInterface() {
return this;

Powered by Google App Engine
This is Rietveld 408576698