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

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

Issue 1822083003: Add is_open property to NetworkController (Closed) Base URL: https://github.com/catapult-project/catapult.git@master
Patch Set: Created 4 years, 9 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 | no next file » | 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 0932ab0badad349a6a5ff66171844c72ae4c3def..d6d321bfb3cb7f74eb21cfe6a58b773ebf07d162 100644
--- a/telemetry/telemetry/core/network_controller.py
+++ b/telemetry/telemetry/core/network_controller.py
@@ -15,6 +15,10 @@ class NetworkController(object):
def Open(self, wpr_mode, netsim, extra_wpr_args):
self._network_controller_backend.Open(wpr_mode, netsim, extra_wpr_args)
+ @property
+ def is_open(self):
+ return self._network_controller_backend.is_open
+
def Close(self):
self._network_controller_backend.Close()
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698