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

Unified Diff: tools/perf/measurements/page_cycler_unittest.py

Issue 350763005: [Telemetry] Power metric: subtract quiescent power draw from result (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix unit tests Created 6 years, 6 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 | « tools/perf/measurements/page_cycler.py ('k') | tools/perf/measurements/smoothness.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/perf/measurements/page_cycler_unittest.py
diff --git a/tools/perf/measurements/page_cycler_unittest.py b/tools/perf/measurements/page_cycler_unittest.py
index c285395a6ed42bd319d39f7e95618b9182c1c7f5..414ed273c48219b43290798cf1d9f1f33acc30c0 100644
--- a/tools/perf/measurements/page_cycler_unittest.py
+++ b/tools/perf/measurements/page_cycler_unittest.py
@@ -108,7 +108,9 @@ class PageCyclerUnitTest(unittest.TestCase):
real_memory_module = page_cycler.memory
try:
page_cycler.memory = mock_memory_module
- cycler.DidStartBrowser(FakeBrowser())
+ browser = FakeBrowser()
+ cycler.WillStartBrowser(browser)
+ cycler.DidStartBrowser(browser)
finally:
page_cycler.memory = real_memory_module
« no previous file with comments | « tools/perf/measurements/page_cycler.py ('k') | tools/perf/measurements/smoothness.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698