2019-12-04 14:26:50 +01:00
|
|
|
# Copyright (c) 2019 The WebRTC project authors. All Rights Reserved.
|
|
|
|
|
#
|
|
|
|
|
# Use of this source code is governed by a BSD-style license
|
|
|
|
|
# that can be found in the LICENSE file in the root of the source
|
|
|
|
|
# tree. An additional intellectual property rights grant can be found
|
|
|
|
|
# in the file PATENTS. All contributing project authors may
|
|
|
|
|
# be found in the AUTHORS file in the root of the source tree.
|
|
|
|
|
|
|
|
|
|
import("../../../webrtc.gni")
|
|
|
|
|
|
|
|
|
|
rtc_library("network_emulation") {
|
|
|
|
|
visibility = [ "*" ]
|
|
|
|
|
|
|
|
|
|
sources = [
|
2021-01-14 09:50:32 +00:00
|
|
|
"cross_traffic.h",
|
2019-12-04 14:26:50 +01:00
|
|
|
"network_emulation_interfaces.cc",
|
|
|
|
|
"network_emulation_interfaces.h",
|
|
|
|
|
]
|
|
|
|
|
|
|
|
|
|
deps = [
|
2020-07-23 02:19:02 +02:00
|
|
|
"../..:array_view",
|
2019-12-04 14:26:50 +01:00
|
|
|
"../../../rtc_base",
|
|
|
|
|
"../../../rtc_base:checks",
|
2021-01-15 10:41:01 +01:00
|
|
|
"../../../rtc_base:ip_address",
|
2019-12-04 14:26:50 +01:00
|
|
|
"../../../rtc_base:rtc_base_approved",
|
2021-01-15 10:41:01 +01:00
|
|
|
"../../../rtc_base:socket_address",
|
2020-09-22 15:45:00 +02:00
|
|
|
"../../numerics",
|
2021-01-14 09:50:32 +00:00
|
|
|
"../../task_queue",
|
2019-12-04 14:26:50 +01:00
|
|
|
"../../units:data_rate",
|
|
|
|
|
"../../units:data_size",
|
2021-01-14 09:50:32 +00:00
|
|
|
"../../units:time_delta",
|
2019-12-04 14:26:50 +01:00
|
|
|
"../../units:timestamp",
|
|
|
|
|
]
|
2020-06-05 14:30:41 +02:00
|
|
|
absl_deps = [ "//third_party/abseil-cpp/absl/types:optional" ]
|
2019-12-04 14:26:50 +01:00
|
|
|
}
|
2021-01-14 09:50:32 +00:00
|
|
|
|
|
|
|
|
rtc_library("create_cross_traffic") {
|
|
|
|
|
visibility = [ "*" ]
|
|
|
|
|
testonly = true
|
|
|
|
|
|
|
|
|
|
sources = [
|
|
|
|
|
"create_cross_traffic.cc",
|
|
|
|
|
"create_cross_traffic.h",
|
|
|
|
|
]
|
|
|
|
|
|
|
|
|
|
deps = [
|
|
|
|
|
":network_emulation",
|
|
|
|
|
"../..:network_emulation_manager_api",
|
|
|
|
|
"../../../rtc_base/task_utils:repeating_task",
|
|
|
|
|
"../../../test/network:emulated_network",
|
|
|
|
|
]
|
|
|
|
|
}
|