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

Side by Side Diff: tools/perf/perf_tools/skpicture_printer_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
« no previous file with comments | « tools/perf/perf_tools/skpicture_printer.py ('k') | tools/perf/perf_tools/spaceport.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 #!/usr/bin/env python 1 #!/usr/bin/env python
2 # Copyright (c) 2012 The Chromium Authors. All rights reserved. 2 # Copyright (c) 2012 The Chromium Authors. All rights reserved.
3 # Use of this source code is governed by a BSD-style license that can be 3 # Use of this source code is governed by a BSD-style license that can be
4 # found in the LICENSE file. 4 # found in the LICENSE file.
5 import os 5 import os
6 import tempfile 6 import tempfile
7 import shutil 7 import shutil
8 8
9 from chrome_remote_control import multi_page_benchmark_unittest_base 9 from telemetry import multi_page_benchmark_unittest_base
10 from perf_tools import skpicture_printer 10 from perf_tools import skpicture_printer
11 11
12 class SkPicturePrinterUnitTest( 12 class SkPicturePrinterUnitTest(
13 multi_page_benchmark_unittest_base.MultiPageBenchmarkUnitTestBase): 13 multi_page_benchmark_unittest_base.MultiPageBenchmarkUnitTestBase):
14 14
15 def setUp(self): 15 def setUp(self):
16 super(SkPicturePrinterUnitTest, self).setUp() 16 super(SkPicturePrinterUnitTest, self).setUp()
17 self._outdir = tempfile.mkdtemp() 17 self._outdir = tempfile.mkdtemp()
18 18
19 def tearDown(self): 19 def tearDown(self):
(...skipping 13 matching lines...) Expand all
33 results0 = all_results.page_results[0] 33 results0 = all_results.page_results[0]
34 34
35 outdir = results0['output_path'] 35 outdir = results0['output_path']
36 self.assertTrue('non_scrollable_page_html' in outdir) 36 self.assertTrue('non_scrollable_page_html' in outdir)
37 self.assertTrue(os.path.isdir(outdir)) 37 self.assertTrue(os.path.isdir(outdir))
38 self.assertEqual(['layer_0.skp'], os.listdir(outdir)) 38 self.assertEqual(['layer_0.skp'], os.listdir(outdir))
39 39
40 skp_file = os.path.join(outdir, 'layer_0.skp') 40 skp_file = os.path.join(outdir, 'layer_0.skp')
41 self.assertTrue(os.path.isfile(skp_file)) 41 self.assertTrue(os.path.isfile(skp_file))
42 self.assertTrue(os.path.getsize(skp_file) > 0) 42 self.assertTrue(os.path.getsize(skp_file) > 0)
OLDNEW
« no previous file with comments | « tools/perf/perf_tools/skpicture_printer.py ('k') | tools/perf/perf_tools/spaceport.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698