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

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

Issue 2923543002: Explicitly setting names for media story sets (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
OLDNEW
1 # Copyright 2014 The Chromium Authors. All rights reserved. 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 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 import story 5 from telemetry import story
6 6
7 7
8 class BasicPlayPage(page_module.Page): 8 class BasicPlayPage(page_module.Page):
9 9
10 def __init__(self, url, page_set, name=''): 10 def __init__(self, url, page_set, name=''):
(...skipping 28 matching lines...) Expand all
39 39
40 def RunPageInteractions(self, action_runner): 40 def RunPageInteractions(self, action_runner):
41 self.SeekBeforeAndAfterPlayhead(action_runner) 41 self.SeekBeforeAndAfterPlayhead(action_runner)
42 42
43 43
44 class MediaCnsCasesPageSet(story.StorySet): 44 class MediaCnsCasesPageSet(story.StorySet):
45 45
46 """ Media benchmark on network constrained conditions. """ 46 """ Media benchmark on network constrained conditions. """
47 47
48 def __init__(self): 48 def __init__(self):
49 super(MediaCnsCasesPageSet, self).__init__() 49 super(MediaCnsCasesPageSet, self).__init__(verify_names=True)
50 50
51 urls_list = [ 51 urls_list = [
52 # pylint: disable=line-too-long 52 # pylint: disable=line-too-long
53 'file://tough_video_cases/video.html?id=no_constraints_webm&src=tulip2.web m&net=none', 53 'file://tough_video_cases/video.html?id=no_constraints_webm&src=tulip2.web m&net=none',
54 # pylint: disable=line-too-long 54 # pylint: disable=line-too-long
55 'file://tough_video_cases/video.html?id=cable_webm&src=tulip2.webm&net=cab le', 55 'file://tough_video_cases/video.html?id=cable_webm&src=tulip2.webm&net=cab le',
56 # pylint: disable=line-too-long 56 # pylint: disable=line-too-long
57 'file://tough_video_cases/video.html?id=wifi_webm&src=tulip2.webm&net=wifi ', 57 'file://tough_video_cases/video.html?id=wifi_webm&src=tulip2.webm&net=wifi ',
58 # pylint: disable=line-too-long 58 # pylint: disable=line-too-long
59 'file://tough_video_cases/video.html?id=no_constraints_ogv&src=tulip2.ogv& net=none', 59 'file://tough_video_cases/video.html?id=no_constraints_ogv&src=tulip2.ogv& net=none',
(...skipping 27 matching lines...) Expand all
87 'file://tough_video_cases/video.html?id=wifi_mp3&src=tulip2.mp3&type=audio &net=wifi', 87 'file://tough_video_cases/video.html?id=wifi_mp3&src=tulip2.mp3&type=audio &net=wifi',
88 # pylint: disable=line-too-long 88 # pylint: disable=line-too-long
89 'file://tough_video_cases/video.html?id=no_constraints_m4a&src=tulip2.m4a& type=audio&net=none', 89 'file://tough_video_cases/video.html?id=no_constraints_m4a&src=tulip2.m4a& type=audio&net=none',
90 # pylint: disable=line-too-long 90 # pylint: disable=line-too-long
91 'file://tough_video_cases/video.html?id=cable_m4a&src=tulip2.m4a&type=audi o&net=cable', 91 'file://tough_video_cases/video.html?id=cable_m4a&src=tulip2.m4a&type=audi o&net=cable',
92 # pylint: disable=line-too-long 92 # pylint: disable=line-too-long
93 'file://tough_video_cases/video.html?id=wifi_m4a&src=tulip2.m4a&type=audio &net=wifi' 93 'file://tough_video_cases/video.html?id=wifi_m4a&src=tulip2.m4a&type=audio &net=wifi'
94 ] 94 ]
95 95
96 for url in urls_list: 96 for url in urls_list:
97 self.AddStory(BasicPlayPage(url, self)) 97 self.AddStory(BasicPlayPage(url, self, url.split('/')[-1]))
98 98
99 urls_list2 = [ 99 urls_list2 = [
100 # pylint: disable=line-too-long 100 # pylint: disable=line-too-long
101 'file://tough_video_cases/video.html?id=wifi_mp3&src=tulip2.mp3&type=audio &net=wifi', 101 'file://tough_video_cases/video.html?id=wifi_mp3&src=tulip2.mp3&type=audio &net=wifi',
102 # pylint: disable=line-too-long 102 # pylint: disable=line-too-long
103 'file://tough_video_cases/video.html?id=wifi_m4a&src=tulip2.m4a&type=audio &net=wifi', 103 'file://tough_video_cases/video.html?id=wifi_m4a&src=tulip2.m4a&type=audio &net=wifi',
104 # pylint: disable=line-too-long 104 # pylint: disable=line-too-long
105 'file://tough_video_cases/video.html?id=wifi_ogg&src=tulip2.ogg&type=audio &net=wifi', 105 'file://tough_video_cases/video.html?id=wifi_ogg&src=tulip2.ogg&type=audio &net=wifi',
106 # pylint: disable=line-too-long 106 # pylint: disable=line-too-long
107 'file://tough_video_cases/video.html?id=wifi_wav&src=tulip2.wav&type=audio &net=wifi', 107 'file://tough_video_cases/video.html?id=wifi_wav&src=tulip2.wav&type=audio &net=wifi',
108 # pylint: disable=line-too-long 108 # pylint: disable=line-too-long
109 'file://tough_video_cases/video.html?id=wifi_mp4&src=tulip2.mp4&type=audio &net=wifi', 109 'file://tough_video_cases/video.html?id=wifi_mp4&src=tulip2.mp4&type=audio &net=wifi',
110 # pylint: disable=line-too-long 110 # pylint: disable=line-too-long
111 'file://tough_video_cases/video.html?id=wifi_ogv&src=tulip2.ogv&type=audio &net=wifi', 111 'file://tough_video_cases/video.html?id=wifi_ogv&src=tulip2.ogv&type=audio &net=wifi',
112 # pylint: disable=line-too-long 112 # pylint: disable=line-too-long
113 'file://tough_video_cases/video.html?id=wifi_webm&src=tulip2.webm&type=aud io&net=wifi' 113 'file://tough_video_cases/video.html?id=wifi_webm&src=tulip2.webm&type=aud io&net=wifi'
114 ] 114 ]
115 115
116 for url in urls_list2: 116 for url in urls_list2:
117 if url in urls_list: 117 if url in urls_list:
118 name = 'seek_' + url 118 name = 'seek_' + url
119 else: 119 else:
120 name = '' 120 name = url.split('/')[-1]
121 print name
johnchen 2017/06/05 14:11:52 Is "print name" intended to be permanent, or just
ashleymarie1 2017/06/05 14:16:15 Just for debugging; I saw this and uploaded a seco
121 self.AddStory(SeekBeforeAndAfterPlayheadPage(url, self, name=name)) 122 self.AddStory(SeekBeforeAndAfterPlayheadPage(url, self, name=name))
OLDNEW
« no previous file with comments | « no previous file | tools/perf/page_sets/mse_cases.py » ('j') | tools/perf/page_sets/tough_video_cases.py » ('J')

Powered by Google App Engine
This is Rietveld 408576698