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

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/media/webrtc/trunk/build/android/pylib/constants.py	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,47 @@
     1.4 +# Copyright (c) 2012 The Chromium Authors. All rights reserved.
     1.5 +# Use of this source code is governed by a BSD-style license that can be
     1.6 +# found in the LICENSE file.
     1.7 +
     1.8 +"""Defines a set of constants shared by test runners and other scripts."""
     1.9 +
    1.10 +import os
    1.11 +
    1.12 +
    1.13 +CHROME_PACKAGE = 'com.google.android.apps.chrome'
    1.14 +CHROME_ACTIVITY = 'com.google.android.apps.chrome.Main'
    1.15 +CHROME_TESTS_PACKAGE = 'com.google.android.apps.chrome.tests'
    1.16 +LEGACY_BROWSER_PACKAGE = 'com.google.android.browser'
    1.17 +LEGACY_BROWSER_ACTIVITY = 'com.android.browser.BrowserActivity'
    1.18 +CONTENT_SHELL_PACKAGE = "org.chromium.content_shell"
    1.19 +CONTENT_SHELL_ACTIVITY = "org.chromium.content_shell.ContentShellActivity"
    1.20 +CHROME_SHELL_PACKAGE = 'org.chromium.chrome.browser.test'
    1.21 +CHROMIUM_TEST_SHELL_PACKAGE = 'org.chromium.chrome.testshell'
    1.22 +
    1.23 +CHROME_DIR = os.path.abspath(os.path.join(os.path.dirname(__file__),
    1.24 +                                          '..', '..', '..'))
    1.25 +
    1.26 +# Ports arrangement for various test servers used in Chrome for Android.
    1.27 +# Lighttpd server will attempt to use 9000 as default port, if unavailable it
    1.28 +# will find a free port from 8001 - 8999.
    1.29 +LIGHTTPD_DEFAULT_PORT = 9000
    1.30 +LIGHTTPD_RANDOM_PORT_FIRST = 8001
    1.31 +LIGHTTPD_RANDOM_PORT_LAST = 8999
    1.32 +TEST_SYNC_SERVER_PORT = 9031
    1.33 +
    1.34 +# The net test server is started from 10000. Reserve 20000 ports for the all
    1.35 +# test-server based tests should be enough for allocating different port for
    1.36 +# individual test-server based test.
    1.37 +TEST_SERVER_PORT_FIRST = 10000
    1.38 +TEST_SERVER_PORT_LAST = 30000
    1.39 +# A file to record next valid port of test server.
    1.40 +TEST_SERVER_PORT_FILE = '/tmp/test_server_port'
    1.41 +TEST_SERVER_PORT_LOCKFILE = '/tmp/test_server_port.lock'
    1.42 +
    1.43 +TEST_EXECUTABLE_DIR = '/data/local/tmp'
    1.44 +# Directories for common java libraries for SDK build.
    1.45 +# These constants are defined in build/android/ant/common.xml
    1.46 +SDK_BUILD_TEST_JAVALIB_DIR = 'test.lib.java'
    1.47 +SDK_BUILD_APKS_DIR = 'apks'
    1.48 +
    1.49 +# The directory on the device where perf test output gets saved to.
    1.50 +DEVICE_PERF_OUTPUT_DIR = '/data/data/' + CHROME_PACKAGE + '/files'

mercurial