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

Unified Diff: tools/telemetry/telemetry/user_story/android/__init__.py

Issue 776883004: Basic android app implementation (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: More review comments. Created 6 years 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
Index: tools/telemetry/telemetry/user_story/android/__init__.py
diff --git a/tools/telemetry/telemetry/user_story/android/__init__.py b/tools/telemetry/telemetry/user_story/android/__init__.py
new file mode 100644
index 0000000000000000000000000000000000000000..26ecf31f8d37ad842b068ea7b86ec93e8d901f19
--- /dev/null
+++ b/tools/telemetry/telemetry/user_story/android/__init__.py
@@ -0,0 +1,20 @@
+# Copyright 2014 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 import user_story
+from telemetry.user_story.android import shared_app_state
+
+class AppStory(user_story.UserStory):
+ def __init__(self, start_intent, name='', labels=None):
+ super(AppStory, self).__init__(
+ shared_app_state.SharedAppState, name, labels)
+ self.start_intent = start_intent
+
+ def RunPageInteractions(self):
+ # TODO(chrishenry): Remove method once TimelineBasedMeasurement calls Run().
+ self.Run()
+
+ def Run(self):
+ """Execute the interactions with the applications."""
+ raise NotImplementedError

Powered by Google App Engine
This is Rietveld 408576698