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:
Florent Castelli
2022-04-06 03:45:10 +02:00
committed by WebRTC LUCI CQ
parent 7b84f06151
commit 72424408ed
15 changed files with 205 additions and 178 deletions

View File

@ -346,14 +346,15 @@ class PeerConnectionUsageHistogramTest : public ::testing::Test {
auto observer = std::make_unique<ObserverForUsageHistogramTest>();
deps.observer = observer.get();
auto pc = pc_factory->CreatePeerConnection(config, std::move(deps));
if (!pc) {
auto result =
pc_factory->CreatePeerConnectionOrError(config, std::move(deps));
if (!result.ok()) {
return nullptr;
}
observer->SetPeerConnectionInterface(pc.get());
observer->SetPeerConnectionInterface(result.value());
auto wrapper = std::make_unique<PeerConnectionWrapperForUsageHistogramTest>(
pc_factory, pc, std::move(observer));
pc_factory, result.MoveValue(), std::move(observer));
return wrapper;
}