| OLD | NEW |
| 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__), |
| 11 os.pardir, os.pardir, os.pardir)) |
| 12 |
| 10 CHROME_PACKAGE = 'com.google.android.apps.chrome' | 13 CHROME_PACKAGE = 'com.google.android.apps.chrome' |
| 11 CHROME_ACTIVITY = 'com.google.android.apps.chrome.Main' | 14 CHROME_ACTIVITY = 'com.google.android.apps.chrome.Main' |
| 12 CHROME_DEVTOOLS_SOCKET = 'chrome_devtools_remote' | 15 CHROME_DEVTOOLS_SOCKET = 'chrome_devtools_remote' |
| 13 | 16 |
| 14 CHROME_TESTS_PACKAGE = 'com.google.android.apps.chrome.tests' | 17 CHROME_TESTS_PACKAGE = 'com.google.android.apps.chrome.tests' |
| 15 | 18 |
| 16 LEGACY_BROWSER_PACKAGE = 'com.google.android.browser' | 19 LEGACY_BROWSER_PACKAGE = 'com.google.android.browser' |
| 17 LEGACY_BROWSER_ACTIVITY = 'com.android.browser.BrowserActivity' | 20 LEGACY_BROWSER_ACTIVITY = 'com.android.browser.BrowserActivity' |
| 18 | 21 |
| 19 CONTENT_SHELL_PACKAGE = 'org.chromium.content_shell_apk' | 22 CONTENT_SHELL_PACKAGE = 'org.chromium.content_shell_apk' |
| 20 CONTENT_SHELL_ACTIVITY = 'org.chromium.content_shell_apk.ContentShellActivity' | 23 CONTENT_SHELL_ACTIVITY = 'org.chromium.content_shell_apk.ContentShellActivity' |
| 21 | 24 |
| 22 CHROME_SHELL_PACKAGE = 'org.chromium.chrome.browser.test' | 25 CHROME_SHELL_PACKAGE = 'org.chromium.chrome.browser.test' |
| 23 | 26 |
| 24 CHROMIUM_TEST_SHELL_PACKAGE = 'org.chromium.chrome.testshell' | 27 CHROMIUM_TEST_SHELL_PACKAGE = 'org.chromium.chrome.testshell' |
| 25 CHROMIUM_TEST_SHELL_ACTIVITY = ( | 28 CHROMIUM_TEST_SHELL_ACTIVITY = ( |
| 26 'org.chromium.chrome.testshell.ChromiumTestShellActivity') | 29 'org.chromium.chrome.testshell.ChromiumTestShellActivity') |
| 27 CHROMIUM_TEST_SHELL_DEVTOOLS_SOCKET = 'chromium_testshell_devtools_remote' | 30 CHROMIUM_TEST_SHELL_DEVTOOLS_SOCKET = 'chromium_testshell_devtools_remote' |
| 28 | 31 CHROMIUM_TEST_SHELL_HOST_DRIVEN_DIR = os.path.join( |
| 29 CHROME_DIR = os.path.abspath(os.path.join(os.path.dirname(__file__), | 32 CHROME_DIR, 'chrome', 'android') |
| 30 '..', '..', '..')) | |
| 31 | 33 |
| 32 # Ports arrangement for various test servers used in Chrome for Android. | 34 # Ports arrangement for various test servers used in Chrome for Android. |
| 33 # Lighttpd server will attempt to use 9000 as default port, if unavailable it | 35 # Lighttpd server will attempt to use 9000 as default port, if unavailable it |
| 34 # will find a free port from 8001 - 8999. | 36 # will find a free port from 8001 - 8999. |
| 35 LIGHTTPD_DEFAULT_PORT = 9000 | 37 LIGHTTPD_DEFAULT_PORT = 9000 |
| 36 LIGHTTPD_RANDOM_PORT_FIRST = 8001 | 38 LIGHTTPD_RANDOM_PORT_FIRST = 8001 |
| 37 LIGHTTPD_RANDOM_PORT_LAST = 8999 | 39 LIGHTTPD_RANDOM_PORT_LAST = 8999 |
| 38 TEST_SYNC_SERVER_PORT = 9031 | 40 TEST_SYNC_SERVER_PORT = 9031 |
| 39 | 41 |
| 40 # The net test server is started from 10000. Reserve 20000 ports for the all | 42 # The net test server is started from 10000. Reserve 20000 ports for the all |
| (...skipping 14 matching lines...) Expand all Loading... |
| 55 # The directory on the device where perf test output gets saved to. | 57 # The directory on the device where perf test output gets saved to. |
| 56 DEVICE_PERF_OUTPUT_DIR = '/data/data/' + CHROME_PACKAGE + '/files' | 58 DEVICE_PERF_OUTPUT_DIR = '/data/data/' + CHROME_PACKAGE + '/files' |
| 57 | 59 |
| 58 SCREENSHOTS_DIR = os.path.join(CHROME_DIR, 'out_screenshots') | 60 SCREENSHOTS_DIR = os.path.join(CHROME_DIR, 'out_screenshots') |
| 59 | 61 |
| 60 ANDROID_SDK_VERSION = 17 | 62 ANDROID_SDK_VERSION = 17 |
| 61 ANDROID_SDK_ROOT = os.path.join(CHROME_DIR, 'third_party/android_tools/sdk') | 63 ANDROID_SDK_ROOT = os.path.join(CHROME_DIR, 'third_party/android_tools/sdk') |
| 62 ANDROID_NDK_ROOT = os.path.join(CHROME_DIR, 'third_party/android_tools/ndk') | 64 ANDROID_NDK_ROOT = os.path.join(CHROME_DIR, 'third_party/android_tools/ndk') |
| 63 | 65 |
| 64 UPSTREAM_FLAKINESS_SERVER = 'test-results.appspot.com' | 66 UPSTREAM_FLAKINESS_SERVER = 'test-results.appspot.com' |
| OLD | NEW |