[refactor] More post-NSS WebCrypto cleanups (utility functions).
[chromium-blink-merge.git] / tools / perf / page_sets / gmail_refresh.py
blob296c5c0a0eb0129553acf798b03cfc5a170e1f87
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 GmailRefreshPage(page_module.Page):
11 """ Why: Continually reload the gmail page. """
13 def __init__(self, page_set):
14 super(GmailRefreshPage, self).__init__(
15 url='https://mail.google.com/mail/',
16 shared_page_state_class=shared_page_state.SharedDesktopPageState,
17 page_set=page_set, credentials_path = 'data/credentials.json')
18 self.credentials = 'google'
19 self.archive_data_file = 'data/gmail_refresh.json'
21 def RunEndure(self, action_runner):
22 action_runner.ReloadPage()
25 class GmailRefreshPageSet(story.StorySet):
27 """
28 Description: Chrome Endure control test to test gmail page reload
29 """
31 def __init__(self):
32 super(GmailRefreshPageSet, self).__init__(
33 archive_data_file='data/gmail_refresh.json',
34 cloud_storage_bucket=story.PUBLIC_BUCKET)
36 self.AddStory(GmailRefreshPage(self))