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

Unified Diff: test/mm-poll-signal-strength

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-list-modems ('k') | test/mm-register » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/mm-poll-signal-strength
diff --git a/test/mm-poll-signal-strength b/test/mm-poll-signal-strength
index 362fa38de694e8b789dee3660eda4afcdc789429..e8dd0b29f7fa0d0b22e73628ae4bbaffc443efc2 100755
--- a/test/mm-poll-signal-strength
+++ b/test/mm-poll-signal-strength
@@ -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 re
import sys
import time
@@ -13,8 +17,7 @@ TIME = 60
SAMPLES = TIME * 2
-manager = mm.ModemManager()
-path = mm.PickOneModem(manager, '')
+manager, path = mm.PickOneModem('')
simple_modem = manager.SimpleModem(path)
strengths = [] # list of lists where list[i] is dbm for interface #i
« no previous file with comments | « test/mm-list-modems ('k') | test/mm-register » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698