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

Side by Side Diff: tools/perf/measurements/task_execution_time_unittest.py

Issue 1103273002: Remove protected-access from tools/perf/pylintrc. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 7 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.core import wpr_modes 5 from telemetry.core import wpr_modes
6 from telemetry import decorators 6 from telemetry import decorators
7 from telemetry.page import page as page_module 7 from telemetry.page import page as page_module
8 from telemetry.results import page_test_results 8 from telemetry.results import page_test_results
9 from telemetry.timeline import model as model_module 9 from telemetry.timeline import model as model_module
10 from telemetry.timeline import slice as slice_data 10 from telemetry.timeline import slice as slice_data
11 from telemetry.unittest_util import options_for_unittests 11 from telemetry.unittest_util import options_for_unittests
12 from telemetry.unittest_util import page_test_test_case 12 from telemetry.unittest_util import page_test_test_case
13 13
14 from measurements import task_execution_time 14 from measurements import task_execution_time
15 15
16 16
17 class TestTaskExecutionTimePage(page_module.Page): 17 class TestTaskExecutionTimePage(page_module.Page):
18 18
19 def __init__(self, page_set, base_dir): 19 def __init__(self, page_set, base_dir):
20 super(TestTaskExecutionTimePage, self).__init__( 20 super(TestTaskExecutionTimePage, self).__init__(
21 'file://blank.html', page_set, base_dir) 21 'file://blank.html', page_set, base_dir)
22 22
23 def RunPageInteractions(self, action_runner): 23 def RunPageInteractions(self, action_runner):
24 with action_runner.CreateGestureInteraction('ScrollAction'): 24 with action_runner.CreateGestureInteraction('ScrollAction'):
25 action_runner.ScrollPage() 25 action_runner.ScrollPage()
26 26
27 27
28 # Disable for accessing private API of task_execution_time.
29 # pylint: disable=protected-access
28 class TaskExecutionTimeUnitTest(page_test_test_case.PageTestTestCase): 30 class TaskExecutionTimeUnitTest(page_test_test_case.PageTestTestCase):
29 31
30 def setUp(self): 32 def setUp(self):
31 self._options = options_for_unittests.GetCopy() 33 self._options = options_for_unittests.GetCopy()
32 self._options.browser_options.wpr_mode = wpr_modes.WPR_OFF 34 self._options.browser_options.wpr_mode = wpr_modes.WPR_OFF
33 self._first_thread_name = ( 35 self._first_thread_name = (
34 task_execution_time.TaskExecutionTime._RENDERER_THREADS[0]) 36 task_execution_time.TaskExecutionTime._RENDERER_THREADS[0])
35 self._measurement = None 37 self._measurement = None
36 self._page_set = None 38 self._page_set = None
37 39
(...skipping 225 matching lines...) Expand 10 before | Expand all | Expand 10 after
263 None, 265 None,
264 'category', 266 'category',
265 name, 267 name,
266 timestamp, 268 timestamp,
267 duration, 269 duration,
268 timestamp, 270 timestamp,
269 duration, 271 duration,
270 []) 272 [])
271 self._renderer_thread.all_slices.append(new_slice) 273 self._renderer_thread.all_slices.append(new_slice)
272 return new_slice 274 return new_slice
OLDNEW
« no previous file with comments | « tools/perf/measurements/oilpan_gc_times_unittest.py ('k') | tools/perf/measurements/v8_gc_times.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698