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

Side by Side Diff: telemetry/telemetry/core/platform.py

Issue 1997633003: [BattOr] Add ability to platform object to detect BattOrs. (Closed) Base URL: git@github.com:catapult-project/catapult@master
Patch Set: Created 4 years, 7 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 unified diff | Download patch
« no previous file with comments | « no previous file | telemetry/telemetry/internal/platform/android_platform_backend.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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()
OLDNEW
« no previous file with comments | « no previous file | telemetry/telemetry/internal/platform/android_platform_backend.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698