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

Unified Diff: chromeos/dbus/flimflam_device_client.cc

Issue 10533006: Support the ModemManager1 interfaces for SMS messages (Closed) Base URL: http://git.chromium.org/git/chromium/src@master
Patch Set: Only deliver messages after call to RequestUpdate Created 8 years, 6 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
Index: chromeos/dbus/flimflam_device_client.cc
diff --git a/chromeos/dbus/flimflam_device_client.cc b/chromeos/dbus/flimflam_device_client.cc
index 12cd522da3fd9b3f99ad93fa255ade2eeed638e0..f16189f4c3e1ab8634c26777f42ca6d20482fb92 100644
--- a/chromeos/dbus/flimflam_device_client.cc
+++ b/chromeos/dbus/flimflam_device_client.cc
@@ -225,6 +225,23 @@ class FlimflamDeviceClientStubImpl : public FlimflamDeviceClient {
flimflam::kDBusObjectProperty,
base::Value::CreateStringValue("/device/cellular1"));
stub_devices_.Set(kStubCellular1, cellular_properties);
+
+ // Create a second device stubbing a modem managed by
+ // ModemManager1 interfaces.
+ // Note: name matches Manager entry.
+ const char kStubCellular2[] = "stub_cellular2";
+ cellular_properties = new base::DictionaryValue;
+ cellular_properties->SetWithoutPathExpansion(
+ flimflam::kTypeProperty,
+ base::Value::CreateStringValue(flimflam::kTypeCellular));
+ cellular_properties->SetWithoutPathExpansion(
+ flimflam::kDBusConnectionProperty,
+ base::Value::CreateStringValue(":stub.0"));
+ cellular_properties->SetWithoutPathExpansion(
+ flimflam::kDBusObjectProperty,
+ base::Value::CreateStringValue(
+ "/org/freedesktop/ModemManager1/stub/0"));
+ stub_devices_.Set(kStubCellular2, cellular_properties);
}
virtual ~FlimflamDeviceClientStubImpl() {}

Powered by Google App Engine
This is Rietveld 408576698