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

Side by Side Diff: tools/perf/perf_tools/scrolling_benchmark_unittest.py

Issue 11361165: [chrome_remote_control] Rename chrome_remote_control to telemetry. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 1 month 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 | Annotate | Revision Log
OLDNEW
1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 # Copyright (c) 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 from chrome_remote_control import multi_page_benchmark 4 from telemetry import multi_page_benchmark
5 from chrome_remote_control import multi_page_benchmark_unittest_base 5 from telemetry import multi_page_benchmark_unittest_base
6 from perf_tools import scrolling_benchmark 6 from perf_tools import scrolling_benchmark
7 7
8 class ScrollingBenchmarkUnitTest( 8 class ScrollingBenchmarkUnitTest(
9 multi_page_benchmark_unittest_base.MultiPageBenchmarkUnitTestBase): 9 multi_page_benchmark_unittest_base.MultiPageBenchmarkUnitTestBase):
10 10
11 def testScrollingWithGpuBenchmarkingExtension(self): 11 def testScrollingWithGpuBenchmarkingExtension(self):
12 ps = self.CreatePageSetFromFileInUnittestDataDir('scrollable_page.html') 12 ps = self.CreatePageSetFromFileInUnittestDataDir('scrollable_page.html')
13 13
14 benchmark = scrolling_benchmark.ScrollingBenchmark() 14 benchmark = scrolling_benchmark.ScrollingBenchmark()
15 all_results = self.RunBenchmark(benchmark, ps) 15 all_results = self.RunBenchmark(benchmark, ps)
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
66 benchmark.use_gpu_benchmarking_extension = False 66 benchmark.use_gpu_benchmarking_extension = False
67 67
68 all_results = self.RunBenchmark(benchmark, ps) 68 all_results = self.RunBenchmark(benchmark, ps)
69 69
70 self.assertEqual(0, len(all_results.page_failures)) 70 self.assertEqual(0, len(all_results.page_failures))
71 self.assertEqual(1, len(all_results.page_results)) 71 self.assertEqual(1, len(all_results.page_results))
72 results0 = all_results.page_results[0] 72 results0 = all_results.page_results[0]
73 73
74 self.assertTrue('dropped_percent' in results0) 74 self.assertTrue('dropped_percent' in results0)
75 self.assertTrue('mean_frame_time' in results0) 75 self.assertTrue('mean_frame_time' in results0)
OLDNEW
« no previous file with comments | « tools/perf/perf_tools/scrolling_benchmark.py ('k') | tools/perf/perf_tools/skpicture_printer.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698