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

Unified Diff: tools/telemetry/telemetry/core/platform/__init__.py

Issue 656303003: Telemetry: Move Web Page Replay to the platform. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Update --use-live-sites tests to not use private browser property. Created 6 years, 2 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: tools/telemetry/telemetry/core/platform/__init__.py
diff --git a/tools/telemetry/telemetry/core/platform/__init__.py b/tools/telemetry/telemetry/core/platform/__init__.py
index 3622b607600bb0402e4400187838e8a0f52dd873..e11d51f99e8572479057a82ad51606cf4e27ee59 100644
--- a/tools/telemetry/telemetry/core/platform/__init__.py
+++ b/tools/telemetry/telemetry/core/platform/__init__.py
@@ -8,6 +8,7 @@ import sys
from telemetry.core import discover
from telemetry.core import util
+from telemetry.core.platform import network_controller
from telemetry.core.platform import platform_backend as platform_backend_module
from telemetry.core.platform import profiling_controller
from telemetry.core.platform import tracing_controller
@@ -89,12 +90,19 @@ class Platform(object):
def __init__(self, platform_backend):
self._platform_backend = platform_backend
self._platform_backend.SetPlatform(self)
+ self._network_controller = network_controller.NetworkController(
+ self._platform_backend.network_controller_backend)
self._tracing_controller = tracing_controller.TracingController(
self._platform_backend.tracing_controller_backend)
self._profiling_controller = profiling_controller.ProfilingController(
self._platform_backend.profiling_controller_backend)
@property
+ def network_controller(self):
+ """Control network settings and servers to simulate the Web."""
+ return self._network_controller
+
+ @property
def tracing_controller(self):
return self._tracing_controller
« no previous file with comments | « tools/telemetry/telemetry/core/browser.py ('k') | tools/telemetry/telemetry/core/platform/network_controller.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698