diff options
author | hartmanng@chromium.org <hartmanng@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-12-21 17:42:05 +0000 |
---|---|---|
committer | hartmanng@chromium.org <hartmanng@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-12-21 17:42:05 +0000 |
commit | 417e2eb6e251c037680d704e6bba86c03016776c (patch) | |
tree | 8b946c152348f7cac607cfae98d1a58abf1fb778 /tools/perf | |
parent | d897f7275d55f929d75a2952e609b6906b532b7b (diff) | |
download | chromium_src-417e2eb6e251c037680d704e6bba86c03016776c.zip chromium_src-417e2eb6e251c037680d704e6bba86c03016776c.tar.gz chromium_src-417e2eb6e251c037680d704e6bba86c03016776c.tar.bz2 |
[telemetry] Getting rid of CustomizeOptionsForTest in unittests.
BUG=162630
Review URL: https://chromiumcodereview.appspot.com/11636024
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@174402 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'tools/perf')
-rwxr-xr-x | tools/perf/perf_tools/skpicture_printer_unittest.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tools/perf/perf_tools/skpicture_printer_unittest.py b/tools/perf/perf_tools/skpicture_printer_unittest.py index 285b48c..53a9aa8 100755 --- a/tools/perf/perf_tools/skpicture_printer_unittest.py +++ b/tools/perf/perf_tools/skpicture_printer_unittest.py @@ -7,6 +7,7 @@ import tempfile import shutil from telemetry import multi_page_benchmark_unittest_base +from telemetry import options_for_unittests from perf_tools import skpicture_printer class SkPicturePrinterUnitTest( @@ -15,18 +16,17 @@ class SkPicturePrinterUnitTest( def setUp(self): super(SkPicturePrinterUnitTest, self).setUp() self._outdir = tempfile.mkdtemp() + self._options = options_for_unittests.GetCopy() + self._options.outdir = self._outdir def tearDown(self): shutil.rmtree(self._outdir) super(SkPicturePrinterUnitTest, self).tearDown() - def CustomizeOptionsForTest(self, options): - options.outdir = self._outdir - def testPrintToSkPicture(self): ps = self.CreatePageSetFromFileInUnittestDataDir('non_scrollable_page.html') printer = skpicture_printer.SkPicturePrinter() - all_results = self.RunBenchmark(printer, ps) + all_results = self.RunBenchmark(printer, ps, options=self._options) self.assertEqual(0, len(all_results.page_failures)) self.assertEqual(1, len(all_results.page_results)) |