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

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

Issue 1029263003: [telemetry] Sort imports in Telemetry and its dependents. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Ensure we're up to date. Created 5 years, 9 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/measurements/oilpan_gc_times.py ('k') | tools/perf/measurements/page_cycler.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 measurements import oilpan_gc_times
6 from telemetry.unittest_util import options_for_unittests 5 from telemetry.unittest_util import options_for_unittests
7 from telemetry.unittest_util import page_test_test_case 6 from telemetry.unittest_util import page_test_test_case
8 7
8 from measurements import oilpan_gc_times
9
10
9 class OilpanGCTimesTest(page_test_test_case.PageTestTestCase): 11 class OilpanGCTimesTest(page_test_test_case.PageTestTestCase):
10 """Smoke test for Oilpan GC pause time measurements. 12 """Smoke test for Oilpan GC pause time measurements.
11 13
12 Runs OilpanGCTimes measurement on some simple pages and verifies 14 Runs OilpanGCTimes measurement on some simple pages and verifies
13 that all metrics were added to the results. The test is purely functional, 15 that all metrics were added to the results. The test is purely functional,
14 i.e. it only checks if the metrics are present and non-zero. 16 i.e. it only checks if the metrics are present and non-zero.
15 """ 17 """
16 def setUp(self): 18 def setUp(self):
17 self._options = options_for_unittests.GetCopy() 19 self._options = options_for_unittests.GetCopy()
18 20
(...skipping 11 matching lines...) Expand all
30 def testForBlinkPerf(self): 32 def testForBlinkPerf(self):
31 ps = self.CreatePageSetFromFileInUnittestDataDir('create_many_objects.html') 33 ps = self.CreatePageSetFromFileInUnittestDataDir('create_many_objects.html')
32 measurement = oilpan_gc_times.OilpanGCTimesForBlinkPerf() 34 measurement = oilpan_gc_times.OilpanGCTimesForBlinkPerf()
33 results = self.RunMeasurement(measurement, ps, options=self._options) 35 results = self.RunMeasurement(measurement, ps, options=self._options)
34 self.assertEquals(0, len(results.failures)) 36 self.assertEquals(0, len(results.failures))
35 37
36 precise = results.FindAllPageSpecificValuesNamed('oilpan_precise_mark') 38 precise = results.FindAllPageSpecificValuesNamed('oilpan_precise_mark')
37 conservative = results.FindAllPageSpecificValuesNamed( 39 conservative = results.FindAllPageSpecificValuesNamed(
38 'oilpan_conservative_mark') 40 'oilpan_conservative_mark')
39 self.assertLess(0, len(precise) + len(conservative)) 41 self.assertLess(0, len(precise) + len(conservative))
OLDNEW
« no previous file with comments | « tools/perf/measurements/oilpan_gc_times.py ('k') | tools/perf/measurements/page_cycler.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698