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

Unified Diff: test/mm-connect

Issue 6731056: Update to test scripts to work with both ModemManager and Cromo (Closed) Base URL: ssh://gitrw.chromium.org:9222/flimflam.git@master
Patch Set: Fix review comments Created 9 years, 9 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 | « test/mm-activate ('k') | test/mm-disable » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/mm-connect
diff --git a/test/mm-connect b/test/mm-connect
index 0df4a1b5efd3479e99bffdda987226032b620c71..2a8811ceea0f8a78eba73dc20340ba562d278539 100755
--- a/test/mm-connect
+++ b/test/mm-connect
@@ -1,4 +1,9 @@
#!/usr/bin/python
+
+# Copyright (c) 2011 The Chromium OS Authors. All rights reserved.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
#
# Call the Simple.Connect API.
#
@@ -83,20 +88,19 @@ if options.number:
dbus.mainloop.glib.DBusGMainLoop(set_as_default=True)
-manager = mm.ModemManager()
-
-target = mm.PickOneModem(manager, modem_pattern)
+manager, path = mm.PickOneModem(modem_pattern)
+modem = manager.CdmaModem(path)
-print "Connecting", target
+print "Connecting", path
if options.wait:
bus = dbus.SystemBus()
bus.add_signal_receiver(state_changed,
- bus_name="org.chromium.ModemManager",
+ bus_name=manager.provider,
signal_name="StateChanged",
path_keyword="path")
-modem = manager.SimpleModem(target)
+modem = manager.SimpleModem(path)
try:
modem.Connect(props)
options.wait = False
« no previous file with comments | « test/mm-activate ('k') | test/mm-disable » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698