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

Side by Side Diff: tools/perf/page_sets/intl_ja_zh.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_hi_ru.py ('k') | tools/perf/page_sets/intl_ko_th_vi.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 IntlJaZhPage(page_cycler_story.PageCyclerStory): 11 class IntlJaZhPage(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(IntlJaZhPage, self).__init__( 14 super(IntlJaZhPage, 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 19
20 20
21 class IntlJaZhPageSet(story.StorySet): 21 class IntlJaZhPageSet(story.StorySet):
22 22
23 """ Popular pages in Japanese and Chinese. """ 23 """ Popular pages in Japanese and Chinese. """
24 24
25 def __init__(self, cache_temperatures=None): 25 def __init__(self, cache_temperatures=None):
26 super(IntlJaZhPageSet, self).__init__( 26 super(IntlJaZhPageSet, self).__init__(
27 archive_data_file='data/intl_ja_zh.json', 27 archive_data_file='data/intl_ja_zh.json',
28 cloud_storage_bucket=story.PARTNER_BUCKET, 28 cloud_storage_bucket=story.PARTNER_BUCKET)
29 verify_names=True)
30 if cache_temperatures is None: 29 if cache_temperatures is None:
31 cache_temperatures = [cache_temperature_module.ANY] 30 cache_temperatures = [cache_temperature_module.ANY]
32 31
33 urls_list = [ 32 urls_list = [
34 # Why: #5 Japanese site 33 # Why: #5 Japanese site
35 'http://www.amazon.co.jp', 34 'http://www.amazon.co.jp',
36 'http://mixi.jp/', 35 'http://mixi.jp/',
37 'http://dtiblog.com/', 36 'http://dtiblog.com/',
38 'http://2ch.net/', 37 'http://2ch.net/',
39 'http://jugem.jp/', 38 'http://jugem.jp/',
(...skipping 17 matching lines...) Expand all
57 # Why: #5 Chinese site 56 # Why: #5 Chinese site
58 # pylint: disable=line-too-long 57 # pylint: disable=line-too-long
59 'http://www.google.com.hk/#q=%E9%82%84%E6%8F%90%E4%BE%9B&fp=c44d333e710cb4 80', 58 'http://www.google.com.hk/#q=%E9%82%84%E6%8F%90%E4%BE%9B&fp=c44d333e710cb4 80',
60 'http://udn.com/NEWS/mainpage.shtml', 59 'http://udn.com/NEWS/mainpage.shtml',
61 'http://ruten.com.tw/' 60 'http://ruten.com.tw/'
62 ] 61 ]
63 62
64 for url in urls_list: 63 for url in urls_list:
65 for temp in cache_temperatures: 64 for temp in cache_temperatures:
66 self.AddStory(IntlJaZhPage(url, self, cache_temperature=temp)) 65 self.AddStory(IntlJaZhPage(url, self, cache_temperature=temp))
OLDNEW
« no previous file with comments | « tools/perf/page_sets/intl_hi_ru.py ('k') | tools/perf/page_sets/intl_ko_th_vi.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698