| OLD | NEW |
| 1 # Copyright 2012 The Chromium Authors. All rights reserved. | 1 # Copyright 2012 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 import logging as real_logging | 4 import logging as real_logging |
| 5 import os | 5 import os |
| 6 import sys | 6 import sys |
| 7 | 7 |
| 8 from telemetry.core import discover | 8 from telemetry.core import discover |
| 9 from telemetry.core import local_server | 9 from telemetry.core import local_server |
| 10 from telemetry.core import memory_cache_http_server | 10 from telemetry.core import memory_cache_http_server |
| (...skipping 380 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 391 self.StartLocalServer(server) | 391 self.StartLocalServer(server) |
| 392 return True | 392 return True |
| 393 | 393 |
| 394 def StopAllLocalServers(self): | 394 def StopAllLocalServers(self): |
| 395 self._local_server_controller.Close() | 395 self._local_server_controller.Close() |
| 396 | 396 |
| 397 @property | 397 @property |
| 398 def local_servers(self): | 398 def local_servers(self): |
| 399 """Returns the currently running local servers.""" | 399 """Returns the currently running local servers.""" |
| 400 return self._local_server_controller.local_servers | 400 return self._local_server_controller.local_servers |
| 401 |
| 402 def HasBattOrConnected(self): |
| 403 return self._platform_backend.HasBattOrConnected() |
| OLD | NEW |