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..44eaf2d9de68b1e20873a484113b768dfda2ccf7 100644 |
--- a/chromeos/dbus/fake_shill_device_client.cc |
+++ b/chromeos/dbus/fake_shill_device_client.cc |
@@ -202,6 +202,23 @@ 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; |
} |