[Session restore] Rename group name Enabled to Restore.
[chromium-blink-merge.git] / tools / perf / page_sets / android_acceptance.py
blob2afb97d5aff485604494b5aa74f416fee014106b
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 page_set as page_set_module
8 class AndroidAcceptancePage(page_module.Page):
10 def __init__(self, url, page_set, name=''):
11 super(AndroidAcceptancePage, self).__init__(
12 url=url, page_set=page_set, name=name,
13 credentials_path = 'data/credentials.json')
14 self.user_agent_type = 'desktop'
15 self.archive_data_file = 'data/android_acceptance.json'
17 def RunPageInteractions(self, action_runner):
18 action_runner.Wait(40)
21 class AndroidAcceptancePageSet(page_set_module.PageSet):
23 """ Pages used in android acceptance testing. """
25 def __init__(self):
26 super(AndroidAcceptancePageSet, self).__init__(
27 user_agent_type='desktop', # Android acceptance uses desktop.
28 archive_data_file='data/android_acceptance.json',
29 bucket=page_set_module.PARTNER_BUCKET)
31 urls_list = [
32 'http://www.amazon.com',
33 'http://www.cnn.com',
34 'http://www.msn.com',
37 for url in urls_list:
38 self.AddUserStory(AndroidAcceptancePage(url, self))