OLD | NEW |
1 # Copyright 2014 The Chromium Authors. All rights reserved. | 1 # Copyright 2014 The Chromium Authors. All rights reserved. |
2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 | 4 |
5 import logging | 5 import logging |
6 import os | 6 import os |
7 import shutil | 7 import shutil |
8 import tempfile | 8 import tempfile |
9 | 9 |
10 from telemetry.internal.util import wpr_server | 10 from telemetry.internal.util import wpr_server |
(...skipping 256 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
267 host_ip = None | 267 host_ip = None |
268 if not use_live_traffic: | 268 if not use_live_traffic: |
269 host_ip = self.host_ip | 269 host_ip = self.host_ip |
270 self._ts_proxy_server = ts_proxy_server.TsProxyServer(host_ip=host_ip) | 270 self._ts_proxy_server = ts_proxy_server.TsProxyServer(host_ip=host_ip) |
271 self._ts_proxy_server.StartServer() | 271 self._ts_proxy_server.StartServer() |
272 return self._ts_proxy_server.port | 272 return self._ts_proxy_server.port |
273 | 273 |
274 @property | 274 @property |
275 def forwarder(self): | 275 def forwarder(self): |
276 return self._forwarder | 276 return self._forwarder |
| 277 |
| 278 @property |
| 279 def ts_proxy_server(self): |
| 280 return self._ts_proxy_server |
OLD | NEW |