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

Side by Side Diff: components/cronet/android/test/javaperftests/run.py

Issue 2115733003: [cronet] Switch pylib.device -> devil equivalents. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!/usr/bin/env python 1 #!/usr/bin/env python
2 # Copyright 2015 The Chromium Authors. All rights reserved. 2 # Copyright 2015 The Chromium Authors. All rights reserved.
3 # Use of this source code is governed by a BSD-style license that can be 3 # Use of this source code is governed by a BSD-style license that can be
4 # found in the LICENSE file. 4 # found in the LICENSE file.
5 5
6 """This script runs an automated Cronet performance benchmark. 6 """This script runs an automated Cronet performance benchmark.
7 7
8 This script: 8 This script:
9 1. Sets up "USB reverse tethering" which allow network traffic to flow from 9 1. Sets up "USB reverse tethering" which allow network traffic to flow from
10 an Android device connected to the host machine via a USB cable. 10 an Android device connected to the host machine via a USB cable.
(...skipping 29 matching lines...) Expand all
40 from time import sleep 40 from time import sleep
41 import urllib 41 import urllib
42 42
43 REPOSITORY_ROOT = os.path.abspath(os.path.join( 43 REPOSITORY_ROOT = os.path.abspath(os.path.join(
44 os.path.dirname(__file__), '..', '..', '..', '..', '..')) 44 os.path.dirname(__file__), '..', '..', '..', '..', '..'))
45 45
46 sys.path.append(os.path.join(REPOSITORY_ROOT, 'tools', 'perf')) 46 sys.path.append(os.path.join(REPOSITORY_ROOT, 'tools', 'perf'))
47 from chrome_telemetry_build import chromium_config 47 from chrome_telemetry_build import chromium_config
48 sys.path.append(chromium_config.GetTelemetryDir()) 48 sys.path.append(chromium_config.GetTelemetryDir())
49 sys.path.append(os.path.join(REPOSITORY_ROOT, 'build', 'android')) 49 sys.path.append(os.path.join(REPOSITORY_ROOT, 'build', 'android'))
50 sys.path.append(os.path.join(
51 REPOSITORY_ROOT, 'third_party', 'catapult', 'devil'))
50 52
51 import android_rndis_forwarder 53 import android_rndis_forwarder
54 from devil.android import device_utils
55 from devil.android.sdk import intent
52 import lighttpd_server 56 import lighttpd_server
53 from pylib import constants 57 from pylib import constants
54 from pylib import pexpect 58 from pylib import pexpect
55 from pylib.device import device_utils
56 from pylib.device import intent
57 from telemetry import android 59 from telemetry import android
58 from telemetry import benchmark 60 from telemetry import benchmark
59 from telemetry import benchmark_runner 61 from telemetry import benchmark_runner
60 from telemetry import project_config 62 from telemetry import project_config
61 from telemetry import story 63 from telemetry import story
62 from telemetry.value import scalar 64 from telemetry.value import scalar
63 from telemetry.web_perf import timeline_based_measurement 65 from telemetry.web_perf import timeline_based_measurement
64 66
65 BUILD_TYPE = 'Release' 67 BUILD_TYPE = 'Release'
66 BUILD_DIR = os.path.join(REPOSITORY_ROOT, 'out', BUILD_TYPE) 68 BUILD_DIR = os.path.join(REPOSITORY_ROOT, 'out', BUILD_TYPE)
(...skipping 265 matching lines...) Expand 10 before | Expand all | Expand 10 after
332 benchmark_runner.main(runner_config) 334 benchmark_runner.main(runner_config)
333 # Shutdown. 335 # Shutdown.
334 quic_server.ShutdownQuicServer() 336 quic_server.ShutdownQuicServer()
335 shutil.rmtree(quic_server_doc_root) 337 shutil.rmtree(quic_server_doc_root)
336 http_server.ShutdownHttpServer() 338 http_server.ShutdownHttpServer()
337 shutil.rmtree(http_server_doc_root) 339 shutil.rmtree(http_server_doc_root)
338 340
339 341
340 if __name__ == '__main__': 342 if __name__ == '__main__':
341 main() 343 main()
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698