blob: f9f26eb5d482f2052c0bc71bc920e1ec9ae8e872 [file] [log] [blame]
Sebastian Janssoncec24332019-12-04 14:26:50 +01001# 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 = [
Andrey Logvinf9ee0e02021-01-14 09:50:32 +000015 "cross_traffic.h",
Sebastian Janssoncec24332019-12-04 14:26:50 +010016 "network_emulation_interfaces.cc",
17 "network_emulation_interfaces.h",
18 ]
19
20 deps = [
Artem Titov3e0b65d2020-07-23 02:19:02 +020021 "../..:array_view",
Sebastian Janssoncec24332019-12-04 14:26:50 +010022 "../../../rtc_base",
23 "../../../rtc_base:checks",
Florent Castellied4aadc2022-04-19 17:40:46 +020024 "../../../rtc_base:copy_on_write_buffer",
Mirko Bonadeie5f4c6b2021-01-15 10:41:01 +010025 "../../../rtc_base:ip_address",
Mirko Bonadeie5f4c6b2021-01-15 10:41:01 +010026 "../../../rtc_base:socket_address",
Artem Titovcbe6e8a2020-09-22 15:45:00 +020027 "../../numerics",
Andrey Logvinf9ee0e02021-01-14 09:50:32 +000028 "../../task_queue",
Sebastian Janssoncec24332019-12-04 14:26:50 +010029 "../../units:data_rate",
30 "../../units:data_size",
Andrey Logvinf9ee0e02021-01-14 09:50:32 +000031 "../../units:time_delta",
Sebastian Janssoncec24332019-12-04 14:26:50 +010032 "../../units:timestamp",
Sebastian Janssoncec24332019-12-04 14:26:50 +010033 ]
Mirko Bonadei2dcf3482020-06-05 14:30:41 +020034 absl_deps = [ "//third_party/abseil-cpp/absl/types:optional" ]
Sebastian Janssoncec24332019-12-04 14:26:50 +010035}
Andrey Logvinf9ee0e02021-01-14 09:50:32 +000036
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}