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

Unified Diff: test/mm-activate

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.py ('k') | test/mm-connect » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/mm-activate
diff --git a/test/mm-activate b/test/mm-activate
index 3181234c44302434ace8fbcdebf5b43eb64baf31..a819653d580286f09ce3f9d86b02cad3b2fa607e 100755
--- a/test/mm-activate
+++ b/test/mm-activate
@@ -1,5 +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.
+
import dbus
import mm
import sys
@@ -18,7 +22,6 @@ if len(sys.argv) < 3:
else:
modem_pattern = sys.argv[2]
-manager = mm.ModemManager()
-target = mm.PickOneModem(manager, modem_pattern)
-modem = manager.CdmaModem(target)
+manager, path = mm.PickOneModem(modem_pattern)
+modem = manager.CdmaModem(path)
modem.Activate(carrier)
« no previous file with comments | « test/mm.py ('k') | test/mm-connect » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698