Reland "Don't create PacketSocketFactory inside BasicPortAllocatorSession"
This is a reland of commit 7d4634cef76a1ac244d4b83faaf4c617bf236b71 Original change's description: > Don't create PacketSocketFactory inside BasicPortAllocatorSession > > This extends AlwaysValidPointer to avoid creating a unique_ptr inside it. > > Bug: webrtc:13145 > Change-Id: I73a4f18d0a7037b57f575b04b134e4f7eadceb79 > Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/263240 > Reviewed-by: Jonas Oreland <jonaso@webrtc.org> > Commit-Queue: Daniel.L (Byoungchan) Lee <daniel.l@hpcnt.com> > Reviewed-by: Harald Alvestrand <hta@webrtc.org> > Cr-Commit-Position: refs/heads/main@{#37048} Bug: webrtc:13145 Change-Id: I7d64c25b2942b392a1c35ff2fe1edc83d7b03746 Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/264503 Reviewed-by: Harald Alvestrand <hta@webrtc.org> Reviewed-by: Christoffer Jansson <jansson@webrtc.org> Commit-Queue: Christoffer Jansson <jansson@webrtc.org> Reviewed-by: Daniel.L (Byoungchan) Lee <daniel.l@hpcnt.com> Cr-Commit-Position: refs/heads/main@{#37088}
This commit is contained in:
committed by
WebRTC LUCI CQ
parent
7c3219265e
commit
a8be79ce27
@ -224,8 +224,9 @@ class PeerConnectionBundleBaseTest : public ::testing::Test {
|
||||
|
||||
WrapperPtr CreatePeerConnection(const RTCConfiguration& config) {
|
||||
auto* fake_network = NewFakeNetwork();
|
||||
auto port_allocator =
|
||||
std::make_unique<cricket::BasicPortAllocator>(fake_network);
|
||||
auto port_allocator = std::make_unique<cricket::BasicPortAllocator>(
|
||||
fake_network,
|
||||
std::make_unique<rtc::BasicPacketSocketFactory>(vss_.get()));
|
||||
port_allocator->set_flags(cricket::PORTALLOCATOR_DISABLE_TCP |
|
||||
cricket::PORTALLOCATOR_DISABLE_RELAY);
|
||||
port_allocator->set_step_delay(cricket::kMinimumStepDelay);
|
||||
|
||||
Reference in New Issue
Block a user