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

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

Issue 1841863002: Update monet. (Closed) Base URL: https://github.com/domokit/monet.git@master
Patch Set: Created 4 years, 8 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 | « build/android/pylib/base/base_setup.py ('k') | build/android/pylib/device/battery_utils.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 # TODO(jbudorick): Split these constants into coherent modules. 7 # TODO(jbudorick): Split these constants into coherent modules.
8 8
9 # pylint: disable=W0212 9 # pylint: disable=W0212
10 10
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 'com.google.android.apps.chrome.Main', 63 'com.google.android.apps.chrome.Main',
64 '/data/local/chrome-command-line', 64 '/data/local/chrome-command-line',
65 'chrome_devtools_remote', 65 'chrome_devtools_remote',
66 None), 66 None),
67 'chrome_work': PackageInfo( 67 'chrome_work': PackageInfo(
68 'com.chrome.work', 68 'com.chrome.work',
69 'com.google.android.apps.chrome.Main', 69 'com.google.android.apps.chrome.Main',
70 '/data/local/chrome-command-line', 70 '/data/local/chrome-command-line',
71 'chrome_devtools_remote', 71 'chrome_devtools_remote',
72 None), 72 None),
73 'chromium': PackageInfo(
74 'org.chromium.chrome',
75 'com.google.android.apps.chrome.Main',
76 '/data/local/chrome-command-line',
77 'chrome_devtools_remote',
78 None),
73 'legacy_browser': PackageInfo( 79 'legacy_browser': PackageInfo(
74 'com.google.android.browser', 80 'com.google.android.browser',
75 'com.android.browser.BrowserActivity', 81 'com.android.browser.BrowserActivity',
76 None, 82 None,
77 None, 83 None,
78 None), 84 None),
79 'chromecast_shell': PackageInfo( 85 'chromecast_shell': PackageInfo(
80 'com.google.android.apps.mediashell', 86 'com.google.android.apps.mediashell',
81 'com.google.android.apps.mediashell.MediaShellActivity', 87 'com.google.android.apps.mediashell.MediaShellActivity',
82 '/data/local/tmp/castshell-command-line', 88 '/data/local/tmp/castshell-command-line',
(...skipping 12 matching lines...) Expand all
95 'chrome_shell_devtools_remote', 101 'chrome_shell_devtools_remote',
96 'org.chromium.chrome.shell.tests'), 102 'org.chromium.chrome.shell.tests'),
97 'android_webview_shell': PackageInfo( 103 'android_webview_shell': PackageInfo(
98 'org.chromium.android_webview.shell', 104 'org.chromium.android_webview.shell',
99 'org.chromium.android_webview.shell.AwShellActivity', 105 'org.chromium.android_webview.shell.AwShellActivity',
100 '/data/local/tmp/android-webview-command-line', 106 '/data/local/tmp/android-webview-command-line',
101 None, 107 None,
102 'org.chromium.android_webview.test'), 108 'org.chromium.android_webview.test'),
103 'gtest': PackageInfo( 109 'gtest': PackageInfo(
104 'org.chromium.native_test', 110 'org.chromium.native_test',
105 'org.chromium.native_test.NativeTestActivity', 111 'org.chromium.native_test.NativeUnitTestActivity',
106 '/data/local/tmp/chrome-native-tests-command-line', 112 '/data/local/tmp/chrome-native-tests-command-line',
107 None, 113 None,
108 None), 114 None),
109 'components_browsertests': PackageInfo( 115 'components_browsertests': PackageInfo(
110 'org.chromium.components_browsertests_apk', 116 'org.chromium.components_browsertests_apk',
111 ('org.chromium.components_browsertests_apk' + 117 ('org.chromium.components_browsertests_apk' +
112 '.ComponentsBrowserTestsActivity'), 118 '.ComponentsBrowserTestsActivity'),
113 '/data/local/tmp/components-browser-tests-command-line', 119 '/data/local/tmp/chrome-native-tests-command-line',
114 None, 120 None,
115 None), 121 None),
116 'content_browsertests': PackageInfo( 122 'content_browsertests': PackageInfo(
117 'org.chromium.content_browsertests_apk', 123 'org.chromium.content_browsertests_apk',
118 'org.chromium.content_browsertests_apk.ContentBrowserTestsActivity', 124 'org.chromium.content_browsertests_apk.ContentBrowserTestsActivity',
119 '/data/local/tmp/content-browser-tests-command-line', 125 '/data/local/tmp/chrome-native-tests-command-line',
120 None, 126 None,
121 None), 127 None),
122 'chromedriver_webview_shell': PackageInfo( 128 'chromedriver_webview_shell': PackageInfo(
123 'org.chromium.chromedriver_webview_shell', 129 'org.chromium.chromedriver_webview_shell',
124 'org.chromium.chromedriver_webview_shell.Main', 130 'org.chromium.chromedriver_webview_shell.Main',
125 None, 131 None,
126 None, 132 None,
127 None), 133 None),
128 } 134 }
129 135
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
171 177
172 JELLY_BEAN = 16 178 JELLY_BEAN = 16
173 JELLY_BEAN_MR1 = 17 179 JELLY_BEAN_MR1 = 17
174 JELLY_BEAN_MR2 = 18 180 JELLY_BEAN_MR2 = 18
175 KITKAT = 19 181 KITKAT = 19
176 KITKAT_WATCH = 20 182 KITKAT_WATCH = 20
177 LOLLIPOP = 21 183 LOLLIPOP = 21
178 LOLLIPOP_MR1 = 22 184 LOLLIPOP_MR1 = 22
179 185
180 ANDROID_SDK_VERSION = ANDROID_SDK_VERSION_CODES.LOLLIPOP_MR1 186 ANDROID_SDK_VERSION = ANDROID_SDK_VERSION_CODES.LOLLIPOP_MR1
181 ANDROID_SDK_BUILD_TOOLS_VERSION = '22.0.0' 187 ANDROID_SDK_BUILD_TOOLS_VERSION = '23.0.1'
182 ANDROID_SDK_ROOT = os.path.join(DIR_SOURCE_ROOT, 188 ANDROID_SDK_ROOT = os.path.join(DIR_SOURCE_ROOT,
183 'third_party/android_tools/sdk') 189 'third_party/android_tools/sdk')
184 ANDROID_SDK_TOOLS = os.path.join(ANDROID_SDK_ROOT, 190 ANDROID_SDK_TOOLS = os.path.join(ANDROID_SDK_ROOT,
185 'build-tools', ANDROID_SDK_BUILD_TOOLS_VERSION) 191 'build-tools', ANDROID_SDK_BUILD_TOOLS_VERSION)
186 ANDROID_NDK_ROOT = os.path.join(DIR_SOURCE_ROOT, 192 ANDROID_NDK_ROOT = os.path.join(DIR_SOURCE_ROOT,
187 'third_party/android_tools/ndk') 193 'third_party/android_tools/ndk')
188 194
189 EMULATOR_SDK_ROOT = os.environ.get('ANDROID_EMULATOR_SDK_ROOT', 195 EMULATOR_SDK_ROOT = os.environ.get('ANDROID_EMULATOR_SDK_ROOT',
190 os.path.join(DIR_SOURCE_ROOT, 196 os.path.join(DIR_SOURCE_ROOT,
191 'android_emulator_sdk')) 197 'android_emulator_sdk'))
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
293 subprocess.call(['adb', 'version'], stdout=devnull, stderr=devnull) 299 subprocess.call(['adb', 'version'], stdout=devnull, stderr=devnull)
294 return 'adb' 300 return 'adb'
295 except OSError: 301 except OSError:
296 logging.debug('No adb found in $PATH, fallback to checked in binary.') 302 logging.debug('No adb found in $PATH, fallback to checked in binary.')
297 return os.path.join(ANDROID_SDK_ROOT, 'platform-tools', 'adb') 303 return os.path.join(ANDROID_SDK_ROOT, 'platform-tools', 'adb')
298 304
299 # Exit codes 305 # Exit codes
300 ERROR_EXIT_CODE = 1 306 ERROR_EXIT_CODE = 1
301 INFRA_EXIT_CODE = 87 307 INFRA_EXIT_CODE = 87
302 WARNING_EXIT_CODE = 88 308 WARNING_EXIT_CODE = 88
OLDNEW
« no previous file with comments | « build/android/pylib/base/base_setup.py ('k') | build/android/pylib/device/battery_utils.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698