OLD | NEW |
1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
2 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | 2 # Copyright (c) 2012 The Chromium Authors. All rights reserved. |
3 # Use of this source code is governed by a BSD-style license that can be | 3 # Use of this source code is governed by a BSD-style license that can be |
4 # found in the LICENSE file. | 4 # found in the LICENSE file. |
5 | 5 |
6 """Basic pyauto performance tests. | 6 """Basic pyauto performance tests. |
7 | 7 |
8 For tests that need to be run for multiple iterations (e.g., so that average | 8 For tests that need to be run for multiple iterations (e.g., so that average |
9 and standard deviation values can be reported), the default number of iterations | 9 and standard deviation values can be reported), the default number of iterations |
10 run for each of these tests is specified by |_DEFAULT_NUM_ITERATIONS|. | 10 run for each of these tests is specified by |_DEFAULT_NUM_ITERATIONS|. |
(...skipping 2203 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2214 'page_sets': 'src/tools/page_cycler/webpagereplay/tests/{test_name}.js', | 2214 'page_sets': 'src/tools/page_cycler/webpagereplay/tests/{test_name}.js', |
2215 'start_page': 'src/tools/page_cycler/webpagereplay/start.html', | 2215 'start_page': 'src/tools/page_cycler/webpagereplay/start.html', |
2216 'extension': 'src/tools/page_cycler/webpagereplay/extension', | 2216 'extension': 'src/tools/page_cycler/webpagereplay/extension', |
2217 } | 2217 } |
2218 | 2218 |
2219 CHROME_FLAGS = webpagereplay.CHROME_FLAGS + [ | 2219 CHROME_FLAGS = webpagereplay.CHROME_FLAGS + [ |
2220 '--log-level=0', | 2220 '--log-level=0', |
2221 '--disable-background-networking', | 2221 '--disable-background-networking', |
2222 '--enable-experimental-extension-apis', | 2222 '--enable-experimental-extension-apis', |
2223 '--enable-logging', | 2223 '--enable-logging', |
2224 '--enable-stats-table', | |
2225 '--enable-benchmarking', | 2224 '--enable-benchmarking', |
2226 '--metrics-recording-only', | 2225 '--metrics-recording-only', |
2227 '--activate-on-launch', | 2226 '--activate-on-launch', |
2228 '--no-first-run', | 2227 '--no-first-run', |
2229 '--no-proxy-server', | 2228 '--no-proxy-server', |
2230 ] | 2229 ] |
2231 | 2230 |
2232 @classmethod | 2231 @classmethod |
2233 def Path(cls, key, **kwargs): | 2232 def Path(cls, key, **kwargs): |
2234 return FormatChromePath(cls._PATHS[key], **kwargs) | 2233 return FormatChromePath(cls._PATHS[key], **kwargs) |
(...skipping 377 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2612 """Identifies the port number to which the server is currently bound. | 2611 """Identifies the port number to which the server is currently bound. |
2613 | 2612 |
2614 Returns: | 2613 Returns: |
2615 The numeric port number to which the server is currently bound. | 2614 The numeric port number to which the server is currently bound. |
2616 """ | 2615 """ |
2617 return self._server.server_address[1] | 2616 return self._server.server_address[1] |
2618 | 2617 |
2619 | 2618 |
2620 if __name__ == '__main__': | 2619 if __name__ == '__main__': |
2621 pyauto_functional.Main() | 2620 pyauto_functional.Main() |
OLD | NEW |