1# Copyright (c) 2019 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_library("network_emulation") { 12 visibility = [ "*" ] 13 14 sources = [ 15 "cross_traffic.h", 16 "network_emulation_interfaces.cc", 17 "network_emulation_interfaces.h", 18 ] 19 20 deps = [ 21 "../..:array_view", 22 "../../../rtc_base", 23 "../../../rtc_base:checks", 24 "../../../rtc_base:copy_on_write_buffer", 25 "../../../rtc_base:ip_address", 26 "../../../rtc_base:socket_address", 27 "../../numerics", 28 "../../task_queue", 29 "../../units:data_rate", 30 "../../units:data_size", 31 "../../units:time_delta", 32 "../../units:timestamp", 33 ] 34 absl_deps = [ "//third_party/abseil-cpp/absl/types:optional" ] 35} 36 37rtc_library("create_cross_traffic") { 38 visibility = [ "*" ] 39 testonly = true 40 41 sources = [ 42 "create_cross_traffic.cc", 43 "create_cross_traffic.h", 44 ] 45 46 deps = [ 47 ":network_emulation", 48 "../..:network_emulation_manager_api", 49 "../../../rtc_base/task_utils:repeating_task", 50 "../../../test/network:emulated_network", 51 ] 52} 53