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

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

Issue 15979032: Android: renames pylib.constants.CHROME_DIR to DIR_SOURCE_ROOT. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 6 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/cmd_helper.py ('k') | build/android/pylib/device_stats_monitor.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 os 7 import os
8 8
9 9
10 CHROME_DIR = os.path.abspath(os.path.join(os.path.dirname(__file__), 10 DIR_SOURCE_ROOT = os.path.abspath(os.path.join(os.path.dirname(__file__),
11 os.pardir, os.pardir, os.pardir)) 11 os.pardir, os.pardir, os.pardir))
12 EMULATOR_SDK_ROOT = os.path.abspath(os.path.join(CHROME_DIR, os.pardir, 12 # TODO(bulach): remove this.
Paweł Hajdan Jr. 2013/06/04 19:01:11 This is totally fine for me for this CL. Before I
bulach 2013/06/05 19:11:24 as I said, the patch that removes it will come sho
13 CHROME_DIR = DIR_SOURCE_ROOT
14 EMULATOR_SDK_ROOT = os.path.abspath(os.path.join(DIR_SOURCE_ROOT, os.pardir,
13 os.pardir)) 15 os.pardir))
14 16
15 CHROME_PACKAGE = 'com.google.android.apps.chrome' 17 CHROME_PACKAGE = 'com.google.android.apps.chrome'
16 CHROME_ACTIVITY = 'com.google.android.apps.chrome.Main' 18 CHROME_ACTIVITY = 'com.google.android.apps.chrome.Main'
17 CHROME_DEVTOOLS_SOCKET = 'chrome_devtools_remote' 19 CHROME_DEVTOOLS_SOCKET = 'chrome_devtools_remote'
18 20
19 CHROME_TESTS_PACKAGE = 'com.google.android.apps.chrome.tests' 21 CHROME_TESTS_PACKAGE = 'com.google.android.apps.chrome.tests'
20 22
21 LEGACY_BROWSER_PACKAGE = 'com.google.android.browser' 23 LEGACY_BROWSER_PACKAGE = 'com.google.android.browser'
22 LEGACY_BROWSER_ACTIVITY = 'com.android.browser.BrowserActivity' 24 LEGACY_BROWSER_ACTIVITY = 'com.android.browser.BrowserActivity'
23 25
24 CONTENT_SHELL_PACKAGE = 'org.chromium.content_shell_apk' 26 CONTENT_SHELL_PACKAGE = 'org.chromium.content_shell_apk'
25 CONTENT_SHELL_ACTIVITY = 'org.chromium.content_shell_apk.ContentShellActivity' 27 CONTENT_SHELL_ACTIVITY = 'org.chromium.content_shell_apk.ContentShellActivity'
26 28
27 CHROME_SHELL_PACKAGE = 'org.chromium.chrome.browser.test' 29 CHROME_SHELL_PACKAGE = 'org.chromium.chrome.browser.test'
28 30
29 CHROMIUM_TEST_SHELL_PACKAGE = 'org.chromium.chrome.testshell' 31 CHROMIUM_TEST_SHELL_PACKAGE = 'org.chromium.chrome.testshell'
30 CHROMIUM_TEST_SHELL_ACTIVITY = ( 32 CHROMIUM_TEST_SHELL_ACTIVITY = (
31 'org.chromium.chrome.testshell.ChromiumTestShellActivity') 33 'org.chromium.chrome.testshell.ChromiumTestShellActivity')
32 CHROMIUM_TEST_SHELL_DEVTOOLS_SOCKET = 'chromium_testshell_devtools_remote' 34 CHROMIUM_TEST_SHELL_DEVTOOLS_SOCKET = 'chromium_testshell_devtools_remote'
33 CHROMIUM_TEST_SHELL_HOST_DRIVEN_DIR = os.path.join( 35 CHROMIUM_TEST_SHELL_HOST_DRIVEN_DIR = os.path.join(
34 CHROME_DIR, 'chrome', 'android') 36 DIR_SOURCE_ROOT, 'chrome', 'android')
35 37
36 GTEST_TEST_PACKAGE_NAME = 'org.chromium.native_test' 38 GTEST_TEST_PACKAGE_NAME = 'org.chromium.native_test'
37 GTEST_TEST_ACTIVITY_NAME = 'org.chromium.native_test.ChromeNativeTestActivity' 39 GTEST_TEST_ACTIVITY_NAME = 'org.chromium.native_test.ChromeNativeTestActivity'
38 GTEST_COMMAND_LINE_FILE = 'chrome-native-tests-command-line' 40 GTEST_COMMAND_LINE_FILE = 'chrome-native-tests-command-line'
39 41
40 BROWSERTEST_SUITE_NAME = 'content_browsertests' 42 BROWSERTEST_SUITE_NAME = 'content_browsertests'
41 BROWSERTEST_TEST_PACKAGE_NAME = 'org.chromium.content_browsertests_apk' 43 BROWSERTEST_TEST_PACKAGE_NAME = 'org.chromium.content_browsertests_apk'
42 BROWSERTEST_TEST_ACTIVITY_NAME = ( 44 BROWSERTEST_TEST_ACTIVITY_NAME = (
43 'org.chromium.content_browsertests_apk.ContentBrowserTestsActivity') 45 'org.chromium.content_browsertests_apk.ContentBrowserTestsActivity')
44 BROWSERTEST_COMMAND_LINE_FILE = 'content-browser-tests-command-line' 46 BROWSERTEST_COMMAND_LINE_FILE = 'content-browser-tests-command-line'
(...skipping 18 matching lines...) Expand all
63 TEST_EXECUTABLE_DIR = '/data/local/tmp' 65 TEST_EXECUTABLE_DIR = '/data/local/tmp'
64 # Directories for common java libraries for SDK build. 66 # Directories for common java libraries for SDK build.
65 # These constants are defined in build/android/ant/common.xml 67 # These constants are defined in build/android/ant/common.xml
66 SDK_BUILD_JAVALIB_DIR = 'lib.java' 68 SDK_BUILD_JAVALIB_DIR = 'lib.java'
67 SDK_BUILD_TEST_JAVALIB_DIR = 'test.lib.java' 69 SDK_BUILD_TEST_JAVALIB_DIR = 'test.lib.java'
68 SDK_BUILD_APKS_DIR = 'apks' 70 SDK_BUILD_APKS_DIR = 'apks'
69 71
70 # The directory on the device where perf test output gets saved to. 72 # The directory on the device where perf test output gets saved to.
71 DEVICE_PERF_OUTPUT_DIR = '/data/data/' + CHROME_PACKAGE + '/files' 73 DEVICE_PERF_OUTPUT_DIR = '/data/data/' + CHROME_PACKAGE + '/files'
72 74
73 SCREENSHOTS_DIR = os.path.join(CHROME_DIR, 'out_screenshots') 75 SCREENSHOTS_DIR = os.path.join(DIR_SOURCE_ROOT, 'out_screenshots')
74 76
75 ANDROID_SDK_VERSION = 17 77 ANDROID_SDK_VERSION = 17
76 ANDROID_SDK_ROOT = os.path.join(CHROME_DIR, 'third_party/android_tools/sdk') 78 ANDROID_SDK_ROOT = os.path.join(DIR_SOURCE_ROOT,
77 ANDROID_NDK_ROOT = os.path.join(CHROME_DIR, 'third_party/android_tools/ndk') 79 'third_party/android_tools/sdk')
80 ANDROID_NDK_ROOT = os.path.join(DIR_SOURCE_ROOT,
81 'third_party/android_tools/ndk')
78 82
79 UPSTREAM_FLAKINESS_SERVER = 'test-results.appspot.com' 83 UPSTREAM_FLAKINESS_SERVER = 'test-results.appspot.com'
OLDNEW
« no previous file with comments | « build/android/pylib/cmd_helper.py ('k') | build/android/pylib/device_stats_monitor.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698