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

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

Issue 1198823004: Update perf page_set to use story_set (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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
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 import story
5 from telemetry.page import page as page_module
4 from telemetry.page import shared_page_state 6 from telemetry.page import shared_page_state
5 from telemetry.page import page as page_module
6 from telemetry.page import page_set as page_set_module
7 7
8 _SCROLL_LIST_ITEM = ('.scroll-list-item .%s') 8 _SCROLL_LIST_ITEM = ('.scroll-list-item .%s')
9 _NUM_REPEATS_FOR_EMAIL_OPEN = 40 9 _NUM_REPEATS_FOR_EMAIL_OPEN = 40
10 _OPEN_CLOSE_WAIT_TIME = 0.3 10 _OPEN_CLOSE_WAIT_TIME = 0.3
11 11
12 12
13 class InboxPage(page_module.Page): 13 class InboxPage(page_module.Page):
14 """A class defining inbox page for telemetry.""" 14 """A class defining inbox page for telemetry."""
15 15
16 def __init__(self, page_set): 16 def __init__(self, page_set):
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
66 action_runner.Wait(_OPEN_CLOSE_WAIT_TIME) 66 action_runner.Wait(_OPEN_CLOSE_WAIT_TIME)
67 67
68 def OpenCloseConv(self, action_runner): 68 def OpenCloseConv(self, action_runner):
69 # Wait for the page to load and start background sync 69 # Wait for the page to load and start background sync
70 self._WaitForInitialSync(action_runner) 70 self._WaitForInitialSync(action_runner)
71 for _ in range(0, _NUM_REPEATS_FOR_EMAIL_OPEN): 71 for _ in range(0, _NUM_REPEATS_FOR_EMAIL_OPEN):
72 self._OpenAndCloseEmail(action_runner) 72 self._OpenAndCloseEmail(action_runner)
73 action_runner.Wait(10) 73 action_runner.Wait(10)
74 74
75 75
76 class InboxPageSet(page_set_module.PageSet): 76 class InboxPageSet(story.StorySet):
77 77
78 """Inbox page set.""" 78 """Inbox page set."""
79 79
80 def __init__(self): 80 def __init__(self):
81 super(InboxPageSet, self).__init__( 81 super(InboxPageSet, self).__init__(
82 archive_data_file='data/inbox_data.json', 82 archive_data_file='data/inbox_data.json',
83 bucket=page_set_module.INTERNAL_BUCKET 83 cloud_storage_bucket=story.INTERNAL_BUCKET
84 ) 84 )
85 85
86 self.AddUserStory(InboxPage(self)) 86 self.AddUserStory(InboxPage(self))
OLDNEW
« no previous file with comments | « tools/perf/page_sets/image_decoding_measurement.py ('k') | tools/perf/page_sets/intl_ar_fa_he.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698