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

Unified Diff: tools/telemetry/telemetry/core/browser.py

Issue 736653002: [Pywebsocket PerformanceTests 2/2] Add blink_perf.pywebsocket (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Move to constructor. Created 5 years, 8 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/browser.py
diff --git a/tools/telemetry/telemetry/core/browser.py b/tools/telemetry/telemetry/core/browser.py
index 373f90a8215e727809ef77c980c320a6dcf1ecc7..dd2b418986e56ccd26c05a747ecdce05702d5130 100644
--- a/tools/telemetry/telemetry/core/browser.py
+++ b/tools/telemetry/telemetry/core/browser.py
@@ -231,7 +231,7 @@ class Browser(app.App):
@property
def http_server(self):
- return self._local_server_controller.GetRunningServer(
+ return self.GetRunningLocalServer(
memory_cache_http_server.MemoryCacheHTTPServer, None)
def SetHTTPServerDirectories(self, paths):
@@ -263,6 +263,11 @@ class Browser(app.App):
self.StartLocalServer(server)
return True
+ def GetRunningLocalServer(self, server_class, default_value):
+ """Get a LocalServer of class |server_class| already running."""
+ return self._local_server_controller.GetRunningServer(
+ server_class, default_value)
+
def StartLocalServer(self, server):
"""Starts a LocalServer and associates it with this browser.
« tools/perf/benchmarks/blink_perf.py ('K') | « tools/perf/benchmarks/pywebsocket_server.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698