diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-19 01:13:27 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-19 01:13:27 +0000 |
commit | 40a355a42d4a9444dc753c04c6608dade2f06a23 (patch) | |
tree | 871fc667d2de662f171103ce5ec067014ef85e61 /third_party/libwebrtc/pc/slow_peer_connection_integration_test.cc | |
parent | Adding upstream version 124.0.1. (diff) | |
download | firefox-40a355a42d4a9444dc753c04c6608dade2f06a23.tar.xz firefox-40a355a42d4a9444dc753c04c6608dade2f06a23.zip |
Adding upstream version 125.0.1.upstream/125.0.1
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'third_party/libwebrtc/pc/slow_peer_connection_integration_test.cc')
-rw-r--r-- | third_party/libwebrtc/pc/slow_peer_connection_integration_test.cc | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/third_party/libwebrtc/pc/slow_peer_connection_integration_test.cc b/third_party/libwebrtc/pc/slow_peer_connection_integration_test.cc index fd9d3417df..9e49291d94 100644 --- a/third_party/libwebrtc/pc/slow_peer_connection_integration_test.cc +++ b/third_party/libwebrtc/pc/slow_peer_connection_integration_test.cc @@ -67,7 +67,7 @@ class FakeClockForTest : public rtc::ScopedFakeClock { // Some things use a time of "0" as a special value, so we need to start out // the fake clock at a nonzero time. // TODO(deadbeef): Fix this. - AdvanceTime(webrtc::TimeDelta::Seconds(1000)); + AdvanceTime(TimeDelta::Seconds(1000)); } // Explicit handle. @@ -170,20 +170,20 @@ TEST_P(PeerConnectionIntegrationTest, CreateTurnServer(turn_server_internal_address, turn_server_external_address, cricket::PROTO_TLS, "88.88.88.0"); - webrtc::PeerConnectionInterface::IceServer ice_server; + PeerConnectionInterface::IceServer ice_server; ice_server.urls.push_back("turns:88.88.88.0:3478?transport=tcp"); ice_server.username = "test"; ice_server.password = "test"; PeerConnectionInterface::RTCConfiguration client_1_config; client_1_config.servers.push_back(ice_server); - client_1_config.type = webrtc::PeerConnectionInterface::kRelay; + client_1_config.type = PeerConnectionInterface::kRelay; PeerConnectionInterface::RTCConfiguration client_2_config; client_2_config.servers.push_back(ice_server); // Setting the type to kRelay forces the connection to go through a TURN // server. - client_2_config.type = webrtc::PeerConnectionInterface::kRelay; + client_2_config.type = PeerConnectionInterface::kRelay; // Get a copy to the pointer so we can verify calls later. rtc::TestCertificateVerifier* client_1_cert_verifier = @@ -194,10 +194,10 @@ TEST_P(PeerConnectionIntegrationTest, client_2_cert_verifier->verify_certificate_ = false; // Create the dependencies with the test certificate verifier. - webrtc::PeerConnectionDependencies client_1_deps(nullptr); + PeerConnectionDependencies client_1_deps(nullptr); client_1_deps.tls_cert_verifier = std::unique_ptr<rtc::TestCertificateVerifier>(client_1_cert_verifier); - webrtc::PeerConnectionDependencies client_2_deps(nullptr); + PeerConnectionDependencies client_2_deps(nullptr); client_2_deps.tls_cert_verifier = std::unique_ptr<rtc::TestCertificateVerifier>(client_2_cert_verifier); @@ -262,8 +262,8 @@ class PeerConnectionIntegrationIceStatesTest } void StartStunServer(const SocketAddress& server_address) { - stun_server_.reset( - cricket::TestStunServer::Create(firewall(), server_address)); + stun_server_ = cricket::TestStunServer::Create(firewall(), server_address, + *network_thread()); } bool TestIPv6() { @@ -309,7 +309,7 @@ class PeerConnectionIntegrationIceStatesTest private: uint32_t port_allocator_flags_; - std::unique_ptr<cricket::TestStunServer> stun_server_; + cricket::TestStunServer::StunServerPtr stun_server_; }; // Ensure FakeClockForTest is constructed first (see class for rationale). |