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

Unified Diff: tools/telemetry/telemetry/page/page_runner_unittest.py

Issue 692973003: [Telemetry] Introduce RunState.SetUpBeforeRunPage and RunState.TearDownAfterRunPage. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Ready to land Created 6 years, 1 month 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 | « tools/telemetry/telemetry/page/page_runner.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/telemetry/telemetry/page/page_runner_unittest.py
diff --git a/tools/telemetry/telemetry/page/page_runner_unittest.py b/tools/telemetry/telemetry/page/page_runner_unittest.py
index 966c20949c29709f8d0f45761c9dd0c93e4a50e5..342e912e1fabd5a6fe7be0ac6cd14a97251f6d0f 100644
--- a/tools/telemetry/telemetry/page/page_runner_unittest.py
+++ b/tools/telemetry/telemetry/page/page_runner_unittest.py
@@ -687,9 +687,9 @@ class RunStateTest(unittest.TestCase):
# pylint: disable=W0212
def TestUseLiveSitesFlag(self, options, expected_wpr_mode):
with tempfile.NamedTemporaryFile() as f:
- run_state = page_runner._RunState(DummyTest())
+ run_state = page_runner._RunState(DummyTest(), options)
fake_network_controller = FakeNetworkController()
- run_state._PrepareWpr(options, fake_network_controller, f.name, None)
+ run_state._PrepareWpr(fake_network_controller, f.name, None)
self.assertEquals(fake_network_controller.wpr_mode, expected_wpr_mode)
self.assertEquals(fake_network_controller.archive_path, f.name)
« no previous file with comments | « tools/telemetry/telemetry/page/page_runner.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698