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

Unified Diff: content/test/BUILD.gn

Issue 1442473002: Port video_decode_accelerator_unittest to GN for Android (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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
« content/content_tests.gypi ('K') | « content/content_tests.gypi ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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",
+ ]
+ }
+ }
+}
« content/content_tests.gypi ('K') | « content/content_tests.gypi ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698