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}
This commit is contained in:
@ -530,10 +530,10 @@ class PortTest : public testing::Test, public sigslot::has_slots<> {
|
||||
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,
|
||||
|
||||
Reference in New Issue
Block a user