| Index: chromeos/dbus/shill_device_client_unittest.cc
|
| diff --git a/chromeos/dbus/shill_device_client_unittest.cc b/chromeos/dbus/shill_device_client_unittest.cc
|
| index 2a40a1fb353de0b96ee7fd0b86f426a95ae17588..d8f127a7e4319495dbacd9a1776ee7d41ad639a3 100644
|
| --- a/chromeos/dbus/shill_device_client_unittest.cc
|
| +++ b/chromeos/dbus/shill_device_client_unittest.cc
|
| @@ -392,4 +392,23 @@ TEST_F(ShillDeviceClientTest, SetCarrier) {
|
| message_loop_.RunUntilIdle();
|
| }
|
|
|
| +TEST_F(ShillDeviceClientTest, Reset) {
|
| + // Create response.
|
| + scoped_ptr<dbus::Response> response(dbus::Response::CreateEmpty());
|
| +
|
| + // Set expectations.
|
| + MockClosure mock_closure;
|
| + MockErrorCallback mock_error_callback;
|
| + PrepareForMethodCall(shill::kResetFunction,
|
| + base::Bind(&ExpectNoArgument),
|
| + response.get());
|
| + EXPECT_CALL(mock_closure, Run()).Times(1);
|
| + // Call method.
|
| + client_->Reset(dbus::ObjectPath(kExampleDevicePath),
|
| + mock_closure.GetCallback(),
|
| + mock_error_callback.GetCallback());
|
| + // Run the message loop.
|
| + message_loop_.RunUntilIdle();
|
| +}
|
| +
|
| } // namespace chromeos
|
|
|