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 import subprocess | 8 import subprocess |
9 import sys | 9 import sys |
10 | 10 |
(...skipping 22 matching lines...) Expand all Loading... |
33 CHROMIUM_TEST_SHELL_ACTIVITY = ( | 33 CHROMIUM_TEST_SHELL_ACTIVITY = ( |
34 'org.chromium.chrome.testshell.ChromiumTestShellActivity') | 34 'org.chromium.chrome.testshell.ChromiumTestShellActivity') |
35 CHROMIUM_TEST_SHELL_DEVTOOLS_SOCKET = 'chromium_testshell_devtools_remote' | 35 CHROMIUM_TEST_SHELL_DEVTOOLS_SOCKET = 'chromium_testshell_devtools_remote' |
36 CHROMIUM_TEST_SHELL_HOST_DRIVEN_DIR = os.path.join( | 36 CHROMIUM_TEST_SHELL_HOST_DRIVEN_DIR = os.path.join( |
37 DIR_SOURCE_ROOT, 'chrome', 'android') | 37 DIR_SOURCE_ROOT, 'chrome', 'android') |
38 | 38 |
39 GTEST_TEST_PACKAGE_NAME = 'org.chromium.native_test' | 39 GTEST_TEST_PACKAGE_NAME = 'org.chromium.native_test' |
40 GTEST_TEST_ACTIVITY_NAME = 'org.chromium.native_test.ChromeNativeTestActivity' | 40 GTEST_TEST_ACTIVITY_NAME = 'org.chromium.native_test.ChromeNativeTestActivity' |
41 GTEST_COMMAND_LINE_FILE = 'chrome-native-tests-command-line' | 41 GTEST_COMMAND_LINE_FILE = 'chrome-native-tests-command-line' |
42 | 42 |
43 BROWSERTEST_SUITE_NAME = 'content_browsertests' | |
44 BROWSERTEST_TEST_PACKAGE_NAME = 'org.chromium.content_browsertests_apk' | 43 BROWSERTEST_TEST_PACKAGE_NAME = 'org.chromium.content_browsertests_apk' |
45 BROWSERTEST_TEST_ACTIVITY_NAME = ( | 44 BROWSERTEST_TEST_ACTIVITY_NAME = ( |
46 'org.chromium.content_browsertests_apk.ContentBrowserTestsActivity') | 45 'org.chromium.content_browsertests_apk.ContentBrowserTestsActivity') |
47 BROWSERTEST_COMMAND_LINE_FILE = 'content-browser-tests-command-line' | 46 BROWSERTEST_COMMAND_LINE_FILE = 'content-browser-tests-command-line' |
48 | 47 |
49 # Ports arrangement for various test servers used in Chrome for Android. | 48 # Ports arrangement for various test servers used in Chrome for Android. |
50 # Lighttpd server will attempt to use 9000 as default port, if unavailable it | 49 # Lighttpd server will attempt to use 9000 as default port, if unavailable it |
51 # will find a free port from 8001 - 8999. | 50 # will find a free port from 8001 - 8999. |
52 LIGHTTPD_DEFAULT_PORT = 9000 | 51 LIGHTTPD_DEFAULT_PORT = 9000 |
53 LIGHTTPD_RANDOM_PORT_FIRST = 8001 | 52 LIGHTTPD_RANDOM_PORT_FIRST = 8001 |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
96 except OSError: | 95 except OSError: |
97 print >> sys.stderr, 'No adb found in $PATH, fallback to checked in binary.' | 96 print >> sys.stderr, 'No adb found in $PATH, fallback to checked in binary.' |
98 return os.path.join(ANDROID_SDK_ROOT, 'platform-tools', 'adb') | 97 return os.path.join(ANDROID_SDK_ROOT, 'platform-tools', 'adb') |
99 | 98 |
100 | 99 |
101 ADB_PATH = _GetADBPath() | 100 ADB_PATH = _GetADBPath() |
102 | 101 |
103 # Exit codes | 102 # Exit codes |
104 ERROR_EXIT_CODE = 1 | 103 ERROR_EXIT_CODE = 1 |
105 WARNING_EXIT_CODE = 88 | 104 WARNING_EXIT_CODE = 88 |
OLD | NEW |