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

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

Issue 1458083003: [Telemetry + tools/perf] Modify the pylint disable message to use symbolic name (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 1 month 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/key_silk_cases.py ('k') | tools/perf/page_sets/media_cns_cases.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 2015 The Chromium Authors. All rights reserved. 1 # Copyright 2015 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 import story 5 from telemetry import story
6 6
7 from page_sets import google_pages 7 from page_sets import google_pages
8 8
9 IDLE_TIME_IN_SECONDS = 100 9 IDLE_TIME_IN_SECONDS = 100
10 10
11 def _CreateIdlePageClass(base_page_cls): 11 def _CreateIdlePageClass(base_page_cls):
12 class DerivedIdlePage(base_page_cls): # pylint: disable=W0232 12 class DerivedIdlePage(base_page_cls): # pylint: disable=no-init
13 def RunPageInteractions(self, action_runner): 13 def RunPageInteractions(self, action_runner):
14 action_runner.Wait(IDLE_TIME_IN_SECONDS) 14 action_runner.Wait(IDLE_TIME_IN_SECONDS)
15 return DerivedIdlePage 15 return DerivedIdlePage
16 16
17 17
18 def _CreateIdleBackgroundPageClass(base_page_cls): 18 def _CreateIdleBackgroundPageClass(base_page_cls):
19 class DerivedIdlePage(base_page_cls): # pylint: disable=W0232 19 class DerivedIdlePage(base_page_cls): # pylint: disable=no-init
20 def RunPageInteractions(self, action_runner): 20 def RunPageInteractions(self, action_runner):
21 action_runner.tab.browser.tabs.New() 21 action_runner.tab.browser.tabs.New()
22 action_runner.Wait(IDLE_TIME_IN_SECONDS) 22 action_runner.Wait(IDLE_TIME_IN_SECONDS)
23 return DerivedIdlePage 23 return DerivedIdlePage
24 24
25 25
26 class LongRunningIdleGmailPageSet(story.StorySet): 26 class LongRunningIdleGmailPageSet(story.StorySet):
27 def __init__(self): 27 def __init__(self):
28 super(LongRunningIdleGmailPageSet, self).__init__( 28 super(LongRunningIdleGmailPageSet, self).__init__(
29 archive_data_file='data/long_running_idle_gmail_page.json', 29 archive_data_file='data/long_running_idle_gmail_page.json',
30 cloud_storage_bucket=story.PARTNER_BUCKET) 30 cloud_storage_bucket=story.PARTNER_BUCKET)
31 self.AddStory( 31 self.AddStory(
32 _CreateIdlePageClass(google_pages.GmailPage)(self)) 32 _CreateIdlePageClass(google_pages.GmailPage)(self))
33 33
34 34
35 class LongRunningIdleGmailBackgroundPageSet(story.StorySet): 35 class LongRunningIdleGmailBackgroundPageSet(story.StorySet):
36 def __init__(self): 36 def __init__(self):
37 # Reuse the wpr of foreground gmail. 37 # Reuse the wpr of foreground gmail.
38 super(LongRunningIdleGmailBackgroundPageSet, self).__init__( 38 super(LongRunningIdleGmailBackgroundPageSet, self).__init__(
39 archive_data_file='data/long_running_idle_gmail_page.json', 39 archive_data_file='data/long_running_idle_gmail_page.json',
40 cloud_storage_bucket=story.PARTNER_BUCKET) 40 cloud_storage_bucket=story.PARTNER_BUCKET)
41 self.AddStory( 41 self.AddStory(
42 _CreateIdleBackgroundPageClass(google_pages.GmailPage)(self)) 42 _CreateIdleBackgroundPageClass(google_pages.GmailPage)(self))
OLDNEW
« no previous file with comments | « tools/perf/page_sets/key_silk_cases.py ('k') | tools/perf/page_sets/media_cns_cases.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698