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

Unified Diff: tools/telemetry/telemetry/core/android_app.py

Issue 647193002: Adding App, AndroidApp, AppBackend, AndroidAppBackend, PossibleApp. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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 | « no previous file | tools/telemetry/telemetry/core/app.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/telemetry/telemetry/core/android_app.py
diff --git a/tools/telemetry/telemetry/core/android_app.py b/tools/telemetry/telemetry/core/android_app.py
new file mode 100644
index 0000000000000000000000000000000000000000..d360950b4fd03efd6ad9c2a0f12c7f2d0b358962
--- /dev/null
+++ b/tools/telemetry/telemetry/core/android_app.py
@@ -0,0 +1,20 @@
+# Copyright 2012 The Chromium Authors. All rights reserved.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
+from telemetry.core import app
+
+
+class AndroidApp(app.App):
+ """A running android app instance that can be controlled in a limited way.
+
+ Be sure to clean up after yourself by calling Close() when you are done with
+ the app. Or better yet:
+ with possible_android_app.Create() as android_app:
+ ... do all your operations on android_app here
+ """
+ def __init__(self, backend, platform_backend):
+ super(AndroidApp, self).__init__(app_backend=backend,
+ platform_backend=platform_backend)
+ def Close(self):
+ raise NotImplementedError()
« no previous file with comments | « no previous file | tools/telemetry/telemetry/core/app.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698