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

Side by Side Diff: chrome/test/functional/media/media_test_env_names.py

Issue 7031020: Change for preparation for reference-build on perfbot (media) (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Minor comment change. Created 9 years, 7 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 #!/usr/bin/python 1 #!/usr/bin/python
2 2
3 # Copyright (c) 2011 The Chromium Authors. All rights reserved. 3 # Copyright (c) 2011 The Chromium Authors. All rights reserved.
4 # Use of this source code is governed by a BSD-style license that can be 4 # Use of this source code is governed by a BSD-style license that can be
5 # found in the LICENSE file. 5 # found in the LICENSE file.
6 6
7 7
8 class MediaTestEnvNames: 8 class MediaTestEnvNames:
9 """Class that contains all environment names used in media tests. 9 """Class that contains all environment names used in media tests.
10 10
11 Since PyAuto does not support commandline arguments, we have to rely on 11 Since PyAuto does not support commandline arguments, we have to rely on
12 environment variables. The following are the names of the environment 12 environment variables. The following are the names of the environment
13 variables that are used in chrome/src/test/functional/media_test_runner.py 13 variables that are used in chrome/src/test/functional/media_test_runner.py
14 and media tests (subclasses of MediaTestBase in 14 and media tests (subclasses of MediaTestBase in
15 chrome/src/test/functional/media_test_base.py) 15 chrome/src/test/functional/media_test_base.py)
16 """ 16 """
17 # PLAYER_HTML is a HTML file that contains media tag and other 17 # PLAYER_HTML is a HTML file that contains media tag and other
18 # JavaScript code for running the test. 18 # JavaScript code for running the test.
19 # Use this to indicate its URL. 19 # Use this to indicate its URL.
20 PLAYER_HTML_URL_ENV_NAME = 'PLAYER_HTML_URL' 20 PLAYER_HTML_URL_ENV_NAME = 'PLAYER_HTML_URL'
21 21
22 # Display the result output in compact form (e.g., "local", "remote"). 22 # Display the result output in compact form (e.g., "local", "remote").
23 PLAYER_HTML_URL_NICKNAME_ENV_NAME = 'PLAYER_HTML_URL_NICKNAME' 23 PLAYER_HTML_URL_NICKNAME_ENV_NAME = 'PLAYER_HTML_URL_NICKNAME'
24 24
25 # Use this when you want to add extra information in the result output. 25 # Use this when you want to add extra information in the result output.
26 EXTRA_NICKNAME_ENV_NAME = 'EXTRA_NICKNAME' 26 EXTRA_NICKNAME_ENV_NAME = 'EXTRA_NICKNAME'
27 27
28 # Use this when you do not want to report the first result output. 28 # Define this environment varialbe when you do not want to report
dennis_jeffrey 2011/05/20 21:31:43 varialbe --> variable
imasaki1 2011/05/20 22:07:17 Done.
29 # First result includes time to start up the browser. 29 # the first result output. First result includes time to start up the browser.
30 REMOVE_FIRST_RESULT_ENV_NAME = 'REMOVE_FIRST_RESULT' 30 REMOVE_FIRST_RESULT_ENV_NAME = 'REMOVE_FIRST_RESULT'
31 31
32 # Add t=Data() parameter in query string to disable media cache. 32 # Add t=Data() parameter in query string to disable media cache
33 # if this environment is defined.
33 ADD_T_PARAMETER_ENV_NAME = 'ADD_T_PARAMETER' 34 ADD_T_PARAMETER_ENV_NAME = 'ADD_T_PARAMETER'
34 35
35 # Print out only playback time information. 36 # Print out only playback time information.
36 PRINT_ONLY_TIME_ENV_NAME = 'PRINT_ONLY_TIME' 37 PRINT_ONLY_TIME_ENV_NAME = 'PRINT_ONLY_TIME'
37 38
38 # Define the number of tries. 39 # Define the number of tries.
39 N_RUNS_ENV_NAME = 'N_RUNS' 40 N_RUNS_ENV_NAME = 'N_RUNS'
40 41
41 # Define the tag name in HTML (either video or audio). 42 # Define the tag name in HTML (either video or audio).
42 MEDIA_TAG_ENV_NAME = 'HTML_TAG' 43 MEDIA_TAG_ENV_NAME = 'HTML_TAG'
43 44
44 # Define the media file name. 45 # Define the media file name.
45 MEDIA_FILENAME_ENV_NAME = 'MEDIA_FILENAME' 46 MEDIA_FILENAME_ENV_NAME = 'MEDIA_FILENAME'
46 47
47 # Define the media file nickname that is used for display. 48 # Define the media file nickname that is used for display.
48 MEDIA_FILENAME_NICKNAME_ENV_NAME = 'MEDIA_FILENAME_NICKNAME' 49 MEDIA_FILENAME_NICKNAME_ENV_NAME = 'MEDIA_FILENAME_NICKNAME'
49 50
50 # Define the interval for the measurement. 51 # Define the interval for the measurement.
51 MEASURE_INTERVAL_ENV_NAME = 'MEASURE_INTERVALS' 52 MEASURE_INTERVAL_ENV_NAME = 'MEASURE_INTERVALS'
52 53
53 # Define the test scenario file, which contains all operations during tests. 54 # Define the test scenario file, which contains all operations during tests.
54 TEST_SCENARIO_FILE_ENV_NAME = 'TEST_SCENARIO_FILE' 55 TEST_SCENARIO_FILE_ENV_NAME = 'TEST_SCENARIO_FILE'
55 56
56 # Define the test scenario, which contains operations during tests. 57 # Define the test scenario, which contains operations during tests.
57 TEST_SCENARIO_ENV_NAME = 'TEST_SCENARIO' 58 TEST_SCENARIO_ENV_NAME = 'TEST_SCENARIO'
59
60 # Define this environment variable if we want to run test using binaries of
61 # reference build, and not defined otherwise.
dennis_jeffrey 2011/05/20 21:31:43 and not defined otherwise --> otherwise do not def
imasaki1 2011/05/20 22:07:17 Done.
62 REFERENCE_BUILD_ENV_NAME = 'REFERENCE_BUILD'
63
64 # Define the path to the directory that contains binaries of reference build.
65 REFERENCE_BUILD_DIR_ENV_NAME = 'REFERENCE_BUILD_DIR'
OLDNEW
« no previous file with comments | « chrome/test/functional/media/media_test_base.py ('k') | chrome/test/functional/media/media_test_runner.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698