Remove calls to deprecated CreatePC() and CreateDC()
Anything linking to //third_party/jsoncpp is hiding deprecated usage warnings, so these were not discovered earlier. Bug: chromium:983223 Change-Id: Id0ade4ca016f19db16377dbeeb756358a7e94fa2 Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/258124 Reviewed-by: Harald Alvestrand <hta@webrtc.org> Auto-Submit: Florent Castelli <orphis@webrtc.org> Commit-Queue: Florent Castelli <orphis@webrtc.org> Cr-Commit-Position: refs/heads/main@{#36463}
This commit is contained in:
committed by
WebRTC LUCI CQ
parent
7b84f06151
commit
72424408ed
@ -138,15 +138,15 @@ class PeerConnectionDataChannelBaseTest : public ::testing::Test {
|
||||
auto observer = std::make_unique<MockPeerConnectionObserver>();
|
||||
RTCConfiguration modified_config = config;
|
||||
modified_config.sdp_semantics = sdp_semantics_;
|
||||
auto pc = pc_factory->CreatePeerConnection(modified_config, nullptr,
|
||||
nullptr, observer.get());
|
||||
if (!pc) {
|
||||
auto result = pc_factory->CreatePeerConnectionOrError(
|
||||
modified_config, PeerConnectionDependencies(observer.get()));
|
||||
if (!result.ok()) {
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
observer->SetPeerConnectionInterface(pc.get());
|
||||
observer->SetPeerConnectionInterface(result.value());
|
||||
auto wrapper = std::make_unique<PeerConnectionWrapperForDataChannelTest>(
|
||||
pc_factory, pc, std::move(observer));
|
||||
pc_factory, result.MoveValue(), std::move(observer));
|
||||
wrapper->set_sctp_transport_factory(fake_sctp_transport_factory);
|
||||
return wrapper;
|
||||
}
|
||||
@ -159,7 +159,7 @@ class PeerConnectionDataChannelBaseTest : public ::testing::Test {
|
||||
if (!wrapper) {
|
||||
return nullptr;
|
||||
}
|
||||
EXPECT_TRUE(wrapper->pc()->CreateDataChannel("dc", nullptr));
|
||||
EXPECT_TRUE(wrapper->pc()->CreateDataChannelOrError("dc", nullptr).ok());
|
||||
return wrapper;
|
||||
}
|
||||
|
||||
@ -222,7 +222,7 @@ TEST_P(PeerConnectionDataChannelTest, SctpContentAndTransportNameSetCorrectly) {
|
||||
// transport.
|
||||
caller->AddAudioTrack("a");
|
||||
caller->AddVideoTrack("v");
|
||||
caller->pc()->CreateDataChannel("dc", nullptr);
|
||||
caller->pc()->CreateDataChannelOrError("dc", nullptr);
|
||||
|
||||
auto offer = caller->CreateOffer();
|
||||
const auto& offer_contents = offer->description()->contents();
|
||||
|
||||
Reference in New Issue
Block a user