Change TurnPort::Create to return a unique_ptr
Bug: webrtc:9198
Change-Id: I13c9eab549b4973ce4f8fd2f562f1ff7f7e0a2cb
Reviewed-on: https://webrtc-review.googlesource.com/c/105182
Reviewed-by: Qingsi Wang <qingsi@webrtc.org>
Commit-Queue: Steve Anton <steveanton@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#25100}
diff --git a/p2p/base/port_unittest.cc b/p2p/base/port_unittest.cc
index dc78c58..3aa1d52 100644
--- a/p2p/base/port_unittest.cc
+++ b/p2p/base/port_unittest.cc
@@ -530,10 +530,10 @@
ProtocolType int_proto,
ProtocolType ext_proto,
const rtc::SocketAddress& server_addr) {
- return TurnPort::CreateUnique(
- &main_, socket_factory, MakeNetwork(addr), 0, 0, username_, password_,
- ProtocolAddress(server_addr, int_proto), kRelayCredentials, 0, "", {},
- {}, nullptr, nullptr);
+ return TurnPort::Create(&main_, socket_factory, MakeNetwork(addr), 0, 0,
+ username_, password_,
+ ProtocolAddress(server_addr, int_proto),
+ kRelayCredentials, 0, "", {}, {}, nullptr, nullptr);
}
std::unique_ptr<RelayPort> CreateGturnPort(const SocketAddress& addr,
ProtocolType int_proto,