Sebastian Jansson | cec2433 | 2019-12-04 14:26:50 +0100 | [diff] [blame] | 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 | |
| 9 | import("../../../webrtc.gni") |
| 10 | |
| 11 | rtc_library("network_emulation") { |
| 12 | visibility = [ "*" ] |
| 13 | |
| 14 | sources = [ |
Andrey Logvin | f9ee0e0 | 2021-01-14 09:50:32 +0000 | [diff] [blame] | 15 | "cross_traffic.h", |
Sebastian Jansson | cec2433 | 2019-12-04 14:26:50 +0100 | [diff] [blame] | 16 | "network_emulation_interfaces.cc", |
| 17 | "network_emulation_interfaces.h", |
| 18 | ] |
| 19 | |
| 20 | deps = [ |
Artem Titov | 3e0b65d | 2020-07-23 02:19:02 +0200 | [diff] [blame] | 21 | "../..:array_view", |
Sebastian Jansson | cec2433 | 2019-12-04 14:26:50 +0100 | [diff] [blame] | 22 | "../../../rtc_base", |
| 23 | "../../../rtc_base:checks", |
Florent Castelli | ed4aadc | 2022-04-19 17:40:46 +0200 | [diff] [blame] | 24 | "../../../rtc_base:copy_on_write_buffer", |
Mirko Bonadei | e5f4c6b | 2021-01-15 10:41:01 +0100 | [diff] [blame] | 25 | "../../../rtc_base:ip_address", |
Mirko Bonadei | e5f4c6b | 2021-01-15 10:41:01 +0100 | [diff] [blame] | 26 | "../../../rtc_base:socket_address", |
Artem Titov | cbe6e8a | 2020-09-22 15:45:00 +0200 | [diff] [blame] | 27 | "../../numerics", |
Andrey Logvin | f9ee0e0 | 2021-01-14 09:50:32 +0000 | [diff] [blame] | 28 | "../../task_queue", |
Sebastian Jansson | cec2433 | 2019-12-04 14:26:50 +0100 | [diff] [blame] | 29 | "../../units:data_rate", |
| 30 | "../../units:data_size", |
Andrey Logvin | f9ee0e0 | 2021-01-14 09:50:32 +0000 | [diff] [blame] | 31 | "../../units:time_delta", |
Sebastian Jansson | cec2433 | 2019-12-04 14:26:50 +0100 | [diff] [blame] | 32 | "../../units:timestamp", |
Sebastian Jansson | cec2433 | 2019-12-04 14:26:50 +0100 | [diff] [blame] | 33 | ] |
Mirko Bonadei | 2dcf348 | 2020-06-05 14:30:41 +0200 | [diff] [blame] | 34 | absl_deps = [ "//third_party/abseil-cpp/absl/types:optional" ] |
Sebastian Jansson | cec2433 | 2019-12-04 14:26:50 +0100 | [diff] [blame] | 35 | } |
Andrey Logvin | f9ee0e0 | 2021-01-14 09:50:32 +0000 | [diff] [blame] | 36 | |
| 37 | rtc_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 | } |