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

Unified Diff: chromeos/dbus/flimflam_service_client_unittest.cc

Issue 10134028: Reimplement ActivateCellularModem without Libcros (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add crosbug.com URLs to TODO comments Created 8 years, 8 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/flimflam_service_client.cc ('k') | chromeos/dbus/mock_flimflam_service_client.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chromeos/dbus/flimflam_service_client_unittest.cc
diff --git a/chromeos/dbus/flimflam_service_client_unittest.cc b/chromeos/dbus/flimflam_service_client_unittest.cc
index dafea40903ace9d492c7a1a67e99bb66044c78ff..fba750a77fb713384742a9420db2e49759b6ab60 100644
--- a/chromeos/dbus/flimflam_service_client_unittest.cc
+++ b/chromeos/dbus/flimflam_service_client_unittest.cc
@@ -200,4 +200,19 @@ TEST_F(FlimflamServiceClientTest, ActivateCellularModem) {
message_loop_.RunAllPending();
}
+TEST_F(FlimflamServiceClientTest, CallActivateCellularModemAndBlock) {
+ const char kCarrier[] = "carrier";
+ // Create response.
+ scoped_ptr<dbus::Response> response(dbus::Response::CreateEmpty());
+
+ // Set expectations.
+ PrepareForMethodCall(flimflam::kActivateCellularModemFunction,
+ base::Bind(&ExpectStringArgument, kCarrier),
+ response.get());
+ // Call method.
+ const bool result = client_->CallActivateCellularModemAndBlock(
+ dbus::ObjectPath(kExampleServicePath), kCarrier);
+ EXPECT_TRUE(result);
+}
+
} // namespace chromeos
« no previous file with comments | « chromeos/dbus/flimflam_service_client.cc ('k') | chromeos/dbus/mock_flimflam_service_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698