| 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 92b802ed239c7a5b7630abb1d2143f11d7582d30..9733ffe567818248bf1d473f4d429a1df8a3d3a8 100644
|
| --- a/chromeos/dbus/flimflam_service_client_unittest.cc
|
| +++ b/chromeos/dbus/flimflam_service_client_unittest.cc
|
| @@ -195,4 +195,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
|
|
|