1*d9f75844SAndroid Build Coastguard Worker# Copyright (c) 2016 The WebRTC project authors. All Rights Reserved. 2*d9f75844SAndroid Build Coastguard Worker# 3*d9f75844SAndroid Build Coastguard Worker# Use of this source code is governed by a BSD-style license 4*d9f75844SAndroid Build Coastguard Worker# that can be found in the LICENSE file in the root of the source 5*d9f75844SAndroid Build Coastguard Worker# tree. An additional intellectual property rights grant can be found 6*d9f75844SAndroid Build Coastguard Worker# in the file PATENTS. All contributing project authors may 7*d9f75844SAndroid Build Coastguard Worker# be found in the AUTHORS file in the root of the source tree. 8*d9f75844SAndroid Build Coastguard Worker 9*d9f75844SAndroid Build Coastguard Workerimport("../webrtc.gni") 10*d9f75844SAndroid Build Coastguard Worker 11*d9f75844SAndroid Build Coastguard Workergroup("p2p") { 12*d9f75844SAndroid Build Coastguard Worker deps = [ 13*d9f75844SAndroid Build Coastguard Worker ":libstunprober", 14*d9f75844SAndroid Build Coastguard Worker ":rtc_p2p", 15*d9f75844SAndroid Build Coastguard Worker ] 16*d9f75844SAndroid Build Coastguard Worker} 17*d9f75844SAndroid Build Coastguard Worker 18*d9f75844SAndroid Build Coastguard Workerrtc_library("rtc_p2p") { 19*d9f75844SAndroid Build Coastguard Worker visibility = [ "*" ] 20*d9f75844SAndroid Build Coastguard Worker sources = [ 21*d9f75844SAndroid Build Coastguard Worker "base/active_ice_controller_factory_interface.h", 22*d9f75844SAndroid Build Coastguard Worker "base/active_ice_controller_interface.h", 23*d9f75844SAndroid Build Coastguard Worker "base/async_stun_tcp_socket.cc", 24*d9f75844SAndroid Build Coastguard Worker "base/async_stun_tcp_socket.h", 25*d9f75844SAndroid Build Coastguard Worker "base/basic_async_resolver_factory.cc", 26*d9f75844SAndroid Build Coastguard Worker "base/basic_async_resolver_factory.h", 27*d9f75844SAndroid Build Coastguard Worker "base/basic_ice_controller.cc", 28*d9f75844SAndroid Build Coastguard Worker "base/basic_ice_controller.h", 29*d9f75844SAndroid Build Coastguard Worker "base/basic_packet_socket_factory.cc", 30*d9f75844SAndroid Build Coastguard Worker "base/basic_packet_socket_factory.h", 31*d9f75844SAndroid Build Coastguard Worker "base/candidate_pair_interface.h", 32*d9f75844SAndroid Build Coastguard Worker "base/connection.cc", 33*d9f75844SAndroid Build Coastguard Worker "base/connection.h", 34*d9f75844SAndroid Build Coastguard Worker "base/connection_info.cc", 35*d9f75844SAndroid Build Coastguard Worker "base/connection_info.h", 36*d9f75844SAndroid Build Coastguard Worker "base/default_ice_transport_factory.cc", 37*d9f75844SAndroid Build Coastguard Worker "base/default_ice_transport_factory.h", 38*d9f75844SAndroid Build Coastguard Worker "base/dtls_transport.cc", 39*d9f75844SAndroid Build Coastguard Worker "base/dtls_transport.h", 40*d9f75844SAndroid Build Coastguard Worker "base/dtls_transport_factory.h", 41*d9f75844SAndroid Build Coastguard Worker "base/dtls_transport_internal.cc", 42*d9f75844SAndroid Build Coastguard Worker "base/dtls_transport_internal.h", 43*d9f75844SAndroid Build Coastguard Worker "base/ice_agent_interface.h", 44*d9f75844SAndroid Build Coastguard Worker "base/ice_controller_factory_interface.h", 45*d9f75844SAndroid Build Coastguard Worker "base/ice_controller_interface.cc", 46*d9f75844SAndroid Build Coastguard Worker "base/ice_controller_interface.h", 47*d9f75844SAndroid Build Coastguard Worker "base/ice_credentials_iterator.cc", 48*d9f75844SAndroid Build Coastguard Worker "base/ice_credentials_iterator.h", 49*d9f75844SAndroid Build Coastguard Worker "base/ice_switch_reason.cc", 50*d9f75844SAndroid Build Coastguard Worker "base/ice_switch_reason.h", 51*d9f75844SAndroid Build Coastguard Worker "base/ice_transport_internal.cc", 52*d9f75844SAndroid Build Coastguard Worker "base/ice_transport_internal.h", 53*d9f75844SAndroid Build Coastguard Worker "base/p2p_constants.cc", 54*d9f75844SAndroid Build Coastguard Worker "base/p2p_constants.h", 55*d9f75844SAndroid Build Coastguard Worker "base/p2p_transport_channel.cc", 56*d9f75844SAndroid Build Coastguard Worker "base/p2p_transport_channel.h", 57*d9f75844SAndroid Build Coastguard Worker "base/p2p_transport_channel_ice_field_trials.h", 58*d9f75844SAndroid Build Coastguard Worker "base/packet_transport_internal.cc", 59*d9f75844SAndroid Build Coastguard Worker "base/packet_transport_internal.h", 60*d9f75844SAndroid Build Coastguard Worker "base/port.cc", 61*d9f75844SAndroid Build Coastguard Worker "base/port.h", 62*d9f75844SAndroid Build Coastguard Worker "base/port_allocator.cc", 63*d9f75844SAndroid Build Coastguard Worker "base/port_allocator.h", 64*d9f75844SAndroid Build Coastguard Worker "base/port_interface.cc", 65*d9f75844SAndroid Build Coastguard Worker "base/port_interface.h", 66*d9f75844SAndroid Build Coastguard Worker "base/pseudo_tcp.cc", 67*d9f75844SAndroid Build Coastguard Worker "base/pseudo_tcp.h", 68*d9f75844SAndroid Build Coastguard Worker "base/regathering_controller.cc", 69*d9f75844SAndroid Build Coastguard Worker "base/regathering_controller.h", 70*d9f75844SAndroid Build Coastguard Worker "base/stun_port.cc", 71*d9f75844SAndroid Build Coastguard Worker "base/stun_port.h", 72*d9f75844SAndroid Build Coastguard Worker "base/stun_request.cc", 73*d9f75844SAndroid Build Coastguard Worker "base/stun_request.h", 74*d9f75844SAndroid Build Coastguard Worker "base/tcp_port.cc", 75*d9f75844SAndroid Build Coastguard Worker "base/tcp_port.h", 76*d9f75844SAndroid Build Coastguard Worker "base/transport_description.cc", 77*d9f75844SAndroid Build Coastguard Worker "base/transport_description.h", 78*d9f75844SAndroid Build Coastguard Worker "base/transport_description_factory.cc", 79*d9f75844SAndroid Build Coastguard Worker "base/transport_description_factory.h", 80*d9f75844SAndroid Build Coastguard Worker "base/transport_info.h", 81*d9f75844SAndroid Build Coastguard Worker "base/turn_port.cc", 82*d9f75844SAndroid Build Coastguard Worker "base/turn_port.h", 83*d9f75844SAndroid Build Coastguard Worker "base/udp_port.h", 84*d9f75844SAndroid Build Coastguard Worker "base/wrapping_active_ice_controller.cc", 85*d9f75844SAndroid Build Coastguard Worker "base/wrapping_active_ice_controller.h", 86*d9f75844SAndroid Build Coastguard Worker "client/basic_port_allocator.cc", 87*d9f75844SAndroid Build Coastguard Worker "client/basic_port_allocator.h", 88*d9f75844SAndroid Build Coastguard Worker "client/relay_port_factory_interface.h", 89*d9f75844SAndroid Build Coastguard Worker "client/turn_port_factory.cc", 90*d9f75844SAndroid Build Coastguard Worker "client/turn_port_factory.h", 91*d9f75844SAndroid Build Coastguard Worker ] 92*d9f75844SAndroid Build Coastguard Worker 93*d9f75844SAndroid Build Coastguard Worker deps = [ 94*d9f75844SAndroid Build Coastguard Worker "../api:array_view", 95*d9f75844SAndroid Build Coastguard Worker "../api:async_dns_resolver", 96*d9f75844SAndroid Build Coastguard Worker "../api:candidate", 97*d9f75844SAndroid Build Coastguard Worker "../api:dtls_transport_interface", 98*d9f75844SAndroid Build Coastguard Worker "../api:field_trials_view", 99*d9f75844SAndroid Build Coastguard Worker "../api:ice_transport_interface", 100*d9f75844SAndroid Build Coastguard Worker "../api:make_ref_counted", 101*d9f75844SAndroid Build Coastguard Worker "../api:packet_socket_factory", 102*d9f75844SAndroid Build Coastguard Worker "../api:rtc_error", 103*d9f75844SAndroid Build Coastguard Worker "../api:scoped_refptr", 104*d9f75844SAndroid Build Coastguard Worker "../api:sequence_checker", 105*d9f75844SAndroid Build Coastguard Worker "../api:turn_customizer", 106*d9f75844SAndroid Build Coastguard Worker "../api:wrapping_async_dns_resolver", 107*d9f75844SAndroid Build Coastguard Worker "../api/crypto:options", 108*d9f75844SAndroid Build Coastguard Worker "../api/rtc_event_log", 109*d9f75844SAndroid Build Coastguard Worker "../api/task_queue", 110*d9f75844SAndroid Build Coastguard Worker "../api/transport:enums", 111*d9f75844SAndroid Build Coastguard Worker "../api/transport:field_trial_based_config", 112*d9f75844SAndroid Build Coastguard Worker "../api/transport:stun_types", 113*d9f75844SAndroid Build Coastguard Worker "../api/units:time_delta", 114*d9f75844SAndroid Build Coastguard Worker "../api/units:timestamp", 115*d9f75844SAndroid Build Coastguard Worker "../logging:ice_log", 116*d9f75844SAndroid Build Coastguard Worker "../rtc_base", 117*d9f75844SAndroid Build Coastguard Worker "../rtc_base:async_resolver_interface", 118*d9f75844SAndroid Build Coastguard Worker "../rtc_base:buffer", 119*d9f75844SAndroid Build Coastguard Worker "../rtc_base:buffer_queue", 120*d9f75844SAndroid Build Coastguard Worker "../rtc_base:byte_buffer", 121*d9f75844SAndroid Build Coastguard Worker "../rtc_base:byte_order", 122*d9f75844SAndroid Build Coastguard Worker "../rtc_base:callback_list", 123*d9f75844SAndroid Build Coastguard Worker "../rtc_base:checks", 124*d9f75844SAndroid Build Coastguard Worker "../rtc_base:event_tracer", 125*d9f75844SAndroid Build Coastguard Worker "../rtc_base:ip_address", 126*d9f75844SAndroid Build Coastguard Worker "../rtc_base:logging", 127*d9f75844SAndroid Build Coastguard Worker "../rtc_base:macromagic", 128*d9f75844SAndroid Build Coastguard Worker "../rtc_base:net_helpers", 129*d9f75844SAndroid Build Coastguard Worker "../rtc_base:network_constants", 130*d9f75844SAndroid Build Coastguard Worker "../rtc_base:rate_tracker", 131*d9f75844SAndroid Build Coastguard Worker "../rtc_base:refcount", 132*d9f75844SAndroid Build Coastguard Worker "../rtc_base:rtc_numerics", 133*d9f75844SAndroid Build Coastguard Worker "../rtc_base:socket", 134*d9f75844SAndroid Build Coastguard Worker "../rtc_base:socket_address", 135*d9f75844SAndroid Build Coastguard Worker "../rtc_base:socket_factory", 136*d9f75844SAndroid Build Coastguard Worker "../rtc_base:socket_server", 137*d9f75844SAndroid Build Coastguard Worker "../rtc_base:stringutils", 138*d9f75844SAndroid Build Coastguard Worker "../rtc_base:threading", 139*d9f75844SAndroid Build Coastguard Worker "../rtc_base:timeutils", 140*d9f75844SAndroid Build Coastguard Worker "../rtc_base/containers:flat_map", 141*d9f75844SAndroid Build Coastguard Worker "../rtc_base/experiments:field_trial_parser", 142*d9f75844SAndroid Build Coastguard Worker "../rtc_base/memory:always_valid_pointer", 143*d9f75844SAndroid Build Coastguard Worker "../rtc_base/system:no_unique_address", 144*d9f75844SAndroid Build Coastguard Worker 145*d9f75844SAndroid Build Coastguard Worker # Needed by pseudo_tcp, which should move to a separate target. 146*d9f75844SAndroid Build Coastguard Worker "../api/task_queue:pending_task_safety_flag", 147*d9f75844SAndroid Build Coastguard Worker "../rtc_base:safe_minmax", 148*d9f75844SAndroid Build Coastguard Worker "../rtc_base:weak_ptr", 149*d9f75844SAndroid Build Coastguard Worker "../rtc_base/network:sent_packet", 150*d9f75844SAndroid Build Coastguard Worker "../rtc_base/synchronization:mutex", 151*d9f75844SAndroid Build Coastguard Worker "../rtc_base/system:rtc_export", 152*d9f75844SAndroid Build Coastguard Worker "../rtc_base/third_party/base64", 153*d9f75844SAndroid Build Coastguard Worker "../rtc_base/third_party/sigslot", 154*d9f75844SAndroid Build Coastguard Worker "../system_wrappers:metrics", 155*d9f75844SAndroid Build Coastguard Worker ] 156*d9f75844SAndroid Build Coastguard Worker absl_deps = [ 157*d9f75844SAndroid Build Coastguard Worker "//third_party/abseil-cpp/absl/algorithm:container", 158*d9f75844SAndroid Build Coastguard Worker "//third_party/abseil-cpp/absl/base:core_headers", 159*d9f75844SAndroid Build Coastguard Worker "//third_party/abseil-cpp/absl/memory", 160*d9f75844SAndroid Build Coastguard Worker "//third_party/abseil-cpp/absl/strings", 161*d9f75844SAndroid Build Coastguard Worker "//third_party/abseil-cpp/absl/types:optional", 162*d9f75844SAndroid Build Coastguard Worker ] 163*d9f75844SAndroid Build Coastguard Worker} 164*d9f75844SAndroid Build Coastguard Worker 165*d9f75844SAndroid Build Coastguard Workerif (rtc_include_tests) { 166*d9f75844SAndroid Build Coastguard Worker rtc_library("fake_ice_transport") { 167*d9f75844SAndroid Build Coastguard Worker testonly = true 168*d9f75844SAndroid Build Coastguard Worker visibility = [ "*" ] 169*d9f75844SAndroid Build Coastguard Worker sources = [ "base/fake_ice_transport.h" ] 170*d9f75844SAndroid Build Coastguard Worker deps = [ 171*d9f75844SAndroid Build Coastguard Worker ":rtc_p2p", 172*d9f75844SAndroid Build Coastguard Worker "../api:ice_transport_interface", 173*d9f75844SAndroid Build Coastguard Worker "../api:libjingle_peerconnection_api", 174*d9f75844SAndroid Build Coastguard Worker "../api/task_queue:pending_task_safety_flag", 175*d9f75844SAndroid Build Coastguard Worker "../api/units:time_delta", 176*d9f75844SAndroid Build Coastguard Worker "../rtc_base:copy_on_write_buffer", 177*d9f75844SAndroid Build Coastguard Worker "../rtc_base:task_queue_for_test", 178*d9f75844SAndroid Build Coastguard Worker ] 179*d9f75844SAndroid Build Coastguard Worker absl_deps = [ 180*d9f75844SAndroid Build Coastguard Worker "//third_party/abseil-cpp/absl/algorithm:container", 181*d9f75844SAndroid Build Coastguard Worker "//third_party/abseil-cpp/absl/strings", 182*d9f75844SAndroid Build Coastguard Worker "//third_party/abseil-cpp/absl/types:optional", 183*d9f75844SAndroid Build Coastguard Worker ] 184*d9f75844SAndroid Build Coastguard Worker } 185*d9f75844SAndroid Build Coastguard Worker 186*d9f75844SAndroid Build Coastguard Worker rtc_library("fake_port_allocator") { 187*d9f75844SAndroid Build Coastguard Worker testonly = true 188*d9f75844SAndroid Build Coastguard Worker visibility = [ "*" ] 189*d9f75844SAndroid Build Coastguard Worker sources = [ "base/fake_port_allocator.h" ] 190*d9f75844SAndroid Build Coastguard Worker deps = [ 191*d9f75844SAndroid Build Coastguard Worker ":rtc_p2p", 192*d9f75844SAndroid Build Coastguard Worker "../rtc_base:net_helpers", 193*d9f75844SAndroid Build Coastguard Worker "../rtc_base:task_queue_for_test", 194*d9f75844SAndroid Build Coastguard Worker "../rtc_base:threading", 195*d9f75844SAndroid Build Coastguard Worker "../rtc_base/memory:always_valid_pointer", 196*d9f75844SAndroid Build Coastguard Worker "../test:scoped_key_value_config", 197*d9f75844SAndroid Build Coastguard Worker ] 198*d9f75844SAndroid Build Coastguard Worker absl_deps = [ "//third_party/abseil-cpp/absl/strings" ] 199*d9f75844SAndroid Build Coastguard Worker } 200*d9f75844SAndroid Build Coastguard Worker 201*d9f75844SAndroid Build Coastguard Worker rtc_library("p2p_test_utils") { 202*d9f75844SAndroid Build Coastguard Worker testonly = true 203*d9f75844SAndroid Build Coastguard Worker sources = [ 204*d9f75844SAndroid Build Coastguard Worker "base/fake_dtls_transport.h", 205*d9f75844SAndroid Build Coastguard Worker "base/fake_packet_transport.h", 206*d9f75844SAndroid Build Coastguard Worker "base/mock_active_ice_controller.h", 207*d9f75844SAndroid Build Coastguard Worker "base/mock_async_resolver.h", 208*d9f75844SAndroid Build Coastguard Worker "base/mock_dns_resolving_packet_socket_factory.h", 209*d9f75844SAndroid Build Coastguard Worker "base/mock_ice_agent.h", 210*d9f75844SAndroid Build Coastguard Worker "base/mock_ice_controller.h", 211*d9f75844SAndroid Build Coastguard Worker "base/mock_ice_transport.h", 212*d9f75844SAndroid Build Coastguard Worker "base/test_stun_server.cc", 213*d9f75844SAndroid Build Coastguard Worker "base/test_stun_server.h", 214*d9f75844SAndroid Build Coastguard Worker "base/test_turn_customizer.h", 215*d9f75844SAndroid Build Coastguard Worker "base/test_turn_server.h", 216*d9f75844SAndroid Build Coastguard Worker ] 217*d9f75844SAndroid Build Coastguard Worker deps = [ 218*d9f75844SAndroid Build Coastguard Worker ":fake_ice_transport", 219*d9f75844SAndroid Build Coastguard Worker ":fake_port_allocator", 220*d9f75844SAndroid Build Coastguard Worker ":p2p_server_utils", 221*d9f75844SAndroid Build Coastguard Worker ":rtc_p2p", 222*d9f75844SAndroid Build Coastguard Worker "../api:dtls_transport_interface", 223*d9f75844SAndroid Build Coastguard Worker "../api:libjingle_peerconnection_api", 224*d9f75844SAndroid Build Coastguard Worker "../api:mock_async_dns_resolver", 225*d9f75844SAndroid Build Coastguard Worker "../api:packet_socket_factory", 226*d9f75844SAndroid Build Coastguard Worker "../api:sequence_checker", 227*d9f75844SAndroid Build Coastguard Worker "../api:turn_customizer", 228*d9f75844SAndroid Build Coastguard Worker "../api/crypto:options", 229*d9f75844SAndroid Build Coastguard Worker "../api/transport:stun_types", 230*d9f75844SAndroid Build Coastguard Worker "../rtc_base", 231*d9f75844SAndroid Build Coastguard Worker "../rtc_base:async_resolver_interface", 232*d9f75844SAndroid Build Coastguard Worker "../rtc_base:copy_on_write_buffer", 233*d9f75844SAndroid Build Coastguard Worker "../rtc_base:gunit_helpers", 234*d9f75844SAndroid Build Coastguard Worker "../rtc_base:rtc_base_tests_utils", 235*d9f75844SAndroid Build Coastguard Worker "../rtc_base:socket", 236*d9f75844SAndroid Build Coastguard Worker "../rtc_base:socket_address", 237*d9f75844SAndroid Build Coastguard Worker "../rtc_base:socket_server", 238*d9f75844SAndroid Build Coastguard Worker "../rtc_base:threading", 239*d9f75844SAndroid Build Coastguard Worker "../rtc_base/third_party/sigslot", 240*d9f75844SAndroid Build Coastguard Worker "../test:test_support", 241*d9f75844SAndroid Build Coastguard Worker ] 242*d9f75844SAndroid Build Coastguard Worker absl_deps = [ 243*d9f75844SAndroid Build Coastguard Worker "//third_party/abseil-cpp/absl/algorithm:container", 244*d9f75844SAndroid Build Coastguard Worker "//third_party/abseil-cpp/absl/strings", 245*d9f75844SAndroid Build Coastguard Worker "//third_party/abseil-cpp/absl/types:optional", 246*d9f75844SAndroid Build Coastguard Worker ] 247*d9f75844SAndroid Build Coastguard Worker } 248*d9f75844SAndroid Build Coastguard Worker 249*d9f75844SAndroid Build Coastguard Worker rtc_library("rtc_p2p_unittests") { 250*d9f75844SAndroid Build Coastguard Worker testonly = true 251*d9f75844SAndroid Build Coastguard Worker 252*d9f75844SAndroid Build Coastguard Worker sources = [ 253*d9f75844SAndroid Build Coastguard Worker "base/async_stun_tcp_socket_unittest.cc", 254*d9f75844SAndroid Build Coastguard Worker "base/basic_async_resolver_factory_unittest.cc", 255*d9f75844SAndroid Build Coastguard Worker "base/dtls_transport_unittest.cc", 256*d9f75844SAndroid Build Coastguard Worker "base/ice_credentials_iterator_unittest.cc", 257*d9f75844SAndroid Build Coastguard Worker "base/p2p_transport_channel_unittest.cc", 258*d9f75844SAndroid Build Coastguard Worker "base/port_allocator_unittest.cc", 259*d9f75844SAndroid Build Coastguard Worker "base/port_unittest.cc", 260*d9f75844SAndroid Build Coastguard Worker "base/pseudo_tcp_unittest.cc", 261*d9f75844SAndroid Build Coastguard Worker "base/regathering_controller_unittest.cc", 262*d9f75844SAndroid Build Coastguard Worker "base/stun_port_unittest.cc", 263*d9f75844SAndroid Build Coastguard Worker "base/stun_request_unittest.cc", 264*d9f75844SAndroid Build Coastguard Worker "base/stun_server_unittest.cc", 265*d9f75844SAndroid Build Coastguard Worker "base/tcp_port_unittest.cc", 266*d9f75844SAndroid Build Coastguard Worker "base/transport_description_factory_unittest.cc", 267*d9f75844SAndroid Build Coastguard Worker "base/transport_description_unittest.cc", 268*d9f75844SAndroid Build Coastguard Worker "base/turn_port_unittest.cc", 269*d9f75844SAndroid Build Coastguard Worker "base/turn_server_unittest.cc", 270*d9f75844SAndroid Build Coastguard Worker "base/wrapping_active_ice_controller_unittest.cc", 271*d9f75844SAndroid Build Coastguard Worker "client/basic_port_allocator_unittest.cc", 272*d9f75844SAndroid Build Coastguard Worker ] 273*d9f75844SAndroid Build Coastguard Worker deps = [ 274*d9f75844SAndroid Build Coastguard Worker ":fake_ice_transport", 275*d9f75844SAndroid Build Coastguard Worker ":fake_port_allocator", 276*d9f75844SAndroid Build Coastguard Worker ":p2p_server_utils", 277*d9f75844SAndroid Build Coastguard Worker ":p2p_test_utils", 278*d9f75844SAndroid Build Coastguard Worker ":rtc_p2p", 279*d9f75844SAndroid Build Coastguard Worker "../api:candidate", 280*d9f75844SAndroid Build Coastguard Worker "../api:dtls_transport_interface", 281*d9f75844SAndroid Build Coastguard Worker "../api:field_trials_view", 282*d9f75844SAndroid Build Coastguard Worker "../api:libjingle_peerconnection_api", 283*d9f75844SAndroid Build Coastguard Worker "../api:mock_async_dns_resolver", 284*d9f75844SAndroid Build Coastguard Worker "../api:packet_socket_factory", 285*d9f75844SAndroid Build Coastguard Worker "../api:scoped_refptr", 286*d9f75844SAndroid Build Coastguard Worker "../api/task_queue", 287*d9f75844SAndroid Build Coastguard Worker "../api/task_queue:pending_task_safety_flag", 288*d9f75844SAndroid Build Coastguard Worker "../api/transport:stun_types", 289*d9f75844SAndroid Build Coastguard Worker "../api/units:time_delta", 290*d9f75844SAndroid Build Coastguard Worker "../rtc_base", 291*d9f75844SAndroid Build Coastguard Worker "../rtc_base:buffer", 292*d9f75844SAndroid Build Coastguard Worker "../rtc_base:byte_buffer", 293*d9f75844SAndroid Build Coastguard Worker "../rtc_base:checks", 294*d9f75844SAndroid Build Coastguard Worker "../rtc_base:copy_on_write_buffer", 295*d9f75844SAndroid Build Coastguard Worker "../rtc_base:gunit_helpers", 296*d9f75844SAndroid Build Coastguard Worker "../rtc_base:ip_address", 297*d9f75844SAndroid Build Coastguard Worker "../rtc_base:logging", 298*d9f75844SAndroid Build Coastguard Worker "../rtc_base:macromagic", 299*d9f75844SAndroid Build Coastguard Worker "../rtc_base:net_helpers", 300*d9f75844SAndroid Build Coastguard Worker "../rtc_base:network_constants", 301*d9f75844SAndroid Build Coastguard Worker "../rtc_base:rtc_base_tests_utils", 302*d9f75844SAndroid Build Coastguard Worker "../rtc_base:socket", 303*d9f75844SAndroid Build Coastguard Worker "../rtc_base:socket_address", 304*d9f75844SAndroid Build Coastguard Worker "../rtc_base:stringutils", 305*d9f75844SAndroid Build Coastguard Worker "../rtc_base:testclient", 306*d9f75844SAndroid Build Coastguard Worker "../rtc_base:threading", 307*d9f75844SAndroid Build Coastguard Worker "../rtc_base:timeutils", 308*d9f75844SAndroid Build Coastguard Worker "../rtc_base/network:sent_packet", 309*d9f75844SAndroid Build Coastguard Worker "../rtc_base/third_party/sigslot", 310*d9f75844SAndroid Build Coastguard Worker "../system_wrappers:metrics", 311*d9f75844SAndroid Build Coastguard Worker "../test:rtc_expect_death", 312*d9f75844SAndroid Build Coastguard Worker "../test:scoped_key_value_config", 313*d9f75844SAndroid Build Coastguard Worker "../test:test_support", 314*d9f75844SAndroid Build Coastguard Worker "//testing/gtest", 315*d9f75844SAndroid Build Coastguard Worker ] 316*d9f75844SAndroid Build Coastguard Worker absl_deps = [ 317*d9f75844SAndroid Build Coastguard Worker "//third_party/abseil-cpp/absl/algorithm:container", 318*d9f75844SAndroid Build Coastguard Worker "//third_party/abseil-cpp/absl/memory", 319*d9f75844SAndroid Build Coastguard Worker "//third_party/abseil-cpp/absl/strings", 320*d9f75844SAndroid Build Coastguard Worker "//third_party/abseil-cpp/absl/types:optional", 321*d9f75844SAndroid Build Coastguard Worker ] 322*d9f75844SAndroid Build Coastguard Worker } 323*d9f75844SAndroid Build Coastguard Worker} 324*d9f75844SAndroid Build Coastguard Worker 325*d9f75844SAndroid Build Coastguard Workerrtc_library("p2p_server_utils") { 326*d9f75844SAndroid Build Coastguard Worker testonly = true 327*d9f75844SAndroid Build Coastguard Worker sources = [ 328*d9f75844SAndroid Build Coastguard Worker "base/stun_server.cc", 329*d9f75844SAndroid Build Coastguard Worker "base/stun_server.h", 330*d9f75844SAndroid Build Coastguard Worker "base/turn_server.cc", 331*d9f75844SAndroid Build Coastguard Worker "base/turn_server.h", 332*d9f75844SAndroid Build Coastguard Worker ] 333*d9f75844SAndroid Build Coastguard Worker deps = [ 334*d9f75844SAndroid Build Coastguard Worker ":rtc_p2p", 335*d9f75844SAndroid Build Coastguard Worker "../api:array_view", 336*d9f75844SAndroid Build Coastguard Worker "../api:packet_socket_factory", 337*d9f75844SAndroid Build Coastguard Worker "../api:sequence_checker", 338*d9f75844SAndroid Build Coastguard Worker "../api/task_queue", 339*d9f75844SAndroid Build Coastguard Worker "../api/task_queue:pending_task_safety_flag", 340*d9f75844SAndroid Build Coastguard Worker "../api/transport:stun_types", 341*d9f75844SAndroid Build Coastguard Worker "../api/units:time_delta", 342*d9f75844SAndroid Build Coastguard Worker "../rtc_base", 343*d9f75844SAndroid Build Coastguard Worker "../rtc_base:byte_buffer", 344*d9f75844SAndroid Build Coastguard Worker "../rtc_base:checks", 345*d9f75844SAndroid Build Coastguard Worker "../rtc_base:logging", 346*d9f75844SAndroid Build Coastguard Worker "../rtc_base:rtc_base_tests_utils", 347*d9f75844SAndroid Build Coastguard Worker "../rtc_base:socket_address", 348*d9f75844SAndroid Build Coastguard Worker "../rtc_base:stringutils", 349*d9f75844SAndroid Build Coastguard Worker "../rtc_base/third_party/sigslot", 350*d9f75844SAndroid Build Coastguard Worker ] 351*d9f75844SAndroid Build Coastguard Worker absl_deps = [ 352*d9f75844SAndroid Build Coastguard Worker "//third_party/abseil-cpp/absl/algorithm:container", 353*d9f75844SAndroid Build Coastguard Worker "//third_party/abseil-cpp/absl/memory", 354*d9f75844SAndroid Build Coastguard Worker "//third_party/abseil-cpp/absl/strings", 355*d9f75844SAndroid Build Coastguard Worker ] 356*d9f75844SAndroid Build Coastguard Worker} 357*d9f75844SAndroid Build Coastguard Worker 358*d9f75844SAndroid Build Coastguard Workerrtc_library("libstunprober") { 359*d9f75844SAndroid Build Coastguard Worker visibility = [ "*" ] 360*d9f75844SAndroid Build Coastguard Worker sources = [ 361*d9f75844SAndroid Build Coastguard Worker "stunprober/stun_prober.cc", 362*d9f75844SAndroid Build Coastguard Worker "stunprober/stun_prober.h", 363*d9f75844SAndroid Build Coastguard Worker ] 364*d9f75844SAndroid Build Coastguard Worker 365*d9f75844SAndroid Build Coastguard Worker deps = [ 366*d9f75844SAndroid Build Coastguard Worker ":rtc_p2p", 367*d9f75844SAndroid Build Coastguard Worker "../api:packet_socket_factory", 368*d9f75844SAndroid Build Coastguard Worker "../api:sequence_checker", 369*d9f75844SAndroid Build Coastguard Worker "../api/task_queue:pending_task_safety_flag", 370*d9f75844SAndroid Build Coastguard Worker "../api/transport:stun_types", 371*d9f75844SAndroid Build Coastguard Worker "../api/units:time_delta", 372*d9f75844SAndroid Build Coastguard Worker "../rtc_base", 373*d9f75844SAndroid Build Coastguard Worker "../rtc_base:async_resolver_interface", 374*d9f75844SAndroid Build Coastguard Worker "../rtc_base:byte_buffer", 375*d9f75844SAndroid Build Coastguard Worker "../rtc_base:checks", 376*d9f75844SAndroid Build Coastguard Worker "../rtc_base:ip_address", 377*d9f75844SAndroid Build Coastguard Worker "../rtc_base:logging", 378*d9f75844SAndroid Build Coastguard Worker "../rtc_base:socket_address", 379*d9f75844SAndroid Build Coastguard Worker "../rtc_base:threading", 380*d9f75844SAndroid Build Coastguard Worker "../rtc_base:timeutils", 381*d9f75844SAndroid Build Coastguard Worker "../rtc_base/system:rtc_export", 382*d9f75844SAndroid Build Coastguard Worker ] 383*d9f75844SAndroid Build Coastguard Worker} 384*d9f75844SAndroid Build Coastguard Worker 385*d9f75844SAndroid Build Coastguard Workerif (rtc_include_tests) { 386*d9f75844SAndroid Build Coastguard Worker rtc_library("libstunprober_unittests") { 387*d9f75844SAndroid Build Coastguard Worker testonly = true 388*d9f75844SAndroid Build Coastguard Worker 389*d9f75844SAndroid Build Coastguard Worker sources = [ "stunprober/stun_prober_unittest.cc" ] 390*d9f75844SAndroid Build Coastguard Worker deps = [ 391*d9f75844SAndroid Build Coastguard Worker ":libstunprober", 392*d9f75844SAndroid Build Coastguard Worker ":p2p_test_utils", 393*d9f75844SAndroid Build Coastguard Worker ":rtc_p2p", 394*d9f75844SAndroid Build Coastguard Worker "../rtc_base", 395*d9f75844SAndroid Build Coastguard Worker "../rtc_base:checks", 396*d9f75844SAndroid Build Coastguard Worker "../rtc_base:gunit_helpers", 397*d9f75844SAndroid Build Coastguard Worker "../rtc_base:ip_address", 398*d9f75844SAndroid Build Coastguard Worker "../rtc_base:rtc_base_tests_utils", 399*d9f75844SAndroid Build Coastguard Worker "../test:test_support", 400*d9f75844SAndroid Build Coastguard Worker "//testing/gtest", 401*d9f75844SAndroid Build Coastguard Worker ] 402*d9f75844SAndroid Build Coastguard Worker } 403*d9f75844SAndroid Build Coastguard Worker} 404