1# Copyright(c) 2020 The WebRTC project authors.All Rights Reserved. 2# 3# Use of this source code is governed by a BSD - style license 4# that can be found in the LICENSE file in the root of the source 5# tree.An additional intellectual property rights grant can be found 6# in the file PATENTS.All contributing project authors may 7# be found in the AUTHORS file in the root of the source tree. 8 9import("../../webrtc.gni") 10 11rtc_source_set("voip_api") { 12 visibility = [ "*" ] 13 sources = [ 14 "voip_base.h", 15 "voip_codec.h", 16 "voip_dtmf.h", 17 "voip_engine.h", 18 "voip_network.h", 19 "voip_statistics.h", 20 "voip_volume_control.h", 21 ] 22 deps = [ 23 "..:array_view", 24 "../audio_codecs:audio_codecs_api", 25 "../neteq:neteq_api", 26 ] 27 absl_deps = [ 28 "//third_party/abseil-cpp/absl/base:core_headers", 29 "//third_party/abseil-cpp/absl/types:optional", 30 ] 31} 32 33rtc_library("voip_engine_factory") { 34 visibility = [ "*" ] 35 sources = [ 36 "voip_engine_factory.cc", 37 "voip_engine_factory.h", 38 ] 39 deps = [ 40 ":voip_api", 41 "..:scoped_refptr", 42 "../../audio/voip:voip_core", 43 "../../modules/audio_device:audio_device_api", 44 "../../modules/audio_processing:api", 45 "../../rtc_base:logging", 46 "../audio_codecs:audio_codecs_api", 47 "../task_queue", 48 ] 49} 50 51if (rtc_include_tests) { 52 rtc_source_set("mock_voip_engine") { 53 testonly = true 54 visibility = [ "*" ] 55 sources = [ "test/mock_voip_engine.h" ] 56 deps = [ 57 ":voip_api", 58 "..:array_view", 59 "../../test:test_support", 60 ] 61 absl_deps = [ "//third_party/abseil-cpp/absl/types:optional" ] 62 } 63 64 rtc_library("voip_engine_factory_unittests") { 65 testonly = true 66 sources = [ "test/voip_engine_factory_unittest.cc" ] 67 deps = [ 68 ":voip_engine_factory", 69 "../../modules/audio_device:mock_audio_device", 70 "../../modules/audio_processing:mocks", 71 "../../test:audio_codec_mocks", 72 "../../test:test_support", 73 "../task_queue:default_task_queue_factory", 74 ] 75 } 76 77 rtc_library("compile_all_headers") { 78 testonly = true 79 sources = [ "test/compile_all_headers.cc" ] 80 deps = [ 81 ":mock_voip_engine", 82 "../../test:test_support", 83 ] 84 } 85} 86