Index: chrome/test/functional/perf.py |
diff --git a/chrome/test/functional/perf.py b/chrome/test/functional/perf.py |
index f82c7090c03bc708124c02736668346823d5a312..df8caad320d9106d41f58daa51f6ea21b2d55c47 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): |