summaryrefslogtreecommitdiffstats
path: root/chromeos/dbus/shill_device_client_unittest.cc
diff options
context:
space:
mode:
authorrkc@chromium.org <rkc@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-01-25 15:39:52 +0000
committerrkc@chromium.org <rkc@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-01-25 15:39:52 +0000
commit6f2f1c1c12c052590d204650533240de0d7a5f1a (patch)
tree4130f8ac22a72141e002cbf6022242f05bef5a72 /chromeos/dbus/shill_device_client_unittest.cc
parent74d74897fceb4ff3c24f9aa7273eab4568e92577 (diff)
downloadchromium_src-6f2f1c1c12c052590d204650533240de0d7a5f1a.zip
chromium_src-6f2f1c1c12c052590d204650533240de0d7a5f1a.tar.gz
chromium_src-6f2f1c1c12c052590d204650533240de0d7a5f1a.tar.bz2
Add ResetModem method and call it once non_cellular activation is done.
Once non_cellular activation is done, the modem needs to be reset to get into the new activated state. R=stevenjb@chromium.org,benchan@chromium.org BUG=171535 Review URL: https://chromiumcodereview.appspot.com/12041029 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@178823 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chromeos/dbus/shill_device_client_unittest.cc')
-rw-r--r--chromeos/dbus/shill_device_client_unittest.cc19
1 files changed, 19 insertions, 0 deletions
diff --git a/chromeos/dbus/shill_device_client_unittest.cc b/chromeos/dbus/shill_device_client_unittest.cc
index 2a40a1f..d8f127a 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