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

Unified Diff: media/gpu/BUILD.gn

Issue 2760513002: h264_decoder_unittests: Initial Change. (Closed)
Patch Set: Fix build issue on win_clang 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 | « media/BUILD.gn ('k') | media/gpu/h264_decoder_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/gpu/BUILD.gn
diff --git a/media/gpu/BUILD.gn b/media/gpu/BUILD.gn
index 2bd2fe0af0253f48b0c5aee6aea84c801dbd1f1d..4247b9f856e2f1a4f2bb9361a3011ef83f584cf3 100644
--- a/media/gpu/BUILD.gn
+++ b/media/gpu/BUILD.gn
@@ -523,6 +523,41 @@ if (is_chromeos) {
}
}
+source_set("unit_tests") {
+ testonly = true
+ deps = [
+ "//base",
+ "//media/base:test_support",
+ "//media/gpu",
+ "//testing/gtest",
+ ]
+ sources = [
+ "h264_decoder_unittest.cc",
+ ]
+
+ # The following sources are only used in chrome os and windows but they are
kcwu 2017/03/20 08:28:09 IIUC, we can add them to sources unconditionally.
Owen Lin 2017/03/20 09:29:27 Done.
+ # actually platform independent.
+ if (!is_chromeos && !is_win) {
+ sources += [
+ "accelerated_video_decoder.h",
+ "h264_decoder.cc",
+ "h264_decoder.h",
+ "h264_dpb.cc",
+ "h264_dpb.h",
+ ]
+ }
+
+ if (is_android) {
+ deps += [
+ # The test needs the java dependencies to add the java classes for their
+ # native counterparts to the test apk.
+ ":android_video_decode_accelerator_unittests",
+ "//media/base/android:media_java",
+ "//ui/android:ui_java",
+ ]
+ }
+}
+
test("video_decode_accelerator_service_unittest") {
sources = [
"ipc/service/gpu_jpeg_decode_accelerator_unittest.cc",
« no previous file with comments | « media/BUILD.gn ('k') | media/gpu/h264_decoder_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698