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

Side by Side Diff: scripts/slave/recipes/android_webview_shell_tests.py

Issue 1560243002: [Android] Upstream resource_sizes function and use for WebView. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/build
Patch Set: Created 4 years, 11 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 2015 The Chromium Authors. All rights reserved. 1 # Copyright 2015 The Chromium 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 """ 5 """
6 Recipe for running SystemWebViewShell instrumentation layout tests using 6 Recipe for running SystemWebViewShell instrumentation layout tests using
7 system WebView. 7 system WebView.
8 """ 8 """
9 9
10 from recipe_engine.types import freeze 10 from recipe_engine.types import freeze
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
84 api.adb.list_devices() 84 api.adb.list_devices()
85 85
86 # Run the instrumentation tests from the package. 86 # Run the instrumentation tests from the package.
87 with api.step.defer_results(): 87 with api.step.defer_results():
88 for suite in INSTRUMENTATION_TESTS: 88 for suite in INSTRUMENTATION_TESTS:
89 run_instrumentation_test(api, suite) 89 run_instrumentation_test(api, suite)
90 90
91 api.chromium_android.logcat_dump() 91 api.chromium_android.logcat_dump()
92 api.chromium_android.stack_tool_steps() 92 api.chromium_android.stack_tool_steps()
93 api.chromium_android.test_report() 93 api.chromium_android.test_report()
94 api.chromium_android.resource_sizes(
95 apk_path=api.chromium_android.apk_path(WEBVIEW_APK),
96 so_path=api.path['checkout'].join(
97 'out', api.chromium.c.BUILD_CONFIG, 'system_webview_apk', 'libs',
98 'armeabi-v7a', 'libwebviewchromium.so'),
99 so_with_symbols_path=api.path['checkout'].join(
100 'out', api.chromium.c.BUILD_CONFIG, 'lib',
101 'libwebviewchromium.so'))
94 102
95 def run_instrumentation_test(api, suite): 103 def run_instrumentation_test(api, suite):
96 mock_test_results = { 104 mock_test_results = {
97 'per_iteration_data': [{'TestA': [{'status': 'SUCCESS'}]}, 105 'per_iteration_data': [{'TestA': [{'status': 'SUCCESS'}]},
98 {'TestB': [{'status': 'FAILURE'}]}] 106 {'TestB': [{'status': 'FAILURE'}]}]
99 } 107 }
100 try: 108 try:
101 json_results_file = api.json.output(add_json_log=False) 109 json_results_file = api.json.output(add_json_log=False)
102 api.chromium_android.run_instrumentation_suite( 110 api.chromium_android.run_instrumentation_suite(
103 suite['test'], 111 suite['test'],
(...skipping 19 matching lines...) Expand all
123 131
124 def GenTests(api): 132 def GenTests(api):
125 yield (api.test('basic') + 133 yield (api.test('basic') +
126 api.properties.scheduled()) 134 api.properties.scheduled())
127 135
128 yield ( 136 yield (
129 api.test('test_failure') + 137 api.test('test_failure') +
130 api.properties.scheduled() + 138 api.properties.scheduled() +
131 api.step_data( 139 api.step_data(
132 'Instrumentation test SystemWebViewShellLayoutTest', retcode=1)) 140 'Instrumentation test SystemWebViewShellLayoutTest', retcode=1))
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698