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

Side by Side Diff: tools/chrome_proxy/integration_tests/chrome_proxy_pagesets/synthetic.py

Issue 1218073014: Migrate from telemetry PageSet -> StorySet. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: address review comments and rebase Created 5 years, 5 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 4
5 from telemetry.page import page as page_module 5 from telemetry.page import page as page_module
6 from telemetry.page import page_set as page_set_module 6 from telemetry import story
7 7
8 8
9 class SyntheticPage(page_module.Page): 9 class SyntheticPage(page_module.Page):
10 10
11 def __init__(self, url, page_set): 11 def __init__(self, url, page_set):
12 super(SyntheticPage, self).__init__(url=url, page_set=page_set) 12 super(SyntheticPage, self).__init__(url=url, page_set=page_set)
13 13
14 14
15 class SyntheticPageSet(page_set_module.PageSet): 15 class SyntheticStorySet(story.StorySet):
16 16
17 """ Chrome proxy synthetic test pages. """ 17 """ Chrome proxy synthetic test pages. """
18 18
19 def __init__(self): 19 def __init__(self):
20 super(SyntheticPageSet, self).__init__() 20 super(SyntheticStorySet, self).__init__()
21 21
22 urls_list = [ 22 urls_list = [
23 'http://check.googlezip.net/test.html', 23 'http://check.googlezip.net/test.html',
24 'http://check.googlezip.net/static/' 24 'http://check.googlezip.net/static/'
25 ] 25 ]
26 26
27 for url in urls_list: 27 for url in urls_list:
28 self.AddUserStory(SyntheticPage(url, self)) 28 self.AddStory(SyntheticPage(url, self))
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698