aboutsummaryrefslogtreecommitdiff
path: root/catapult/telemetry/telemetry/android/android_story.py
blob: bc9514e778b9b45059d9814fabc877443ffed8b1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# 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.android import shared_android_state
from telemetry import story

class AndroidStory(story.Story):
  def __init__(self, start_intent, is_app_ready_predicate=None,
               name='', labels=None, tags=None, is_local=False):
    """Creates a new story for Android app.

    Args:
      start_intent: See AndroidPlatform.LaunchAndroidApplication.
      is_app_ready_predicate: See AndroidPlatform.LaunchAndroidApplication.
      name: See Story.__init__.
      labels: See Story.__init__.
      tags: See Story.__init__
      is_app_ready_predicate: See Story.__init__.
    """
    super(AndroidStory, self).__init__(
        shared_android_state.SharedAndroidState, name=name, labels=labels,
        tags=tags, is_local=is_local)
    self.start_intent = start_intent
    self.is_app_ready_predicate = is_app_ready_predicate

  def Run(self, shared_state):
    """Execute the interactions with the applications."""
    raise NotImplementedError