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

Unified Diff: content/test/gpu/gpu_tests/trace_integration_test.py

Issue 2769063006: Add GPU integration pixel tests for VP9 and MP4 video. (Closed)
Patch Set: use media/test/data Created 3 years, 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/test/gpu/gpu_tests/pixel_test_pages.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/test/gpu/gpu_tests/trace_integration_test.py
diff --git a/content/test/gpu/gpu_tests/trace_integration_test.py b/content/test/gpu/gpu_tests/trace_integration_test.py
index 71d8f5aebb5e2eaa527ab6a29e9bb0a58d9853e8..f0f82820642e608a8484da7ac5c6ec7b3b7dbde3 100644
--- a/content/test/gpu/gpu_tests/trace_integration_test.py
+++ b/content/test/gpu/gpu_tests/trace_integration_test.py
@@ -18,8 +18,12 @@ TOPLEVEL_SERVICE_CATEGORY = 'disabled-by-default-gpu.service'
TOPLEVEL_DEVICE_CATEGORY = 'disabled-by-default-gpu.device'
TOPLEVEL_CATEGORIES = [TOPLEVEL_SERVICE_CATEGORY, TOPLEVEL_DEVICE_CATEGORY]
-data_path = os.path.join(
- path_util.GetChromiumSrcDir(), 'content', 'test', 'data', 'gpu')
+gpu_relative_path = "content/test/data/gpu/"
+
+data_paths = [os.path.join(
+ path_util.GetChromiumSrcDir(), gpu_relative_path),
+ os.path.join(
+ path_util.GetChromiumSrcDir(), 'media', 'test', 'data')]
test_harness_script = r"""
var domAutomationController = {};
@@ -71,9 +75,9 @@ class TraceIntegrationTest(gpu_integration_test.GpuIntegrationTest):
# currently skipped on all platforms, to give a hint that they
# should perhaps be enabled in the future.
for p in pixel_test_pages.DefaultPages('TraceTest'):
- yield (p.name, p.url, (TOPLEVEL_SERVICE_CATEGORY))
+ yield (p.name, gpu_relative_path + p.url, (TOPLEVEL_SERVICE_CATEGORY))
for p in pixel_test_pages.DefaultPages('DeviceTraceTest'):
- yield (p.name, p.url, (TOPLEVEL_DEVICE_CATEGORY))
+ yield (p.name, gpu_relative_path + p.url, (TOPLEVEL_DEVICE_CATEGORY))
def RunActualGpuTest(self, test_path, *args):
# The version of this test in the old GPU test harness restarted
@@ -126,7 +130,7 @@ class TraceIntegrationTest(gpu_integration_test.GpuIntegrationTest):
cls.CustomizeOptions()
cls.SetBrowserOptions(cls._finder_options)
cls.StartBrowser()
- cls.SetStaticServerDirs([data_path])
+ cls.SetStaticServerDirs(data_paths)
def load_tests(loader, tests, pattern):
del loader, tests, pattern # Unused.
« no previous file with comments | « content/test/gpu/gpu_tests/pixel_test_pages.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698