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

Unified Diff: chrome/test/functional/perf.py

Issue 10874025: Use dummynet-based network simulation for Mac tests. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « DEPS ('k') | chrome/test/functional/webpagereplay.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/functional/perf.py
diff --git a/chrome/test/functional/perf.py b/chrome/test/functional/perf.py
index f4cbe4afff6177961b781e7ddeaf62f8bc7a6cfa..0850ccc31d528b0f2b6f6d377ca746ca55364da4 100755
--- a/chrome/test/functional/perf.py
+++ b/chrome/test/functional/perf.py
@@ -2275,9 +2275,9 @@ class PageCyclerReplay(object):
return FormatChromePath(cls._PATHS[key], **kwargs)
@classmethod
- def ReplayServer(cls, test_name):
+ def ReplayServer(cls, test_name, replay_options=None):
archive_path = cls.Path('archive', test_name=test_name)
- return webpagereplay.ReplayServer(archive_path)
+ return webpagereplay.ReplayServer(archive_path, replay_options)
class PageCyclerNetSimTest(BasePageCyclerTest):
@@ -2310,8 +2310,11 @@ class PageCyclerNetSimTest(BasePageCyclerTest):
test_name: name for archive (.wpr) and config (.js) files.
description: a string description for the test
"""
- with PageCyclerReplay.ReplayServer(test_name) as replay_server:
- if replay_server.is_record_mode:
+ replay_options = None
+ if self.IsMac():
Nirnimesh 2012/08/22 23:40:49 please add a comment here
+ replay_options = ('--no-admin-check', '--net', 'fios')
+ with PageCyclerReplay.ReplayServer(test_name, replay_options) as server:
+ if server.is_record_mode:
self._num_iterations = 1
super_self = super(PageCyclerNetSimTest, self)
super_self.RunPageCyclerTest(test_name, description)
« no previous file with comments | « DEPS ('k') | chrome/test/functional/webpagereplay.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698