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

Unified Diff: test/mm-enable

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-disconnect ('k') | test/mm-factory-reset » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/mm-enable
diff --git a/test/mm-enable b/test/mm-enable
index 0ec8b48d222927da504403eb6affe15377480c74..b06dac309a5445110775f1f06f28b128fb0eb606 100755
--- a/test/mm-enable
+++ b/test/mm-enable
@@ -1,13 +1,15 @@
#!/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
-manager = mm.ModemManager()
-
-devices = manager.manager.EnumerateDevices()
+devices = mm.EnumerateDevices()
-for path in devices:
+for manager, path in devices:
print path
modem = manager.Modem(path)
« no previous file with comments | « test/mm-disconnect ('k') | test/mm-factory-reset » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698