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

Side by Side 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 unified diff | Download patch
« no previous file with comments | « media/BUILD.gn ('k') | media/gpu/h264_decoder_unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright 2016 The Chromium Authors. All rights reserved. 1 # Copyright 2016 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 import("//build/config/features.gni") 5 import("//build/config/features.gni")
6 import("//build/config/ui.gni") 6 import("//build/config/ui.gni")
7 import("//media/gpu/args.gni") 7 import("//media/gpu/args.gni")
8 import("//media/media_options.gni") 8 import("//media/media_options.gni")
9 import("//testing/test.gni") 9 import("//testing/test.gni")
10 10
(...skipping 505 matching lines...) Expand 10 before | Expand all | Expand 10 after
516 ] 516 ]
517 if (use_x11) { 517 if (use_x11) {
518 deps += [ "//ui/gfx/x" ] 518 deps += [ "//ui/gfx/x" ]
519 } 519 }
520 if (use_ozone) { 520 if (use_ozone) {
521 deps += [ "//ui/ozone" ] 521 deps += [ "//ui/ozone" ]
522 } 522 }
523 } 523 }
524 } 524 }
525 525
526 source_set("unit_tests") {
527 testonly = true
528 deps = [
529 "//base",
530 "//media/base:test_support",
531 "//media/gpu",
532 "//testing/gtest",
533 ]
534 sources = [
535 "h264_decoder_unittest.cc",
536 ]
537
538 # 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.
539 # actually platform independent.
540 if (!is_chromeos && !is_win) {
541 sources += [
542 "accelerated_video_decoder.h",
543 "h264_decoder.cc",
544 "h264_decoder.h",
545 "h264_dpb.cc",
546 "h264_dpb.h",
547 ]
548 }
549
550 if (is_android) {
551 deps += [
552 # The test needs the java dependencies to add the java classes for their
553 # native counterparts to the test apk.
554 ":android_video_decode_accelerator_unittests",
555 "//media/base/android:media_java",
556 "//ui/android:ui_java",
557 ]
558 }
559 }
560
526 test("video_decode_accelerator_service_unittest") { 561 test("video_decode_accelerator_service_unittest") {
527 sources = [ 562 sources = [
528 "ipc/service/gpu_jpeg_decode_accelerator_unittest.cc", 563 "ipc/service/gpu_jpeg_decode_accelerator_unittest.cc",
529 ] 564 ]
530 565
531 deps = [ 566 deps = [
532 ":gpu", 567 ":gpu",
533 "//base", 568 "//base",
534 "//base/test:run_all_unittests", 569 "//base/test:run_all_unittests",
535 "//base/test:test_support", 570 "//base/test:test_support",
536 "//gpu:test_support", 571 "//gpu:test_support",
537 "//media/gpu/ipc/common", 572 "//media/gpu/ipc/common",
538 "//media/gpu/ipc/service", 573 "//media/gpu/ipc/service",
539 "//testing/gmock", 574 "//testing/gmock",
540 "//testing/gtest", 575 "//testing/gtest",
541 "//ui/gfx:test_support", 576 "//ui/gfx:test_support",
542 "//ui/gfx/geometry", 577 "//ui/gfx/geometry",
543 ] 578 ]
544 } 579 }
OLDNEW
« 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