[Android WebViewShell] Add inclusion test for webview exposed stable interfaces.
[chromium-blink-merge.git] / tools / perf / page_sets / android_acceptance.py
blobe17fbcd0d5d133a77cb3f2bec978f80d236d2b04
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 from telemetry.page import page as page_module
5 from telemetry.page import shared_page_state
6 from telemetry import story
9 class AndroidAcceptancePage(page_module.Page):
11 def __init__(self, url, page_set, name=''):
12 super(AndroidAcceptancePage, self).__init__(
13 url=url, page_set=page_set, name=name,
14 # Android acceptance uses desktop.
15 shared_page_state_class=shared_page_state.SharedDesktopPageState,
16 credentials_path = 'data/credentials.json')
17 self.archive_data_file = 'data/android_acceptance.json'
19 def RunPageInteractions(self, action_runner):
20 action_runner.Wait(40)
23 class AndroidAcceptancePageSet(story.StorySet):
25 """ Pages used in android acceptance testing. """
27 def __init__(self):
28 super(AndroidAcceptancePageSet, self).__init__(
29 archive_data_file='data/android_acceptance.json',
30 cloud_storage_bucket=story.PARTNER_BUCKET)
32 urls_list = [
33 'http://www.amazon.com',
34 'http://www.cnn.com',
35 'http://www.msn.com',
38 for url in urls_list:
39 self.AddStory(AndroidAcceptancePage(url, self))