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

Side by Side Diff: client/site_tests/network_3GSafetyDance/network_3GSafetyDance.py

Issue 6479003: Move site_backchannel and site_tpm module into client/cros dir. (Closed) Base URL: ssh://git@gitrw.chromium.org:9222/autotest.git@master
Patch Set: patch Created 9 years, 10 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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()
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698