| 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;
|
|
|