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

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

Issue 2941663002: Removing verify_names=True now that the default for verify_names is True (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
« 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 4
5 from page_sets import page_cycler_story 5 from page_sets import page_cycler_story
6 from telemetry.page import cache_temperature as cache_temperature_module 6 from telemetry.page import cache_temperature as cache_temperature_module
7 from telemetry.page import shared_page_state 7 from telemetry.page import shared_page_state
8 from telemetry import story 8 from telemetry import story
9 9
10 10
11 class IntlHiRuPage(page_cycler_story.PageCyclerStory): 11 class IntlHiRuPage(page_cycler_story.PageCyclerStory):
12 12
13 def __init__(self, url, page_set, cache_temperature=None): 13 def __init__(self, url, page_set, cache_temperature=None):
14 super(IntlHiRuPage, self).__init__( 14 super(IntlHiRuPage, self).__init__(
15 url=url, page_set=page_set, 15 url=url, page_set=page_set,
16 shared_page_state_class=shared_page_state.SharedDesktopPageState, 16 shared_page_state_class=shared_page_state.SharedDesktopPageState,
17 cache_temperature=cache_temperature, 17 cache_temperature=cache_temperature,
18 name=url) 18 name=url)
19 self.archive_data_file = 'data/intl_hi_ru.json' 19 self.archive_data_file = 'data/intl_hi_ru.json'
20 20
21 21
22 class IntlHiRuPageSet(story.StorySet): 22 class IntlHiRuPageSet(story.StorySet):
23 23
24 """ Popular pages in Hindi and Russian. """ 24 """ Popular pages in Hindi and Russian. """
25 25
26 def __init__(self, cache_temperatures=None): 26 def __init__(self, cache_temperatures=None):
27 super(IntlHiRuPageSet, self).__init__( 27 super(IntlHiRuPageSet, self).__init__(
28 archive_data_file='data/intl_hi_ru.json', 28 archive_data_file='data/intl_hi_ru.json',
29 cloud_storage_bucket=story.PARTNER_BUCKET, 29 cloud_storage_bucket=story.PARTNER_BUCKET)
30 verify_names=True)
31 if cache_temperatures is None: 30 if cache_temperatures is None:
32 cache_temperatures = [cache_temperature_module.ANY] 31 cache_temperatures = [cache_temperature_module.ANY]
33 32
34 urls_list = [ 33 urls_list = [
35 # Why: #12 site in Russia 34 # Why: #12 site in Russia
36 'http://www.rambler.ru/', 35 'http://www.rambler.ru/',
37 'http://apeha.ru/', 36 'http://apeha.ru/',
38 # pylint: disable=line-too-long 37 # pylint: disable=line-too-long
39 'http://yandex.ru/yandsearch?lr=102567&text=%D0%9F%D0%BE%D0%B3%D0%BE%D0%B4 %D0%B0', 38 'http://yandex.ru/yandsearch?lr=102567&text=%D0%9F%D0%BE%D0%B3%D0%BE%D0%B4 %D0%B0',
40 'http://photofile.ru/', 39 'http://photofile.ru/',
41 'http://ru.wikipedia.org/', 40 'http://ru.wikipedia.org/',
42 'http://narod.yandex.ru/', 41 'http://narod.yandex.ru/',
43 # Why: #15 in Russia 42 # Why: #15 in Russia
44 'http://rutracker.org/forum/index.php', 43 'http://rutracker.org/forum/index.php',
45 'http://hindi.webdunia.com/', 44 'http://hindi.webdunia.com/',
46 # Why: #49 site in India 45 # Why: #49 site in India
47 'http://hindi.oneindia.in/', 46 'http://hindi.oneindia.in/',
48 # Why: #9 site in India 47 # Why: #9 site in India
49 'http://www.indiatimes.com/', 48 'http://www.indiatimes.com/',
50 # Why: #2 site in India 49 # Why: #2 site in India
51 'http://news.google.co.in/nwshp?tab=in&hl=hi' 50 'http://news.google.co.in/nwshp?tab=in&hl=hi'
52 ] 51 ]
53 52
54 for url in urls_list: 53 for url in urls_list:
55 for temp in cache_temperatures: 54 for temp in cache_temperatures:
56 self.AddStory(IntlHiRuPage(url, self, cache_temperature=temp)) 55 self.AddStory(IntlHiRuPage(url, self, cache_temperature=temp))
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