BUILD.gn 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  1. # Copyright 2020 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. if (is_android) {
  5. import("//build/config/android/rules.gni")
  6. }
  7. if (!is_ios) {
  8. source_set("media_stream_device_enumerator") {
  9. sources = [
  10. "media_stream_device_enumerator.h",
  11. "media_stream_device_enumerator_impl.cc",
  12. "media_stream_device_enumerator_impl.h",
  13. ]
  14. deps = [
  15. "//base",
  16. "//content/public/browser",
  17. "//third_party/blink/public/common",
  18. ]
  19. }
  20. source_set("webrtc") {
  21. sources = [
  22. "media_stream_devices_controller.cc",
  23. "media_stream_devices_controller.h",
  24. ]
  25. public_deps = [ ":media_stream_device_enumerator" ]
  26. deps = [
  27. "//base",
  28. "//components/content_settings/core/common",
  29. "//components/permissions",
  30. "//content/public/browser",
  31. "//third_party/blink/public/common",
  32. ]
  33. if (is_android) {
  34. deps += [ "//ui/android" ]
  35. }
  36. }
  37. }
  38. source_set("fake_ssl_socket") {
  39. visibility = [
  40. ":*",
  41. "//services/network:*",
  42. ]
  43. sources = [
  44. "fake_ssl_client_socket.cc",
  45. "fake_ssl_client_socket.h",
  46. ]
  47. public_deps = [
  48. "//base",
  49. "//net",
  50. "//net/traffic_annotation",
  51. ]
  52. }
  53. source_set("net_address_utils") {
  54. sources = [
  55. "net_address_utils.cc",
  56. "net_address_utils.h",
  57. ]
  58. public_deps = [
  59. "//base",
  60. "//net",
  61. "//third_party/webrtc_overrides:webrtc_component",
  62. ]
  63. }
  64. source_set("thread_wrapper") {
  65. sources = [
  66. "thread_wrapper.cc",
  67. "thread_wrapper.h",
  68. ]
  69. public_deps = [
  70. "//base",
  71. "//third_party/webrtc_overrides:webrtc_component",
  72. ]
  73. }
  74. source_set("unit_tests") {
  75. testonly = true
  76. sources = [
  77. "fake_ssl_client_socket_unittest.cc",
  78. "thread_wrapper_unittest.cc",
  79. ]
  80. deps = [
  81. ":fake_ssl_socket",
  82. ":thread_wrapper",
  83. "//base/test:test_support",
  84. "//net:test_support",
  85. "//testing/gmock",
  86. "//testing/gtest",
  87. "//third_party/webrtc_overrides:metronome_like_task_queue_test",
  88. ]
  89. }