Delete almost all use of MediaConstraintsInterface in the PeerConnection API
Bug: webrtc:9239 Change-Id: I04f4370f624346bf72c7e4e090b57987b558213b Reviewed-on: https://webrtc-review.googlesource.com/74420 Commit-Queue: Niels Moller <nisse@webrtc.org> Reviewed-by: Karl Wiberg <kwiberg@webrtc.org> Reviewed-by: Harald Alvestrand <hta@webrtc.org> Cr-Commit-Position: refs/heads/master@{#24396}
This commit is contained in:
@ -109,11 +109,9 @@ class RTCStatsIntegrationTest : public testing::Test {
|
||||
PeerConnectionInterface::IceServer ice_server;
|
||||
ice_server.uri = "stun:1.1.1.1:3478";
|
||||
config.servers.push_back(ice_server);
|
||||
EXPECT_TRUE(caller_->CreatePc(nullptr, config,
|
||||
CreateBuiltinAudioEncoderFactory(),
|
||||
EXPECT_TRUE(caller_->CreatePc(config, CreateBuiltinAudioEncoderFactory(),
|
||||
CreateBuiltinAudioDecoderFactory()));
|
||||
EXPECT_TRUE(callee_->CreatePc(nullptr, config,
|
||||
CreateBuiltinAudioEncoderFactory(),
|
||||
EXPECT_TRUE(callee_->CreatePc(config, CreateBuiltinAudioEncoderFactory(),
|
||||
CreateBuiltinAudioDecoderFactory()));
|
||||
PeerConnectionTestWrapper::Connect(caller_.get(), callee_.get());
|
||||
|
||||
@ -129,7 +127,7 @@ class RTCStatsIntegrationTest : public testing::Test {
|
||||
callee_->CreateDataChannel("data", init);
|
||||
|
||||
// Negotiate and wait for call to establish
|
||||
caller_->CreateOffer(nullptr);
|
||||
caller_->CreateOffer(PeerConnectionInterface::RTCOfferAnswerOptions());
|
||||
caller_->WaitForCallEstablished();
|
||||
callee_->WaitForCallEstablished();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user