blob: 20f7e93aa173e37b5382cb0e221a7c00c7414113 [file] [log] [blame]
# 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, 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__.
is_app_ready_predicate: See Story.__init__.
"""
super(AndroidStory, self).__init__(
shared_android_state.SharedAndroidState, name=name, labels=labels,
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