ozone: evdev: Sync caps lock LED state to evdev
[chromium-blink-merge.git] / tools / perf / page_sets / gmail_refresh.py
blob87f5e31b1fd1ccb34eb8414457fddcb18ffd6ae8
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 GmailRefreshPage(page_module.Page):
10 """ Why: Continually reload the gmail page. """
12 def __init__(self, page_set):
13 super(GmailRefreshPage, self).__init__(
14 url='https://mail.google.com/mail/',
15 page_set=page_set, credentials_path = 'data/credentials.json')
16 self.credentials = 'google'
17 self.user_agent_type = 'desktop'
18 self.archive_data_file = 'data/gmail_refresh.json'
20 def RunEndure(self, action_runner):
21 action_runner.ReloadPage()
24 class GmailRefreshPageSet(page_set_module.PageSet):
26 """
27 Description: Chrome Endure control test to test gmail page reload
28 """
30 def __init__(self):
31 super(GmailRefreshPageSet, self).__init__(
32 user_agent_type='desktop',
33 archive_data_file='data/gmail_refresh.json',
34 bucket=page_set_module.PUBLIC_BUCKET)
36 self.AddUserStory(GmailRefreshPage(self))