Index: webrtc/api/test/peerconnectiontestwrapper.cc |
diff --git a/webrtc/api/test/peerconnectiontestwrapper.cc b/webrtc/api/test/peerconnectiontestwrapper.cc |
index 450a9085207d621ff165189ac6884d916f8632e0..7d846860141a417572d82043009d5c8a2b2f001a 100644 |
--- a/webrtc/api/test/peerconnectiontestwrapper.cc |
+++ b/webrtc/api/test/peerconnectiontestwrapper.cc |
@@ -58,7 +58,8 @@ PeerConnectionTestWrapper::PeerConnectionTestWrapper( |
PeerConnectionTestWrapper::~PeerConnectionTestWrapper() {} |
bool PeerConnectionTestWrapper::CreatePc( |
- const MediaConstraintsInterface* constraints) { |
+ const MediaConstraintsInterface* constraints, |
+ const webrtc::PeerConnectionInterface::RTCConfiguration& config) { |
std::unique_ptr<cricket::PortAllocator> port_allocator( |
new cricket::FakePortAllocator(network_thread_, nullptr)); |
@@ -74,14 +75,10 @@ bool PeerConnectionTestWrapper::CreatePc( |
return false; |
} |
- // CreatePeerConnection with RTCConfiguration. |
- webrtc::PeerConnectionInterface::RTCConfiguration config; |
- webrtc::PeerConnectionInterface::IceServer ice_server; |
- ice_server.uri = "stun:stun.l.google.com:19302"; |
- config.servers.push_back(ice_server); |
std::unique_ptr<rtc::RTCCertificateGeneratorInterface> cert_generator( |
- rtc::SSLStreamAdapter::HaveDtlsSrtp() ? new FakeRTCCertificateGenerator() |
- : nullptr); |
+ rtc::SSLStreamAdapter::HaveDtlsSrtp() |
+ ? new FakeRTCCertificateGenerator() |
+ : nullptr); |
peer_connection_ = peer_connection_factory_->CreatePeerConnection( |
config, constraints, std::move(port_allocator), std::move(cert_generator), |
this); |