Index: content/test/BUILD.gn |
diff --git a/content/test/BUILD.gn b/content/test/BUILD.gn |
index 5a3591590a63f143329551e7a657a585a2537103..13fb599b42db602f2280fd7ec07092fcbdc961ee 100644 |
--- a/content/test/BUILD.gn |
+++ b/content/test/BUILD.gn |
@@ -823,3 +823,46 @@ test("content_gl_benchmark") { |
"//ui/gl:test_support", |
] |
} |
+ |
+if (is_android) { |
+ # TODO(GYP): Port Windows and ChromeOS logic. |
+ test("video_decode_accelerator_unittest") { |
+ deps = [ |
+ "//base", |
+ "//content", |
+ "//media", |
+ "//testing/gtest", |
+ "//ui/base", |
+ "//ui/gfx", |
+ "//ui/gfx/geometry", |
+ "//ui/gfx:test_support", |
+ "//ui/gl", |
+ "//ui/gl:test_support", |
+ ] |
+ include_dirs = [ "//third_party/khronos" ] |
brettw
2015/11/20 22:04:18
You should almost never have to write include dir
|
+ sources = [ |
+ "//content/common/gpu/media/video_accelerator_unittest_helpers.h", |
+ ] |
+ if (is_android) { |
+ sources += [ "//content/common/gpu/media/android_video_decode_accelerator_unittest.cc" ] |
+ } else { |
+ sources += [ |
+ "//content/common/gpu/media/rendering_helper.cc", |
+ "//content/common/gpu/media/rendering_helper.h", |
+ "//content/common/gpu/media/video_decode_accelerator_unittest.cc", |
+ ] |
+ } |
+ |
+ if (is_android) { |
+ deps += [ |
+ "//gpu:test_support", |
+ "//media/base/android", |
+ "//testing/gmock", |
+ ] |
+ apk_deps = [ |
+ "//media/base/android:media_java", |
+ "//ui/android:ui_java", |
+ ] |
+ } |
+ } |
+} |