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

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

Issue 26364002: [android] FlagChanger should only require root to set flags for Chrome. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix bug 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
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 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 'com.google.android.browser', 51 'com.google.android.browser',
52 'com.android.browser.BrowserActivity', 52 'com.android.browser.BrowserActivity',
53 None, 53 None,
54 None, 54 None,
55 None), 55 None),
56 'content_shell': PackageInfo( 56 'content_shell': PackageInfo(
57 'org.chromium.content_shell_apk', 57 'org.chromium.content_shell_apk',
58 'org.chromium.content_shell_apk.ContentShellActivity', 58 'org.chromium.content_shell_apk.ContentShellActivity',
59 '/data/local/tmp/content-shell-command-line', 59 '/data/local/tmp/content-shell-command-line',
60 None, 60 None,
61 None), 61 'org.chromium.content_shell_apk.tests'),
62 'chromium_test_shell': PackageInfo( 62 'chromium_test_shell': PackageInfo(
63 'org.chromium.chrome.testshell', 63 'org.chromium.chrome.testshell',
64 'org.chromium.chrome.testshell.ChromiumTestShellActivity', 64 'org.chromium.chrome.testshell.ChromiumTestShellActivity',
65 '/data/local/tmp/chromium-testshell-command-line', 65 '/data/local/tmp/chromium-testshell-command-line',
66 'chromium_testshell_devtools_remote', 66 'chromium_testshell_devtools_remote',
67 'org.chromium.chrome.testshell.tests'), 67 'org.chromium.chrome.testshell.tests'),
68 'android_webview_shell': PackageInfo(
69 'org.chromium.android_webview.shell',
70 'org.chromium.android_webview.shell.AwShellActivity',
71 None,
72 None,
73 'org.chromium.android_webview.test'),
68 'gtest': PackageInfo( 74 'gtest': PackageInfo(
69 'org.chromium.native_test', 75 'org.chromium.native_test',
70 'org.chromium.native_test.ChromeNativeTestActivity', 76 'org.chromium.native_test.ChromeNativeTestActivity',
71 '/data/local/tmp/chrome-native-tests-command-line', 77 '/data/local/tmp/chrome-native-tests-command-line',
72 None, 78 None,
73 None), 79 None),
74 'content_browsertests': PackageInfo( 80 'content_browsertests': PackageInfo(
75 'org.chromium.content_browsertests_apk', 81 'org.chromium.content_browsertests_apk',
76 'org.chromium.content_browsertests_apk.ContentBrowserTestsActivity', 82 'org.chromium.content_browsertests_apk.ContentBrowserTestsActivity',
77 '/data/local/tmp/content-browser-tests-command-line', 83 '/data/local/tmp/content-browser-tests-command-line',
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
158 except OSError: 164 except OSError:
159 print >> sys.stderr, 'No adb found in $PATH, fallback to checked in binary.' 165 print >> sys.stderr, 'No adb found in $PATH, fallback to checked in binary.'
160 return os.path.join(ANDROID_SDK_ROOT, 'platform-tools', 'adb') 166 return os.path.join(ANDROID_SDK_ROOT, 'platform-tools', 'adb')
161 167
162 168
163 ADB_PATH = _GetADBPath() 169 ADB_PATH = _GetADBPath()
164 170
165 # Exit codes 171 # Exit codes
166 ERROR_EXIT_CODE = 1 172 ERROR_EXIT_CODE = 1
167 WARNING_EXIT_CODE = 88 173 WARNING_EXIT_CODE = 88
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698