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

Side by Side Diff: media/gpu/BUILD.gn

Issue 2481563002: Add AVDA unittests to media_unittests (Closed)
Patch Set: Created 4 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 unified diff | Download patch
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 351 matching lines...) Expand 10 before | Expand all | Expand 10 after
362 "/DELAYLOAD:d3d9.dll", 362 "/DELAYLOAD:d3d9.dll",
363 "/DELAYLOAD:d3d11.dll", 363 "/DELAYLOAD:d3d11.dll",
364 "/DELAYLOAD:dxva2.dll", 364 "/DELAYLOAD:dxva2.dll",
365 "/DELAYLOAD:mf.dll", 365 "/DELAYLOAD:mf.dll",
366 "/DELAYLOAD:mfplat.dll", 366 "/DELAYLOAD:mfplat.dll",
367 ] 367 ]
368 } 368 }
369 } 369 }
370 370
371 if (is_win || is_android || is_chromeos) { 371 if (is_win || is_android || is_chromeos) {
372 test("video_decode_accelerator_unittest") { 372 test("video_decode_accelerator_unittest") {
xhwang 2016/11/04 22:20:44 Is this running on bots today? If not, I wonder wh
watk 2016/11/04 22:25:45 No :( I broke it the other day on ChromeOS. I'm gu
xhwang 2016/11/04 22:42:36 Makes sense. Could you please file a bug and add a
373 sources = [ 373 sources = [
374 "video_accelerator_unittest_helpers.h", 374 "video_accelerator_unittest_helpers.h",
375 ] 375 ]
376 376
377 deps = [ 377 deps = [
378 ":gpu", 378 ":gpu",
379 "//base", 379 "//base",
380 "//media", 380 "//media",
381 "//media/gpu",
382 "//testing/gtest", 381 "//testing/gtest",
383 "//ui/base", 382 "//ui/base",
384 "//ui/gfx", 383 "//ui/gfx",
385 "//ui/gfx:test_support", 384 "//ui/gfx:test_support",
386 "//ui/gfx/geometry", 385 "//ui/gfx/geometry",
387 "//ui/gl", 386 "//ui/gl",
388 "//ui/gl:test_support", 387 "//ui/gl:test_support",
389 "//ui/gl/init", 388 "//ui/gl/init",
390 ] 389 ]
391 390
392 configs += [ 391 configs += [
393 "//third_party/khronos:khronos_headers", 392 "//third_party/khronos:khronos_headers",
394 ":gpu_config", 393 ":gpu_config",
395 ] 394 ]
396 if (is_chromeos && current_cpu != "arm") { 395 if (is_chromeos && current_cpu != "arm") {
397 configs += [ "//third_party/libva:libva_config" ] 396 configs += [ "//third_party/libva:libva_config" ]
398 } 397 }
399 398
400 if (is_android) { 399 if (is_win || is_chromeos) {
401 sources += [
402 "android_video_decode_accelerator_unittest.cc",
403 "avda_codec_allocator_unittest.cc",
404 ]
405 deps += [
406 "//gpu:test_support",
407 "//media/base/android",
408 "//media/base/android:media_java",
409 "//testing/gmock",
410 "//ui/android:ui_java",
411 ]
412 } else {
413 sources += [ 400 sources += [
414 "rendering_helper.cc", 401 "rendering_helper.cc",
415 "rendering_helper.h", 402 "rendering_helper.h",
416 "video_decode_accelerator_unittest.cc", 403 "video_decode_accelerator_unittest.cc",
417 ] 404 ]
418 deps += [ 405 deps += [
419 "//ui/display", 406 "//ui/display",
420 "//ui/display/types", 407 "//ui/display/types",
421 "//ui/platform_window", 408 "//ui/platform_window",
422 ] 409 ]
423 if (use_ozone) { 410 }
424 deps += [ "//ui/ozone" ] 411
425 } 412 if (is_android) {
413 deps += [
414 ":android_video_decode_accelerator_unittests",
415 "//media/base/android:media_java",
416 "//media/test:run_all_unittests",
417 "//ui/android:ui_java",
418 ]
426 } 419 }
427 420
428 if (is_win) { 421 if (is_win) {
429 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. 422 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
430 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] 423 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ]
431 deps += [ 424 deps += [
432 "//third_party/angle:libEGL", 425 "//third_party/angle:libEGL",
433 "//third_party/angle:libGLESv2", 426 "//third_party/angle:libGLESv2",
434 ] 427 ]
435 } 428 }
436 429
437 if (use_x11) { 430 if (use_x11) {
438 configs += [ "//build/config/linux:x11" ] 431 configs += [ "//build/config/linux:x11" ]
439 deps += [ "//ui/gfx/x" ] 432 deps += [ "//ui/gfx/x" ]
440 } 433 }
434
435 if (use_ozone) {
436 deps += [ "//ui/ozone" ]
437 }
441 } 438 }
442 } 439 }
443 440
441 source_set("android_video_decode_accelerator_unittests") {
442 testonly = true
443 sources = [
444 "android_video_decode_accelerator_unittest.cc",
445 "avda_codec_allocator_unittest.cc",
446 ]
447 deps = [
448 ":gpu",
449 "//gpu:test_support",
450 "//media/base/android",
451 "//testing/gmock",
452 ]
453 }
454
444 if (is_chromeos || is_mac || is_win) { 455 if (is_chromeos || is_mac || is_win) {
445 test("video_encode_accelerator_unittest") { 456 test("video_encode_accelerator_unittest") {
446 deps = [ 457 deps = [
447 "//base", 458 "//base",
448 "//media", 459 "//media",
449 "//media/base:test_support", 460 "//media/base:test_support",
450 "//media/gpu", 461 "//media/gpu",
451 "//testing/gtest", 462 "//testing/gtest",
452 "//ui/base", 463 "//ui/base",
453 "//ui/gfx", 464 "//ui/gfx",
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
500 "video_accelerator_unittest_helpers.h", 511 "video_accelerator_unittest_helpers.h",
501 ] 512 ]
502 if (use_x11) { 513 if (use_x11) {
503 deps += [ "//ui/gfx/x" ] 514 deps += [ "//ui/gfx/x" ]
504 } 515 }
505 if (use_ozone) { 516 if (use_ozone) {
506 deps += [ "//ui/ozone" ] 517 deps += [ "//ui/ozone" ]
507 } 518 }
508 } 519 }
509 } 520 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698