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

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

Issue 337603005: Rename telemetry.test.Test to telemetry.benchmark.Benchmark. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 5 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 measurements import thread_times 5 from measurements import thread_times
6 from measurements import smoothness_unittest 6 from measurements import smoothness_unittest
7 from metrics import timeline 7 from metrics import timeline
8 from telemetry import test
9 from telemetry.core import wpr_modes 8 from telemetry.core import wpr_modes
10 from telemetry.page import page_measurement_unittest_base 9 from telemetry.page import page_measurement_unittest_base
11 10
12 from telemetry.unittest import options_for_unittests 11 from telemetry.unittest import options_for_unittests
12 from telemetry.unittest import test
13 13
14 14
15 15
16 class ThreadTimesUnitTest( 16 class ThreadTimesUnitTest(
17 page_measurement_unittest_base.PageMeasurementUnitTestBase): 17 page_measurement_unittest_base.PageMeasurementUnitTestBase):
18 def setUp(self): 18 def setUp(self):
19 self._options = options_for_unittests.GetCopy() 19 self._options = options_for_unittests.GetCopy()
20 self._options.browser_options.wpr_mode = wpr_modes.WPR_OFF 20 self._options.browser_options.wpr_mode = wpr_modes.WPR_OFF
21 21
22 @test.Disabled('android') 22 @test.Disabled('android')
(...skipping 19 matching lines...) Expand all
42 self.assertEquals(0, len(results.failures)) 42 self.assertEquals(0, len(results.failures))
43 43
44 for category in timeline.TimelineThreadCategories.values(): 44 for category in timeline.TimelineThreadCategories.values():
45 cpu_time_name = timeline.ThreadCpuTimeResultName(category) 45 cpu_time_name = timeline.ThreadCpuTimeResultName(category)
46 cpu_time = results.FindAllPageSpecificValuesNamed(cpu_time_name) 46 cpu_time = results.FindAllPageSpecificValuesNamed(cpu_time_name)
47 self.assertEquals(len(cpu_time), 1) 47 self.assertEquals(len(cpu_time), 1)
48 48
49 49
50 def testCleanUpTrace(self): 50 def testCleanUpTrace(self):
51 self.TestTracingCleanedUp(thread_times.ThreadTimes, self._options) 51 self.TestTracingCleanedUp(thread_times.ThreadTimes, self._options)
OLDNEW
« no previous file with comments | « tools/perf/measurements/skpicture_printer_unittest.py ('k') | tools/telemetry/telemetry/benchmark.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698