| OLD | NEW |
| 1 # Copyright (c) 2010 The Chromium OS Authors. All rights reserved. | 1 # Copyright (c) 2010 The Chromium OS Authors. All rights reserved. |
| 2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
| 4 | 4 |
| 5 from autotest_lib.client.bin import site_backchannel, test, utils | 5 from autotest_lib.client.bin import test, utils |
| 6 from autotest_lib.client.common_lib import error | 6 from autotest_lib.client.common_lib import error |
| 7 | 7 |
| 8 import logging, re, socket, string, time, urllib2 | 8 import logging, re, socket, string, time, urllib2 |
| 9 import dbus, dbus.mainloop.glib, gobject | 9 import dbus, dbus.mainloop.glib, gobject |
| 10 import random | 10 import random |
| 11 | 11 |
| 12 from autotest_lib.client.cros import flimflam_test_path | 12 from autotest_lib.client.cros import flimflam_test_path |
| 13 import flimflam | 13 import flimflam |
| 14 | 14 |
| 15 class network_3GSafetyDance(test.test): | 15 class network_3GSafetyDance(test.test): |
| (...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 83 'cellular') | 83 'cellular') |
| 84 self.device = self.flim.FindElementByNameSubstring('Device', name) | 84 self.device = self.flim.FindElementByNameSubstring('Device', name) |
| 85 if not self.device: | 85 if not self.device: |
| 86 self.device = self.flim.FindElementByPropertySubstring('Device', | 86 self.device = self.flim.FindElementByPropertySubstring('Device', |
| 87 'Interface', | 87 'Interface', |
| 88 name) | 88 name) |
| 89 logging.info('Seed: %d' % seed) | 89 logging.info('Seed: %d' % seed) |
| 90 random.seed(seed) | 90 random.seed(seed) |
| 91 for _ in xrange(ops): | 91 for _ in xrange(ops): |
| 92 self.op() | 92 self.op() |
| OLD | NEW |