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

Side by Side Diff: tools/telemetry/telemetry/results/block_page_measurement_results_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
OLDNEW
1 # Copyright 2012 The Chromium Authors. All rights reserved. 1 # Copyright 2012 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 import StringIO 4 import StringIO
5 import os 5 import os
6 import unittest 6 import unittest
7 7
8 from telemetry.page import block_page_measurement_results
9 from telemetry.page import page_set 8 from telemetry.page import page_set
9 from telemetry.results import block_page_measurement_results
10
10 11
11 BlockPageMeasurementResults = \ 12 BlockPageMeasurementResults = \
12 block_page_measurement_results.BlockPageMeasurementResults 13 block_page_measurement_results.BlockPageMeasurementResults
13 14
14 def _MakePageSet(): 15 def _MakePageSet():
15 ps = page_set.PageSet(file_path=os.path.dirname(__file__)) 16 ps = page_set.PageSet(file_path=os.path.dirname(__file__))
16 ps.AddPageWithDefaultRunNavigate('http://www.foo.com/') 17 ps.AddPageWithDefaultRunNavigate('http://www.foo.com/')
17 ps.AddPageWithDefaultRunNavigate('http://www.bar.com/') 18 ps.AddPageWithDefaultRunNavigate('http://www.bar.com/')
18 return ps 19 return ps
19 20
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 52
52 expected = [ 53 expected = [
53 ['name', 'http://www.foo.com/'], 54 ['name', 'http://www.foo.com/'],
54 ['foo (seconds)', '3'], 55 ['foo (seconds)', '3'],
55 [''], 56 [''],
56 ['name', 'http://www.bar.com/'], 57 ['name', 'http://www.bar.com/'],
57 ['bar (seconds)', '4'], 58 ['bar (seconds)', '4'],
58 [''] 59 ['']
59 ] 60 ]
60 self.assertEquals(self.data, expected) 61 self.assertEquals(self.data, expected)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698