Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(572)

Side by Side Diff: tools/perf/page_sets/chrome_signin.py

Issue 2929513002: Explicitly set story names for startup benchmarks (Closed)
Patch Set: Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « tools/perf/page_sets/blank_page_with_large_profile.py ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright 2015 The Chromium Authors. All rights reserved. 1 # Copyright 2015 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 from telemetry.page import page as page_module 4 from telemetry.page import page as page_module
5 from telemetry.page import shared_page_state 5 from telemetry.page import shared_page_state
6 from telemetry import story 6 from telemetry import story
7 7
8 from page_sets.login_helpers import chrome_login 8 from page_sets.login_helpers import chrome_login
9 9
10 10
11 class ChromeSigninPage(page_module.Page): 11 class ChromeSigninPage(page_module.Page):
12 """A page that signs in a user to Chrome.""" 12 """A page that signs in a user to Chrome."""
13 13
14 def __init__(self, page_set): 14 def __init__(self, page_set):
15 url = 'chrome://signin-internals'
15 super(ChromeSigninPage, self).__init__( 16 super(ChromeSigninPage, self).__init__(
16 url='chrome://signin-internals', 17 url=url,
17 page_set=page_set, 18 page_set=page_set,
18 credentials_path='data/chrome_signin_credentials.json', 19 credentials_path='data/chrome_signin_credentials.json',
19 credentials_bucket=story.INTERNAL_BUCKET, 20 credentials_bucket=story.INTERNAL_BUCKET,
20 shared_page_state_class=shared_page_state.SharedDesktopPageState) 21 shared_page_state_class=shared_page_state.SharedDesktopPageState,
22 name=url)
21 23
22 def RunPageInteractions(self, action_runner): 24 def RunPageInteractions(self, action_runner):
23 # Use page.credentials_path because it is automatically translated into a 25 # Use page.credentials_path because it is automatically translated into a
24 # full path relative to the page. 26 # full path relative to the page.
25 chrome_login.LoginChromeAccount(action_runner, 'chrome', 27 chrome_login.LoginChromeAccount(action_runner, 'chrome',
26 credentials_path=self.credentials_path) 28 credentials_path=self.credentials_path)
27 29
28 30
29 class ChromeSigninPageSet(story.StorySet): 31 class ChromeSigninPageSet(story.StorySet):
30 32
31 def __init__(self): 33 def __init__(self):
32 super(ChromeSigninPageSet, self).__init__( 34 super(ChromeSigninPageSet, self).__init__(
33 archive_data_file='data/chrome_signin_archive.json', 35 archive_data_file='data/chrome_signin_archive.json',
34 cloud_storage_bucket=story.INTERNAL_BUCKET) 36 cloud_storage_bucket=story.INTERNAL_BUCKET,
37 verify_names=True)
35 self.AddStory(ChromeSigninPage(self)) 38 self.AddStory(ChromeSigninPage(self))
OLDNEW
« no previous file with comments | « tools/perf/page_sets/blank_page_with_large_profile.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698