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

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

Issue 449943002: Move t.p.PageMeasurementUnitTestBase to t.testing.PageTestTestCase. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@tic_kill_perf_page_measurement
Patch Set: Created 6 years, 4 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 | « no previous file | tools/perf/measurements/rasterize_and_record_micro_unittest.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 from measurements import loading_trace 5 from measurements import loading_trace
5 from telemetry.core import wpr_modes 6 from telemetry.core import wpr_modes
6 from telemetry.page import page_measurement_unittest_base 7 from telemetry.testing import page_test_test_case
7 from telemetry.unittest import options_for_unittests 8 from telemetry.unittest import options_for_unittests
8 9
9 class LoadingTraceUnitTest( 10 class LoadingTraceUnitTest(page_test_test_case.PageTestTestCase):
10 page_measurement_unittest_base.PageMeasurementUnitTestBase):
11 def setUp(self): 11 def setUp(self):
12 self._options = options_for_unittests.GetCopy() 12 self._options = options_for_unittests.GetCopy()
13 self._options.browser_options.wpr_mode = wpr_modes.WPR_OFF 13 self._options.browser_options.wpr_mode = wpr_modes.WPR_OFF
14 14
15 def testLoadingTraceBasic(self): 15 def testLoadingTraceBasic(self):
16 ps = self.CreatePageSetFromFileInUnittestDataDir('scrollable_page.html') 16 ps = self.CreatePageSetFromFileInUnittestDataDir('scrollable_page.html')
17 measurement = loading_trace.LoadingTrace() 17 measurement = loading_trace.LoadingTrace()
18 trace_options = self._options 18 trace_options = self._options
19 results = self.RunMeasurement(measurement, ps, options = trace_options) 19 results = self.RunMeasurement(measurement, ps, options = trace_options)
20 self.assertEquals(0, len(results.failures)) 20 self.assertEquals(0, len(results.failures))
21 21
22 def testCleanUpTrace(self): 22 def testCleanUpTrace(self):
23 self.TestTracingCleanedUp(loading_trace.LoadingTrace, self._options) 23 self.TestTracingCleanedUp(loading_trace.LoadingTrace, self._options)
OLDNEW
« no previous file with comments | « no previous file | tools/perf/measurements/rasterize_and_record_micro_unittest.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698