summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorslamm <slamm@chromium.org>2014-12-05 11:18:16 -0800
committerCommit bot <commit-bot@chromium.org>2014-12-05 19:18:36 +0000
commite7cb2a354e20a4bb0aa1e427348e85e2486c9288 (patch)
treee5748aba5f79b298ade8dc78aba75db4435cedf5 /tools
parent5b7c43227cca038cc4cbcb11fbb5d889fdd3a49f (diff)
downloadchromium_src-e7cb2a354e20a4bb0aa1e427348e85e2486c9288.zip
chromium_src-e7cb2a354e20a4bb0aa1e427348e85e2486c9288.tar.gz
chromium_src-e7cb2a354e20a4bb0aa1e427348e85e2486c9288.tar.bz2
Raise NotImplementedError exceptions correctly.
BUG=439346 Review URL: https://codereview.chromium.org/761863007 Cr-Commit-Position: refs/heads/master@{#307055}
Diffstat (limited to 'tools')
-rw-r--r--tools/telemetry/telemetry/core/backends/android_app_backend.py19
-rw-r--r--tools/telemetry/telemetry/core/backends/app_backend.py18
2 files changed, 28 insertions, 9 deletions
diff --git a/tools/telemetry/telemetry/core/backends/android_app_backend.py b/tools/telemetry/telemetry/core/backends/android_app_backend.py
index ddd8468..ac38ae1 100644
--- a/tools/telemetry/telemetry/core/backends/android_app_backend.py
+++ b/tools/telemetry/telemetry/core/backends/android_app_backend.py
@@ -8,3 +8,22 @@ from telemetry.core.backends import app_backend
class AndroidAppBackend(app_backend.AppBackend):
def __init__(self):
super(AndroidAppBackend, self).__init__()
+
+ @property
+ def pid(self):
+ raise NotImplementedError
+
+ def Start(self):
+ raise NotImplementedError
+
+ def Close(self):
+ raise NotImplementedError
+
+ def IsAppRunning(self):
+ raise NotImplementedError
+
+ def GetStandardOutput(self):
+ raise NotImplementedError
+
+ def GetStackTrace(self):
+ raise NotImplementedError
diff --git a/tools/telemetry/telemetry/core/backends/app_backend.py b/tools/telemetry/telemetry/core/backends/app_backend.py
index 64314ca..b74d960 100644
--- a/tools/telemetry/telemetry/core/backends/app_backend.py
+++ b/tools/telemetry/telemetry/core/backends/app_backend.py
@@ -23,21 +23,21 @@ class AppBackend(object):
def app_type(self):
return self._app_type
+ @property
+ def pid(self):
+ raise NotImplementedError
+
def Start(self):
- NotImplementedError()
+ raise NotImplementedError
def Close(self):
- NotImplementedError()
-
- @property
- def pid(self):
- NotImplementedError()
+ raise NotImplementedError
def IsAppRunning(self):
- NotImplementedError()
+ raise NotImplementedError
def GetStandardOutput(self):
- NotImplementedError()
+ raise NotImplementedError
def GetStackTrace(self):
- NotImplementedError()
+ raise NotImplementedError