1# Copyright (c) 2017 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 11if (!build_with_chromium) { 12 group("conversational_speech") { 13 testonly = true 14 deps = [ ":conversational_speech_generator" ] 15 } 16 17 rtc_executable("conversational_speech_generator") { 18 testonly = true 19 sources = [ "generator.cc" ] 20 deps = [ 21 ":lib", 22 "../../../../test:fileutils", 23 "../../../../test:test_support", 24 "//third_party/abseil-cpp/absl/flags:flag", 25 "//third_party/abseil-cpp/absl/flags:parse", 26 ] 27 } 28} 29 30rtc_library("lib") { 31 testonly = true 32 sources = [ 33 "config.cc", 34 "config.h", 35 "multiend_call.cc", 36 "multiend_call.h", 37 "simulator.cc", 38 "simulator.h", 39 "timing.cc", 40 "timing.h", 41 "wavreader_abstract_factory.h", 42 "wavreader_factory.cc", 43 "wavreader_factory.h", 44 "wavreader_interface.h", 45 ] 46 deps = [ 47 "../../../../api:array_view", 48 "../../../../common_audio", 49 "../../../../rtc_base:checks", 50 "../../../../rtc_base:logging", 51 "../../../../rtc_base:safe_conversions", 52 "../../../../rtc_base:stringutils", 53 "../../../../test:fileutils", 54 ] 55 absl_deps = [ "//third_party/abseil-cpp/absl/strings" ] 56 visibility = [ ":*" ] # Only targets in this file can depend on this. 57} 58 59rtc_library("unittest") { 60 testonly = true 61 sources = [ 62 "generator_unittest.cc", 63 "mock_wavreader.cc", 64 "mock_wavreader.h", 65 "mock_wavreader_factory.cc", 66 "mock_wavreader_factory.h", 67 ] 68 deps = [ 69 ":lib", 70 "../../../../api:array_view", 71 "../../../../common_audio", 72 "../../../../rtc_base:logging", 73 "../../../../test:fileutils", 74 "../../../../test:test_support", 75 "//testing/gtest", 76 ] 77 absl_deps = [ 78 "//third_party/abseil-cpp/absl/strings", 79 "//third_party/abseil-cpp/absl/types:optional", 80 ] 81} 82