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

Unified Diff: telemetry/telemetry/testing/browser_test_case.py

Issue 2250583004: [telemetry] Wire TsProxy through telemetry's network stack. (Closed) Base URL: https://github.com/catapult-project/catapult@master
Patch Set: CrOS fix? Created 4 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
Index: telemetry/telemetry/testing/browser_test_case.py
diff --git a/telemetry/telemetry/testing/browser_test_case.py b/telemetry/telemetry/testing/browser_test_case.py
index eb728804004036b1cb50a5dad0cf3eb3ce62e6d6..e29985d1511809dabc1bcff3ff14a2f00087b4e9 100644
--- a/telemetry/telemetry/testing/browser_test_case.py
+++ b/telemetry/telemetry/testing/browser_test_case.py
@@ -84,6 +84,8 @@ class BrowserTestCase(unittest.TestCase):
browser_to_create = browser_finder.FindBrowser(options)
if not browser_to_create:
raise Exception('No browser found, cannot continue test.')
+ cls._platform = browser_to_create.platform
+ cls._platform.network_controller.InitializeIfNeeded()
try:
current_browser = browser_to_create.Create(options)
@@ -92,7 +94,6 @@ class BrowserTestCase(unittest.TestCase):
cls.tearDownClass()
raise
cls._browser = current_browser
- cls._platform = current_browser.platform
cls._device = options.remote_platform_options.device
@classmethod

Powered by Google App Engine
This is Rietveld 408576698