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

Side by Side Diff: tools/perf/page_sets/intl_hi_ru.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
« no previous file with comments | « tools/perf/page_sets/intl_es_fr_pt-BR.py ('k') | tools/perf/page_sets/intl_ja_zh.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 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 8
9 class IntlHiRuPage(page_module.Page): 9 class IntlHiRuPage(page_module.Page):
10 10
11 def __init__(self, url, page_set): 11 def __init__(self, url, page_set):
12 super(IntlHiRuPage, self).__init__( 12 super(IntlHiRuPage, self).__init__(
13 url=url, page_set=page_set, 13 url=url, page_set=page_set,
14 shared_page_state_class=shared_page_state.SharedDesktopPageState) 14 shared_page_state_class=shared_page_state.SharedDesktopPageState)
15 self.archive_data_file = 'data/intl_hi_ru.json' 15 self.archive_data_file = 'data/intl_hi_ru.json'
16 16
17 17
18 class IntlHiRuPageSet(page_set_module.PageSet): 18 class IntlHiRuPageSet(story.StorySet):
19 19
20 """ Popular pages in Hindi and Russian. """ 20 """ Popular pages in Hindi and Russian. """
21 21
22 def __init__(self): 22 def __init__(self):
23 super(IntlHiRuPageSet, self).__init__( 23 super(IntlHiRuPageSet, self).__init__(
24 archive_data_file='data/intl_hi_ru.json', 24 archive_data_file='data/intl_hi_ru.json',
25 bucket=page_set_module.PARTNER_BUCKET) 25 cloud_storage_bucket=story.PARTNER_BUCKET)
26 26
27 urls_list = [ 27 urls_list = [
28 # Why: #12 site in Russia 28 # Why: #12 site in Russia
29 'http://www.rambler.ru/', 29 'http://www.rambler.ru/',
30 'http://apeha.ru/', 30 'http://apeha.ru/',
31 # pylint: disable=C0301 31 # pylint: disable=C0301
32 'http://yandex.ru/yandsearch?lr=102567&text=%D0%9F%D0%BE%D0%B3%D0%BE%D0%B4 %D0%B0', 32 'http://yandex.ru/yandsearch?lr=102567&text=%D0%9F%D0%BE%D0%B3%D0%BE%D0%B4 %D0%B0',
33 'http://photofile.ru/', 33 'http://photofile.ru/',
34 'http://ru.wikipedia.org/', 34 'http://ru.wikipedia.org/',
35 'http://narod.yandex.ru/', 35 'http://narod.yandex.ru/',
36 # Why: #15 in Russia 36 # Why: #15 in Russia
37 'http://rutracker.org/forum/index.php', 37 'http://rutracker.org/forum/index.php',
38 'http://hindi.webdunia.com/', 38 'http://hindi.webdunia.com/',
39 # Why: #49 site in India 39 # Why: #49 site in India
40 'http://hindi.oneindia.in/', 40 'http://hindi.oneindia.in/',
41 # Why: #9 site in India 41 # Why: #9 site in India
42 'http://www.indiatimes.com/', 42 'http://www.indiatimes.com/',
43 # Why: #2 site in India 43 # Why: #2 site in India
44 'http://news.google.co.in/nwshp?tab=in&hl=hi' 44 'http://news.google.co.in/nwshp?tab=in&hl=hi'
45 ] 45 ]
46 46
47 for url in urls_list: 47 for url in urls_list:
48 self.AddUserStory(IntlHiRuPage(url, self)) 48 self.AddUserStory(IntlHiRuPage(url, self))
OLDNEW
« no previous file with comments | « tools/perf/page_sets/intl_es_fr_pt-BR.py ('k') | tools/perf/page_sets/intl_ja_zh.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698