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

Side by Side Diff: chrome/test/media_router/telemetry/benchmarks/pagesets/media_router_perf_pages.py

Issue 1919293002: There is no dialog latency data since yesterday, it is caused by crrev.com/1907073002, the action t… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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 | « no previous file | 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 2016 The Chromium Authors. All rights reserved. 1 # Copyright 2016 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 4
5 import utils 5 import utils
6 6
7 from telemetry import page 7 from telemetry import page
8 from telemetry import story 8 from telemetry import story
9 from benchmarks.pagesets import media_router_page 9 from benchmarks.pagesets import media_router_page
10 from telemetry.core import exceptions 10 from telemetry.core import exceptions
(...skipping 15 matching lines...) Expand all
26 class CastDialogPage(media_router_page.CastPage): 26 class CastDialogPage(media_router_page.CastPage):
27 """Cast page to open a cast-enabled page and open media router dialog.""" 27 """Cast page to open a cast-enabled page and open media router dialog."""
28 28
29 def __init__(self, page_set, url='file://basic_test.html', 29 def __init__(self, page_set, url='file://basic_test.html',
30 shared_page_state_class=shared_page_state.SharedPageState): 30 shared_page_state_class=shared_page_state.SharedPageState):
31 super(CastDialogPage, self).__init__( 31 super(CastDialogPage, self).__init__(
32 url=url, page_set=page_set, 32 url=url, page_set=page_set,
33 shared_page_state_class=shared_page_state_class) 33 shared_page_state_class=shared_page_state_class)
34 34
35 def RunPageInteractions(self, action_runner): 35 def RunPageInteractions(self, action_runner):
36 pass 36 # Wait for 5s after Chrome is opened in order to get consistent results.
37 action_runner.Wait(5)
38 with action_runner.CreateInteraction('OpenDialog'):
39 # Open dialog
40 action_runner.TapElement(selector='#start_session_button')
41 action_runner.Wait(5)
42 # Close media router dialog
43 for tab in action_runner.tab.browser.tabs:
44 if tab.url == 'chrome://media-router/':
45 self.CloseDialog(tab)
37 46
38 47
39 class CastIdlePage(CastDialogPage): 48 class CastIdlePage(CastDialogPage):
40 """Cast page to open a cast-enabled page and do nothing.""" 49 """Cast page to open a cast-enabled page and do nothing."""
41 50
42 def __init__(self, page_set): 51 def __init__(self, page_set):
43 super(CastIdlePage, self).__init__( 52 super(CastIdlePage, self).__init__(
44 page_set=page_set, 53 page_set=page_set,
45 url='file://basic_test.html', 54 url='file://basic_test.html',
46 shared_page_state_class=SharedState) 55 shared_page_state_class=SharedState)
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
120 129
121 130
122 class MediaRouterCPUMemoryPageSet(story.StorySet): 131 class MediaRouterCPUMemoryPageSet(story.StorySet):
123 """Pageset for media router CPU/memory usage tests.""" 132 """Pageset for media router CPU/memory usage tests."""
124 133
125 def __init__(self): 134 def __init__(self):
126 super(MediaRouterCPUMemoryPageSet, self).__init__( 135 super(MediaRouterCPUMemoryPageSet, self).__init__(
127 cloud_storage_bucket=story.PARTNER_BUCKET) 136 cloud_storage_bucket=story.PARTNER_BUCKET)
128 self.AddStory(CastIdlePage(self)) 137 self.AddStory(CastIdlePage(self))
129 self.AddStory(CastFlingingPage(self)) 138 self.AddStory(CastFlingingPage(self))
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698