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

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

Issue 25044004: android: Reimplement adb_profile_chrome in Python (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Nits picked. Created 7 years, 2 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/pylib/android_commands.py ('k') | 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 # 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 os 8 import os
9 import subprocess 9 import subprocess
10 import sys 10 import sys
(...skipping 25 matching lines...) Expand all
36 'com.google.android.apps.chrome.Main', 36 'com.google.android.apps.chrome.Main',
37 '/data/local/chrome-command-line', 37 '/data/local/chrome-command-line',
38 'chrome_devtools_remote', 38 'chrome_devtools_remote',
39 None), 39 None),
40 'chrome_stable': PackageInfo( 40 'chrome_stable': PackageInfo(
41 'com.android.chrome', 41 'com.android.chrome',
42 'com.google.android.apps.chrome.Main', 42 'com.google.android.apps.chrome.Main',
43 '/data/local/chrome-command-line', 43 '/data/local/chrome-command-line',
44 'chrome_devtools_remote', 44 'chrome_devtools_remote',
45 None), 45 None),
46 'chrome_dev': PackageInfo(
47 'com.google.android.apps.chrome_dev',
48 'com.google.android.apps.chrome.Main',
49 '/data/local/chrome-command-line',
50 'chrome_devtools_remote',
51 None),
46 'legacy_browser': PackageInfo( 52 'legacy_browser': PackageInfo(
47 'com.google.android.browser', 53 'com.google.android.browser',
48 'com.android.browser.BrowserActivity', 54 'com.android.browser.BrowserActivity',
49 None, 55 None,
50 None, 56 None,
51 None), 57 None),
52 'content_shell': PackageInfo( 58 'content_shell': PackageInfo(
53 'org.chromium.content_shell_apk', 59 'org.chromium.content_shell_apk',
54 'org.chromium.content_shell_apk.ContentShellActivity', 60 'org.chromium.content_shell_apk.ContentShellActivity',
55 '/data/local/tmp/content-shell-command-line', 61 '/data/local/tmp/content-shell-command-line',
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
152 except OSError: 158 except OSError:
153 print >> sys.stderr, 'No adb found in $PATH, fallback to checked in binary.' 159 print >> sys.stderr, 'No adb found in $PATH, fallback to checked in binary.'
154 return os.path.join(ANDROID_SDK_ROOT, 'platform-tools', 'adb') 160 return os.path.join(ANDROID_SDK_ROOT, 'platform-tools', 'adb')
155 161
156 162
157 ADB_PATH = _GetADBPath() 163 ADB_PATH = _GetADBPath()
158 164
159 # Exit codes 165 # Exit codes
160 ERROR_EXIT_CODE = 1 166 ERROR_EXIT_CODE = 1
161 WARNING_EXIT_CODE = 88 167 WARNING_EXIT_CODE = 88
OLDNEW
« no previous file with comments | « build/android/pylib/android_commands.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698