Plumb scroll elasticity layer from Blink to cc
[chromium-blink-merge.git] / tools / perf / page_sets / android_acceptance.py
blob07d2f6c509feaa2038588a8e144227329b351391
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 RunPowerPageInteractions(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.AddPage(AndroidAcceptancePage(url, self))