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

Side by Side Diff: tools/android/customtabs_benchmark/scripts/customtabs_benchmark.py

Issue 2722733004: customtabs: Benchmark app for WebView / Custom Tabs comparisons. (Closed)
Patch Set: . Created 3 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 unified diff | Download patch
OLDNEW
1 #!/usr/bin/python 1 #!/usr/bin/python
2 # 2 #
3 # Copyright 2015 The Chromium Authors. All rights reserved. 3 # Copyright 2015 The Chromium Authors. All rights reserved.
4 # Use of this source code is governed by a BSD-style license that can be 4 # Use of this source code is governed by a BSD-style license that can be
5 # found in the LICENSE file. 5 # found in the LICENSE file.
6 6
7 """Loops Custom Tabs tests and outputs the results into a CSV file.""" 7 """Loops Custom Tabs tests and outputs the results into a CSV file."""
8 8
9 import collections 9 import collections
10 import contextlib 10 import contextlib
(...skipping 18 matching lines...) Expand all
29 import devil_chromium 29 import devil_chromium
30 30
31 sys.path.append(os.path.join(_SRC_PATH, 'tools', 'android', 'loading')) 31 sys.path.append(os.path.join(_SRC_PATH, 'tools', 'android', 'loading'))
32 import chrome_setup 32 import chrome_setup
33 import device_setup 33 import device_setup
34 34
35 35
36 # Local build of Chrome (not Chromium). 36 # Local build of Chrome (not Chromium).
37 _CHROME_PACKAGE = 'com.google.android.apps.chrome' 37 _CHROME_PACKAGE = 'com.google.android.apps.chrome'
38 _COMMAND_LINE_FILE = 'chrome-command-line' 38 _COMMAND_LINE_FILE = 'chrome-command-line'
39 _TEST_APP_PACKAGE_NAME = 'org.chromium.customtabsclient.test' 39 _TEST_APP_PACKAGE_NAME = 'org.chromium.customtabs.test'
40 _INVALID_VALUE = -1 40 _INVALID_VALUE = -1
41 41
42 42
43 def RunOnce(device, url, warmup, speculation_mode, delay_to_may_launch_url, 43 def RunOnce(device, url, warmup, speculation_mode, delay_to_may_launch_url,
44 delay_to_launch_url, cold, chrome_args, reset_chrome_state): 44 delay_to_launch_url, cold, chrome_args, reset_chrome_state):
45 """Runs a test on a device once. 45 """Runs a test on a device once.
46 46
47 Args: 47 Args:
48 device: (DeviceUtils) device to run the tests on. 48 device: (DeviceUtils) device to run the tests on.
49 url: (str) URL to load. 49 url: (str) URL to load.
(...skipping 244 matching lines...) Expand 10 before | Expand all | Expand 10 after
294 'delay_to_launch_url': options.delay_to_launch_url, 294 'delay_to_launch_url': options.delay_to_launch_url,
295 'cold': options.cold, 295 'cold': options.cold,
296 } 296 }
297 LoopOnDevice(device, [config], options.output_file, options.wpr_archive, 297 LoopOnDevice(device, [config], options.output_file, options.wpr_archive,
298 options.record, options.network_condition, options.wpr_log, 298 options.record, options.network_condition, options.wpr_log,
299 once=options.once) 299 once=options.once)
300 300
301 301
302 if __name__ == '__main__': 302 if __name__ == '__main__':
303 main() 303 main()
OLDNEW
« no previous file with comments | « tools/android/customtabs_benchmark/res/values/strings.xml ('k') | tools/android/customtabs_benchmark/scripts/launch.sh » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698