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

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

Issue 10885005: Upstream chrome_test_server_spawner.py for Android. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 3 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 os 7 import os
8 8
9 9
10 CHROME_PACKAGE = 'com.google.android.apps.chrome' 10 CHROME_PACKAGE = 'com.google.android.apps.chrome'
11 CHROME_ACTIVITY = 'com.google.android.apps.chrome.Main' 11 CHROME_ACTIVITY = 'com.google.android.apps.chrome.Main'
12 CHROME_TESTS_PACKAGE = 'com.google.android.apps.chrome.tests' 12 CHROME_TESTS_PACKAGE = 'com.google.android.apps.chrome.tests'
13 LEGACY_BROWSER_PACKAGE = 'com.google.android.browser' 13 LEGACY_BROWSER_PACKAGE = 'com.google.android.browser'
14 LEGACY_BROWSER_ACTIVITY = 'com.android.browser.BrowserActivity' 14 LEGACY_BROWSER_ACTIVITY = 'com.android.browser.BrowserActivity'
15 CONTENT_SHELL_PACKAGE = "org.chromium.content_shell" 15 CONTENT_SHELL_PACKAGE = "org.chromium.content_shell"
16 CONTENT_SHELL_ACTIVITY = "org.chromium.content_shell.ContentShellActivity" 16 CONTENT_SHELL_ACTIVITY = "org.chromium.content_shell.ContentShellActivity"
17 CHROME_SHELL_PACKAGE = 'org.chromium.chrome.browser.test' 17 CHROME_SHELL_PACKAGE = 'org.chromium.chrome.browser.test'
18 18
19 CHROME_DIR = os.path.abspath(os.path.join(os.path.dirname(__file__), 19 CHROME_DIR = os.path.abspath(os.path.join(os.path.dirname(__file__),
20 '..', '..', '..')) 20 '..', '..', '..'))
21 21
22 # Ports arrangement for various test servers used in Clank. 22 # Ports arrangement for various test servers used in Chrome for Android.
23 # Lighttpd server will attempt to use 9000 as default port, if unavailable it 23 # Lighttpd server will attempt to use 9000 as default port, if unavailable it
24 # will find a free port from 8001 - 8999. 24 # will find a free port from 8001 - 8999.
25 LIGHTTPD_DEFAULT_PORT = 9000 25 LIGHTTPD_DEFAULT_PORT = 9000
26 LIGHTTPD_RANDOM_PORT_FIRST = 8001 26 LIGHTTPD_RANDOM_PORT_FIRST = 8001
27 LIGHTTPD_RANDOM_PORT_LAST = 8999 27 LIGHTTPD_RANDOM_PORT_LAST = 8999
28 TEST_SYNC_SERVER_PORT = 9031 28 TEST_SYNC_SERVER_PORT = 9031
29 29
30 # The net test server is started from 10000. Reserve 20000 ports for the all 30 # The net test server is started from 10000. Reserve 20000 ports for the all
31 # test-server based tests should be enough for allocating different port for 31 # test-server based tests should be enough for allocating different port for
32 # individual test-server based test. 32 # individual test-server based test.
33 TEST_SERVER_PORT_FIRST = 10000 33 TEST_SERVER_PORT_FIRST = 10000
34 TEST_SERVER_PORT_LAST = 30000 34 TEST_SERVER_PORT_LAST = 30000
35 # A file to record next valid port of test server. 35 # A file to record next valid port of test server.
36 TEST_SERVER_PORT_FILE = '/tmp/test_server_port' 36 TEST_SERVER_PORT_FILE = '/tmp/test_server_port'
37 TEST_SERVER_PORT_LOCKFILE = '/tmp/test_server_port.lock' 37 TEST_SERVER_PORT_LOCKFILE = '/tmp/test_server_port.lock'
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698