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

Unified Diff: telemetry/telemetry/core/network_controller.py

Issue 2346093002: [Telemetry] Add API for updating ts_proxy_server's traffic settings (Closed)
Patch Set: Rebase Created 4 years, 3 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 | « no previous file | telemetry/telemetry/internal/platform/network_controller_backend.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: telemetry/telemetry/core/network_controller.py
diff --git a/telemetry/telemetry/core/network_controller.py b/telemetry/telemetry/core/network_controller.py
index 00cc9e69b42df39ae5cc5e8533af7284cb689787..da2e55a3d2735cbe2d4d8cd37b5650a32479efc3 100644
--- a/telemetry/telemetry/core/network_controller.py
+++ b/telemetry/telemetry/core/network_controller.py
@@ -23,6 +23,11 @@ class NetworkController(object):
def Open(self, wpr_mode, extra_wpr_args):
self._network_controller_backend.Open(wpr_mode, extra_wpr_args)
+ def UpdateTrafficSettings(self, round_trip_latency_ms=None,
+ download_bandwidth_kbps=None, upload_bandwidth_kbps=None):
+ self._network_controller_backend.ts_proxy_server.UpdateTrafficSettings(
+ round_trip_latency_ms, download_bandwidth_kbps, upload_bandwidth_kbps)
+
@property
def is_open(self):
return self._network_controller_backend.is_open
« no previous file with comments | « no previous file | telemetry/telemetry/internal/platform/network_controller_backend.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698