summaryrefslogtreecommitdiffstats
path: root/chrome/test/functional/perf.py
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/test/functional/perf.py')
-rwxr-xr-xchrome/test/functional/perf.py35
1 files changed, 23 insertions, 12 deletions
diff --git a/chrome/test/functional/perf.py b/chrome/test/functional/perf.py
index f82c709..df8caad 100755
--- a/chrome/test/functional/perf.py
+++ b/chrome/test/functional/perf.py
@@ -2286,17 +2286,24 @@ class PageCyclerReplay(object):
'extension': 'src/tools/page_cycler/webpagereplay/extension',
}
- CHROME_FLAGS = webpagereplay.CHROME_FLAGS + [
- '--log-level=0',
- '--disable-background-networking',
- '--enable-experimental-extension-apis',
- '--enable-logging',
- '--enable-benchmarking',
- '--metrics-recording-only',
- '--activate-on-launch',
- '--no-first-run',
- '--no-proxy-server',
- ]
+ WEBPAGEREPLAY_HOST = '127.0.0.1'
+ WEBPAGEREPLAY_HTTP_PORT = 8080
+ WEBPAGEREPLAY_HTTPS_PORT = 8413
+
+ CHROME_FLAGS = webpagereplay.GetChromeFlags(
+ self.WEBPAGEREPLAY_HOST,
+ self.WEBPAGEREPLAY_HTTP_PORT,
+ self.WEBPAGEREPLAY_HTTPS_PORT) + [
+ '--log-level=0',
+ '--disable-background-networking',
+ '--enable-experimental-extension-apis',
+ '--enable-logging',
+ '--enable-benchmarking',
+ '--metrics-recording-only',
+ '--activate-on-launch',
+ '--no-first-run',
+ '--no-proxy-server',
+ ]
@classmethod
def Path(cls, key, **kwargs):
@@ -2305,7 +2312,11 @@ class PageCyclerReplay(object):
@classmethod
def ReplayServer(cls, test_name, replay_options=None):
archive_path = cls.Path('archive', test_name=test_name)
- return webpagereplay.ReplayServer(archive_path, replay_options)
+ return webpagereplay.ReplayServer(archive_path,
+ self.WEBPAGEREPLAY_HOST,
+ self.WEBPAGEREPLAY_HTTP_PORT,
+ self.WEBPAGEREPLAY_HTTPS_PORT,
+ replay_options)
class PageCyclerNetSimTest(BasePageCyclerTest):