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

Unified Diff: telemetry/telemetry/internal/platform/platform_backend.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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « telemetry/telemetry/internal/platform/android_platform_backend.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: telemetry/telemetry/internal/platform/platform_backend.py
diff --git a/telemetry/telemetry/internal/platform/platform_backend.py b/telemetry/telemetry/internal/platform/platform_backend.py
index 3b769bc62cbf7207f0cafadc118273b8573b8430..c1085cddfce06f1f68b56a31159faaaaca4f55eb 100644
--- a/telemetry/telemetry/internal/platform/platform_backend.py
+++ b/telemetry/telemetry/internal/platform/platform_backend.py
@@ -4,6 +4,7 @@
import weakref
+from battor import battor_wrapper
from telemetry.internal import forwarders
from telemetry.internal.forwarders import do_nothing_forwarder
from telemetry.internal.platform import network_controller_backend
@@ -293,3 +294,6 @@ class PlatformBackend(object):
Whether the path exists on the target platform.
"""
raise NotImplementedError()
+
+ def HasBattOrConnected(self):
+ return battor_wrapper.IsBattOrConnected(self.GetOSName())
« no previous file with comments | « telemetry/telemetry/internal/platform/android_platform_backend.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698