BUILD.gn 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. # Copyright 2017 The Chromium Authors. All rights reserved.
  2. # Use of this source code is governed by a BSD-style license that can be
  3. # found in the LICENSE file.
  4. import("//testing/test.gni")
  5. import("//third_party/protobuf/proto_library.gni")
  6. proto_library("video_decode_stats_proto") {
  7. sources = [ "video_decode_stats.proto" ]
  8. }
  9. proto_library("webrtc_video_stats_proto") {
  10. sources = [ "webrtc_video_stats.proto" ]
  11. }
  12. source_set("capabilities") {
  13. # Do not expand the visibility here without double-checking with OWNERS, this
  14. # is a roll-up target which is part of the //media component. Most other DEPs
  15. # should be using //media and not directly DEP this roll-up target.
  16. visibility = [ "//media" ]
  17. sources = [
  18. "bucket_utility.cc",
  19. "bucket_utility.h",
  20. "in_memory_video_decode_stats_db_impl.cc",
  21. "in_memory_video_decode_stats_db_impl.h",
  22. "learning_helper.cc",
  23. "learning_helper.h",
  24. "pending_operations.cc",
  25. "pending_operations.h",
  26. "video_decode_stats_db.cc",
  27. "video_decode_stats_db.h",
  28. "video_decode_stats_db_impl.cc",
  29. "video_decode_stats_db_impl.h",
  30. "video_decode_stats_db_provider.cc",
  31. "video_decode_stats_db_provider.h",
  32. "webrtc_video_stats_db.cc",
  33. "webrtc_video_stats_db.h",
  34. "webrtc_video_stats_db_impl.cc",
  35. "webrtc_video_stats_db_impl.h",
  36. "webrtc_video_stats_db_provider.cc",
  37. "webrtc_video_stats_db_provider.h",
  38. ]
  39. public_deps = [
  40. ":video_decode_stats_proto",
  41. ":webrtc_video_stats_proto",
  42. "//base",
  43. "//components/leveldb_proto",
  44. "//media/base",
  45. "//ui/gfx/geometry",
  46. ]
  47. deps = [
  48. "//media/learning/common",
  49. "//media/learning/impl",
  50. ]
  51. configs += [ "//media:subcomponent_config" ]
  52. }
  53. source_set("unit_tests") {
  54. testonly = true
  55. sources = [
  56. "in_memory_video_decode_stats_db_unittest.cc",
  57. "pending_operations_unittest.cc",
  58. "video_decode_stats_db_impl_unittest.cc",
  59. "video_decode_stats_db_unittest.cc",
  60. "webrtc_video_stats_db_impl_unittest.cc",
  61. "webrtc_video_stats_db_unittest.cc",
  62. ]
  63. deps = [
  64. # Explicitly adding the proto lib here (in addition to "capabilities"
  65. # public_deps), because the generated files seem not to be available through
  66. # the transitive "capabilities" target (via media:test_support -> media).
  67. ":video_decode_stats_proto",
  68. ":webrtc_video_stats_proto",
  69. "//base/test:test_support",
  70. "//components/leveldb_proto:test_support",
  71. "//media:test_support",
  72. "//testing/gmock",
  73. "//testing/gtest",
  74. ]
  75. }