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

Unified Diff: tools/chrome_remote_control/chrome_remote_control/multi_page_benchmark_unittest_base.py

Issue 11314012: Add spaceport benchmark to Chrome Remote Control. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix bug 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 side-by-side diff with in-line comments
Download patch
Index: tools/chrome_remote_control/chrome_remote_control/multi_page_benchmark_unittest_base.py
diff --git a/tools/chrome_remote_control/chrome_remote_control/multi_page_benchmark_unittest_base.py b/tools/chrome_remote_control/chrome_remote_control/multi_page_benchmark_unittest_base.py
index 3ceb69db60ed12fe39438a7f378cd896f50764de..873829df00f343e824a616a6e811c40114b5b77f 100644
--- a/tools/chrome_remote_control/chrome_remote_control/multi_page_benchmark_unittest_base.py
+++ b/tools/chrome_remote_control/chrome_remote_control/multi_page_benchmark_unittest_base.py
@@ -15,16 +15,11 @@ class MultiPageBenchmarkUnitTestBase(unittest.TestCase):
"""unittest.TestCase-derived class to help in the construction of unit tests
for a benchmark."""
- unittest_data_dir = os.path.abspath(os.path.join(os.path.dirname(__file__),
- '..', 'unittest_data'))
-
def CreatePageSetFromFileInUnittestDataDir(self, test_filename):
- path = os.path.join(self.unittest_data_dir, test_filename)
- self.assertTrue(os.path.exists(path))
-
- page = page_module.Page('file://%s' % test_filename)
-
- ps = page_set.PageSet(base_dir=self.unittest_data_dir)
+ base_dir = os.path.dirname(__file__)
+ page = page_module.Page(os.path.join('..', 'unittest_data', test_filename),
+ base_dir=base_dir)
+ ps = page_set.PageSet(base_dir=base_dir)
ps.pages.append(page)
return ps

Powered by Google App Engine
This is Rietveld 408576698