Wed, 31 Dec 2014 06:09:35 +0100
Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.
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
3 # found in the LICENSE file.
5 """Defines a set of constants shared by test runners and other scripts."""
7 import os
10 CHROME_PACKAGE = 'com.google.android.apps.chrome'
11 CHROME_ACTIVITY = 'com.google.android.apps.chrome.Main'
12 CHROME_TESTS_PACKAGE = 'com.google.android.apps.chrome.tests'
13 LEGACY_BROWSER_PACKAGE = 'com.google.android.browser'
14 LEGACY_BROWSER_ACTIVITY = 'com.android.browser.BrowserActivity'
15 CONTENT_SHELL_PACKAGE = "org.chromium.content_shell"
16 CONTENT_SHELL_ACTIVITY = "org.chromium.content_shell.ContentShellActivity"
17 CHROME_SHELL_PACKAGE = 'org.chromium.chrome.browser.test'
18 CHROMIUM_TEST_SHELL_PACKAGE = 'org.chromium.chrome.testshell'
20 CHROME_DIR = os.path.abspath(os.path.join(os.path.dirname(__file__),
21 '..', '..', '..'))
23 # Ports arrangement for various test servers used in Chrome for Android.
24 # Lighttpd server will attempt to use 9000 as default port, if unavailable it
25 # will find a free port from 8001 - 8999.
26 LIGHTTPD_DEFAULT_PORT = 9000
27 LIGHTTPD_RANDOM_PORT_FIRST = 8001
28 LIGHTTPD_RANDOM_PORT_LAST = 8999
29 TEST_SYNC_SERVER_PORT = 9031
31 # The net test server is started from 10000. Reserve 20000 ports for the all
32 # test-server based tests should be enough for allocating different port for
33 # individual test-server based test.
34 TEST_SERVER_PORT_FIRST = 10000
35 TEST_SERVER_PORT_LAST = 30000
36 # A file to record next valid port of test server.
37 TEST_SERVER_PORT_FILE = '/tmp/test_server_port'
38 TEST_SERVER_PORT_LOCKFILE = '/tmp/test_server_port.lock'
40 TEST_EXECUTABLE_DIR = '/data/local/tmp'
41 # Directories for common java libraries for SDK build.
42 # These constants are defined in build/android/ant/common.xml
43 SDK_BUILD_TEST_JAVALIB_DIR = 'test.lib.java'
44 SDK_BUILD_APKS_DIR = 'apks'
46 # The directory on the device where perf test output gets saved to.
47 DEVICE_PERF_OUTPUT_DIR = '/data/data/' + CHROME_PACKAGE + '/files'