Home
last modified time | relevance | path

Searched refs:turn_servers (Results 1 – 14 of 14) sorted by relevance

/external/webrtc/pc/
Dpeer_connection_factory_unittest.cc132 void VerifyTurnServers(std::vector<cricket::RelayServerConfig> turn_servers) { in VerifyTurnServers() argument
133 EXPECT_EQ(turn_servers.size(), raw_port_allocator_->turn_servers().size()); in VerifyTurnServers()
134 for (size_t i = 0; i < turn_servers.size(); ++i) { in VerifyTurnServers()
135 ASSERT_EQ(1u, turn_servers[i].ports.size()); in VerifyTurnServers()
136 EXPECT_EQ(1u, raw_port_allocator_->turn_servers()[i].ports.size()); in VerifyTurnServers()
138 turn_servers[i].ports[0].address.ToString(), in VerifyTurnServers()
139 raw_port_allocator_->turn_servers()[i].ports[0].address.ToString()); in VerifyTurnServers()
140 EXPECT_EQ(turn_servers[i].ports[0].proto, in VerifyTurnServers()
141 raw_port_allocator_->turn_servers()[i].ports[0].proto); in VerifyTurnServers()
142 EXPECT_EQ(turn_servers[i].credentials.username, in VerifyTurnServers()
[all …]
Dice_server_parsing.cc135 std::vector<cricket::RelayServerConfig>* turn_servers) { in ParseIceServerUrl() argument
152 RTC_DCHECK(turn_servers != nullptr); in ParseIceServerUrl()
254 turn_servers->push_back(config); in ParseIceServerUrl()
269 std::vector<cricket::RelayServerConfig>* turn_servers) { in ParseIceServers() argument
278 ParseIceServerUrl(server, url, stun_servers, turn_servers); in ParseIceServers()
286 ParseIceServerUrl(server, server.uri, stun_servers, turn_servers); in ParseIceServers()
297 int priority = static_cast<int>(turn_servers->size() - 1); in ParseIceServers()
298 for (cricket::RelayServerConfig& turn_server : *turn_servers) { in ParseIceServers()
Dice_server_parsing.h33 std::vector<cricket::RelayServerConfig>* turn_servers);
Dpeer_connection.cc1159 std::vector<cricket::RelayServerConfig> turn_servers; in Initialize() local
1162 ParseIceServers(configuration.servers, &stun_servers, &turn_servers); in Initialize()
1168 for (cricket::RelayServerConfig& turn_server : turn_servers) { in Initialize()
1178 stun_servers, turn_servers, configuration)); in Initialize()
1185 if (!turn_servers.empty()) { in Initialize()
3941 std::vector<cricket::RelayServerConfig> turn_servers; in SetConfiguration() local
3943 ParseIceServers(configuration.servers, &stun_servers, &turn_servers); in SetConfiguration()
3948 for (cricket::RelayServerConfig& turn_server : turn_servers) { in SetConfiguration()
3956 if (!turn_servers.empty()) { in SetConfiguration()
3964 stun_servers, turn_servers, modified_config.type, in SetConfiguration()
[all …]
Dpeer_connection.h847 const std::vector<cricket::RelayServerConfig>& turn_servers,
853 const std::vector<cricket::RelayServerConfig>& turn_servers,
Dpeer_connection_interface_unittest.cc783 EXPECT_EQ(0u, port_allocator_->turn_servers().size()); in CreatePeerConnectionWithDifferentConfigurations()
795 EXPECT_EQ(1u, port_allocator_->turn_servers().size()); in CreatePeerConnectionWithDifferentConfigurations()
797 port_allocator_->turn_servers()[0].credentials.username); in CreatePeerConnectionWithDifferentConfigurations()
799 port_allocator_->turn_servers()[0].credentials.password); in CreatePeerConnectionWithDifferentConfigurations()
801 port_allocator_->turn_servers()[0].ports[0].address.hostname()); in CreatePeerConnectionWithDifferentConfigurations()
/external/webrtc/p2p/base/
Dport_allocator_unittest.cc96 EXPECT_EQ(0UL, allocator_->turn_servers().size()); in TEST_F()
120 EXPECT_EQ(turn_servers_1, allocator_->turn_servers()); in TEST_F()
128 EXPECT_EQ(turn_servers_2, allocator_->turn_servers()); in TEST_F()
185 EXPECT_EQ(turn_servers_1, allocator_->turn_servers()); in TEST_F()
193 EXPECT_EQ(turn_servers_2, allocator_->turn_servers()); in TEST_F()
199 EXPECT_EQ(turn_servers_2, session_1->turn_servers()); in TEST_F()
201 EXPECT_EQ(turn_servers_2, session_2->turn_servers()); in TEST_F()
215 EXPECT_EQ(turn_servers_1, allocator_->turn_servers()); in TEST_F()
224 EXPECT_EQ(turn_servers_2, allocator_->turn_servers()); in TEST_F()
228 EXPECT_EQ(turn_servers_1, session->turn_servers()); in TEST_F()
Dport_allocator.cc122 const std::vector<RelayServerConfig>& turn_servers, in SetConfiguration() argument
129 return SetConfiguration(stun_servers, turn_servers, candidate_pool_size, in SetConfiguration()
136 const std::vector<RelayServerConfig>& turn_servers, in SetConfiguration() argument
147 (stun_servers != stun_servers_ || turn_servers != turn_servers_); in SetConfiguration()
149 turn_servers_ = turn_servers; in SetConfiguration()
Dregathering_controller_unittest.cc71 std::vector<cricket::RelayServerConfig> turn_servers(1, turn_server); in InitializeAndGatherOnce() local
73 allocator_->SetConfiguration(stun_servers, turn_servers, 0 /* pool size */, in InitializeAndGatherOnce()
Dport_allocator.h363 const std::vector<RelayServerConfig>& turn_servers,
370 const std::vector<RelayServerConfig>& turn_servers,
382 const std::vector<RelayServerConfig>& turn_servers() const { in turn_servers() function
Dfake_port_allocator.h103 turn_servers_(allocator->turn_servers()) { in FakePortAllocatorSession()
152 const std::vector<RelayServerConfig>& turn_servers() const { in turn_servers() function
Dp2p_transport_channel_unittest.cc169 std::vector<cricket::RelayServerConfig> turn_servers(1, turn_server); in CreateBasicPortAllocator() local
174 allocator->SetConfiguration(stun_servers, turn_servers, 0, webrtc::NO_PRUNE); in CreateBasicPortAllocator()
1996 allocator_1->turn_servers(), pool_size, in TEST_F()
1999 allocator_2->turn_servers(), pool_size, in TEST_F()
2039 allocator_1->turn_servers(), pool_size, in TEST_F()
2042 allocator_2->turn_servers(), pool_size, in TEST_F()
/external/webrtc/p2p/client/
Dbasic_port_allocator_unittest.cc453 for (size_t i = 0; i < allocator_->turn_servers().size(); ++i) { in HasRelayAddress()
454 RelayServerConfig server_config = allocator_->turn_servers()[i]; in HasRelayAddress()
580 allocator_->turn_servers(), 0, in TestIPv6TurnPortPrunesIPv4TurnPort()
621 allocator_->turn_servers(), 0, prune_policy); in TestTurnPortPrunesWithUdpAndTcpPorts()
673 allocator_->turn_servers(), 0, in TestEachInterfaceHasItsOwnTurnPorts()
729 ASSERT_EQ(0u, allocator().turn_servers().size()); in TEST_F()
2080 allocator_->turn_servers(), pool_size, in TEST_F()
2117 allocator_->turn_servers(), pool_size, in TEST_F()
2293 allocator_->stun_servers(), allocator_->turn_servers(), pool_size, in TEST_F()
2308 allocator_->stun_servers(), allocator_->turn_servers(), pool_size, in TEST_F()
[all …]
Dbasic_port_allocator.cc236 std::vector<RelayServerConfig> new_turn_servers = turn_servers(); in AddTurnServer()
613 for (const RelayServerConfig& turn_server : allocator_->turn_servers()) { in GetPortConfigurations()
1671 ServerAddresses turn_servers = GetRelayServerAddresses(PROTO_UDP); in StunServers() local
1672 for (const rtc::SocketAddress& turn_server : turn_servers) { in StunServers()