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

Unified Diff: chromeos/dbus/shill_device_client_unittest.cc

Issue 12041029: Add ResetModem method and call it once non_cellular activation is done. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 11 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
« no previous file with comments | « chromeos/dbus/shill_device_client.cc ('k') | chromeos/network/cros_network_functions.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « chromeos/dbus/shill_device_client.cc ('k') | chromeos/network/cros_network_functions.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698