media/webrtc/trunk/build/android/pylib/constants.py

Thu, 22 Jan 2015 13:21:57 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 22 Jan 2015 13:21:57 +0100
branch
TOR_BUG_9701
changeset 15
b8a032363ba2
permissions
-rw-r--r--

Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6

michael@0 1 # Copyright (c) 2012 The Chromium Authors. All rights reserved.
michael@0 2 # Use of this source code is governed by a BSD-style license that can be
michael@0 3 # found in the LICENSE file.
michael@0 4
michael@0 5 """Defines a set of constants shared by test runners and other scripts."""
michael@0 6
michael@0 7 import os
michael@0 8
michael@0 9
michael@0 10 CHROME_PACKAGE = 'com.google.android.apps.chrome'
michael@0 11 CHROME_ACTIVITY = 'com.google.android.apps.chrome.Main'
michael@0 12 CHROME_TESTS_PACKAGE = 'com.google.android.apps.chrome.tests'
michael@0 13 LEGACY_BROWSER_PACKAGE = 'com.google.android.browser'
michael@0 14 LEGACY_BROWSER_ACTIVITY = 'com.android.browser.BrowserActivity'
michael@0 15 CONTENT_SHELL_PACKAGE = "org.chromium.content_shell"
michael@0 16 CONTENT_SHELL_ACTIVITY = "org.chromium.content_shell.ContentShellActivity"
michael@0 17 CHROME_SHELL_PACKAGE = 'org.chromium.chrome.browser.test'
michael@0 18 CHROMIUM_TEST_SHELL_PACKAGE = 'org.chromium.chrome.testshell'
michael@0 19
michael@0 20 CHROME_DIR = os.path.abspath(os.path.join(os.path.dirname(__file__),
michael@0 21 '..', '..', '..'))
michael@0 22
michael@0 23 # Ports arrangement for various test servers used in Chrome for Android.
michael@0 24 # Lighttpd server will attempt to use 9000 as default port, if unavailable it
michael@0 25 # will find a free port from 8001 - 8999.
michael@0 26 LIGHTTPD_DEFAULT_PORT = 9000
michael@0 27 LIGHTTPD_RANDOM_PORT_FIRST = 8001
michael@0 28 LIGHTTPD_RANDOM_PORT_LAST = 8999
michael@0 29 TEST_SYNC_SERVER_PORT = 9031
michael@0 30
michael@0 31 # The net test server is started from 10000. Reserve 20000 ports for the all
michael@0 32 # test-server based tests should be enough for allocating different port for
michael@0 33 # individual test-server based test.
michael@0 34 TEST_SERVER_PORT_FIRST = 10000
michael@0 35 TEST_SERVER_PORT_LAST = 30000
michael@0 36 # A file to record next valid port of test server.
michael@0 37 TEST_SERVER_PORT_FILE = '/tmp/test_server_port'
michael@0 38 TEST_SERVER_PORT_LOCKFILE = '/tmp/test_server_port.lock'
michael@0 39
michael@0 40 TEST_EXECUTABLE_DIR = '/data/local/tmp'
michael@0 41 # Directories for common java libraries for SDK build.
michael@0 42 # These constants are defined in build/android/ant/common.xml
michael@0 43 SDK_BUILD_TEST_JAVALIB_DIR = 'test.lib.java'
michael@0 44 SDK_BUILD_APKS_DIR = 'apks'
michael@0 45
michael@0 46 # The directory on the device where perf test output gets saved to.
michael@0 47 DEVICE_PERF_OUTPUT_DIR = '/data/data/' + CHROME_PACKAGE + '/files'

mercurial