diff options
author | slamm <slamm@chromium.org> | 2014-12-05 11:18:16 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2014-12-05 19:18:36 +0000 |
commit | e7cb2a354e20a4bb0aa1e427348e85e2486c9288 (patch) | |
tree | e5748aba5f79b298ade8dc78aba75db4435cedf5 /tools | |
parent | 5b7c43227cca038cc4cbcb11fbb5d889fdd3a49f (diff) | |
download | chromium_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.py | 19 | ||||
-rw-r--r-- | tools/telemetry/telemetry/core/backends/app_backend.py | 18 |
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 |