1# Copyright 2014 The Chromium Authors. All rights reserved.
2# Use of this source code is governed by a BSD-style license that can be
3# found in the LICENSE file.
4
5from telemetry.android import shared_android_state
6from telemetry import story
7
8class AndroidStory(story.Story):
9  def __init__(self, start_intent, is_app_ready_predicate=None,
10               name='', labels=None, is_local=False):
11    """Creates a new story for Android app.
12
13    Args:
14      start_intent: See AndroidPlatform.LaunchAndroidApplication.
15      is_app_ready_predicate: See AndroidPlatform.LaunchAndroidApplication.
16      name: See Story.__init__.
17      labels: See Story.__init__.
18      is_app_ready_predicate: See Story.__init__.
19    """
20    super(AndroidStory, self).__init__(
21        shared_android_state.SharedAndroidState, name=name, labels=labels,
22        is_local=is_local)
23    self.start_intent = start_intent
24    self.is_app_ready_predicate = is_app_ready_predicate
25
26  def Run(self, shared_state):
27    """Execute the interactions with the applications."""
28    raise NotImplementedError
29