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

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

Issue 327583002: Move results related stuff to telemetry/results (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Change the directory name from test_results to results Created 6 years, 6 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/metrics/test_page_measurement_results.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 2013 The Chromium Authors. All rights reserved. 1 # Copyright 2013 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 import unittest 5 import unittest
6 6
7 from telemetry.core import browser_options 7 from telemetry.core import browser_options
8 from telemetry.page import page_measurement_results
9 from telemetry.page import page_runner 8 from telemetry.page import page_runner
9 from telemetry.results import page_measurement_results
10 from telemetry.unittest import simple_mock 10 from telemetry.unittest import simple_mock
11 11
12 from measurements import page_cycler 12 from measurements import page_cycler
13 13
14 14
15 # Allow testing protected members in the unit test. 15 # Allow testing protected members in the unit test.
16 # pylint: disable=W0212 16 # pylint: disable=W0212
17 17
18 class MockMemoryMetric(object): 18 class MockMemoryMetric(object):
19 """Used instead of simple_mock.MockObject so that the precise order and 19 """Used instead of simple_mock.MockObject so that the precise order and
(...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after
208 self.assertEqual(values[0].units, 'ms') 208 self.assertEqual(values[0].units, 'ms')
209 209
210 for value, expected in zip(values[1:], ['gpu', 'renderer', 'browser']): 210 for value, expected in zip(values[1:], ['gpu', 'renderer', 'browser']):
211 self.assertEqual(value.page, page) 211 self.assertEqual(value.page, page)
212 self.assertEqual(value.name, 212 self.assertEqual(value.name,
213 'cpu_utilization.cpu_utilization_%s' % expected) 213 'cpu_utilization.cpu_utilization_%s' % expected)
214 self.assertEqual(value.units, '%') 214 self.assertEqual(value.units, '%')
215 215
216 216
217 cycler.DidNavigateToPage(page, tab) 217 cycler.DidNavigateToPage(page, tab)
OLDNEW
« no previous file with comments | « no previous file | tools/perf/metrics/test_page_measurement_results.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698