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

Side by Side Diff: build/android/pylib/constants.py

Issue 189133005: Rename chromium_testshell target to chrome_shell_apk. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 6 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 | Annotate | Revision Log
« no previous file with comments | « build/android/lint/suppressions.xml ('k') | build/android/pylib/utils/report_results.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 # Copyright (c) 2012 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 """Defines a set of constants shared by test runners and other scripts.""" 5 """Defines a set of constants shared by test runners and other scripts."""
6 6
7 import collections 7 import collections
8 import logging 8 import logging
9 import os 9 import os
10 import subprocess 10 import subprocess
11 import sys 11 import sys
12 12
13 13
14 DIR_SOURCE_ROOT = os.path.abspath(os.path.join(os.path.dirname(__file__), 14 DIR_SOURCE_ROOT = os.path.abspath(os.path.join(os.path.dirname(__file__),
15 os.pardir, os.pardir, os.pardir)) 15 os.pardir, os.pardir, os.pardir))
16 ISOLATE_DEPS_DIR = os.path.join(DIR_SOURCE_ROOT, 'isolate_deps_dir') 16 ISOLATE_DEPS_DIR = os.path.join(DIR_SOURCE_ROOT, 'isolate_deps_dir')
17 17
18 CHROMIUM_TEST_SHELL_HOST_DRIVEN_DIR = os.path.join( 18 CHROME_SHELL_HOST_DRIVEN_DIR = os.path.join(
19 DIR_SOURCE_ROOT, 'chrome', 'android') 19 DIR_SOURCE_ROOT, 'chrome', 'android')
20 20
21 21
22 PackageInfo = collections.namedtuple('PackageInfo', 22 PackageInfo = collections.namedtuple('PackageInfo',
23 ['package', 'activity', 'cmdline_file', 'devtools_socket', 23 ['package', 'activity', 'cmdline_file', 'devtools_socket',
24 'test_package']) 24 'test_package'])
25 25
26 PACKAGE_INFO = { 26 PACKAGE_INFO = {
27 'chrome': PackageInfo( 27 'chrome': PackageInfo(
28 'com.google.android.apps.chrome', 28 'com.google.android.apps.chrome',
(...skipping 24 matching lines...) Expand all
53 'com.android.browser.BrowserActivity', 53 'com.android.browser.BrowserActivity',
54 None, 54 None,
55 None, 55 None,
56 None), 56 None),
57 'content_shell': PackageInfo( 57 'content_shell': PackageInfo(
58 'org.chromium.content_shell_apk', 58 'org.chromium.content_shell_apk',
59 'org.chromium.content_shell_apk.ContentShellActivity', 59 'org.chromium.content_shell_apk.ContentShellActivity',
60 '/data/local/tmp/content-shell-command-line', 60 '/data/local/tmp/content-shell-command-line',
61 None, 61 None,
62 'org.chromium.content_shell_apk.tests'), 62 'org.chromium.content_shell_apk.tests'),
63 'chromium_test_shell': PackageInfo( 63 'chrome_shell': PackageInfo(
64 'org.chromium.chrome.shell', 64 'org.chromium.chrome.shell',
65 'org.chromium.chrome.shell.ChromeShellActivity', 65 'org.chromium.chrome.shell.ChromeShellActivity',
66 '/data/local/tmp/chromium-testshell-command-line', 66 '/data/local/tmp/chrome-shell-command-line',
67 'chromium_testshell_devtools_remote', 67 'chrome_shell_devtools_remote',
68 'org.chromium.chrome.shell.tests'), 68 'org.chromium.chrome.shell.tests'),
69 'android_webview_shell': PackageInfo( 69 'android_webview_shell': PackageInfo(
70 'org.chromium.android_webview.shell', 70 'org.chromium.android_webview.shell',
71 'org.chromium.android_webview.shell.AwShellActivity', 71 'org.chromium.android_webview.shell.AwShellActivity',
72 None, 72 None,
73 None, 73 None,
74 'org.chromium.android_webview.test'), 74 'org.chromium.android_webview.test'),
75 'gtest': PackageInfo( 75 'gtest': PackageInfo(
76 'org.chromium.native_test', 76 'org.chromium.native_test',
77 'org.chromium.native_test.ChromeNativeTestActivity', 77 'org.chromium.native_test.ChromeNativeTestActivity',
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
189 subprocess.call(['adb', 'version'], stdout=devnull, stderr=devnull) 189 subprocess.call(['adb', 'version'], stdout=devnull, stderr=devnull)
190 return 'adb' 190 return 'adb'
191 except OSError: 191 except OSError:
192 logging.debug('No adb found in $PATH, fallback to checked in binary.') 192 logging.debug('No adb found in $PATH, fallback to checked in binary.')
193 return os.path.join(ANDROID_SDK_ROOT, 'platform-tools', 'adb') 193 return os.path.join(ANDROID_SDK_ROOT, 'platform-tools', 'adb')
194 194
195 195
196 # Exit codes 196 # Exit codes
197 ERROR_EXIT_CODE = 1 197 ERROR_EXIT_CODE = 1
198 WARNING_EXIT_CODE = 88 198 WARNING_EXIT_CODE = 88
OLDNEW
« no previous file with comments | « build/android/lint/suppressions.xml ('k') | build/android/pylib/utils/report_results.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698