diff --git a/api/peer_connection_factory_proxy.h b/api/peer_connection_factory_proxy.h index e33fb457ae..be098e34d8 100644 --- a/api/peer_connection_factory_proxy.h +++ b/api/peer_connection_factory_proxy.h @@ -36,6 +36,10 @@ PROXY_METHOD2(rtc::scoped_refptr, CreatePeerConnection, const PeerConnectionInterface::RTCConfiguration&, PeerConnectionDependencies) +PROXY_METHOD2(RTCErrorOr>, + CreatePeerConnectionOrError, + const PeerConnectionInterface::RTCConfiguration&, + PeerConnectionDependencies) PROXY_CONSTMETHOD1(webrtc::RtpCapabilities, GetRtpSenderCapabilities, cricket::MediaType) diff --git a/api/test/mock_peer_connection_factory_interface.h b/api/test/mock_peer_connection_factory_interface.h index 7319cebbcc..c2f2435fb8 100644 --- a/api/test/mock_peer_connection_factory_interface.h +++ b/api/test/mock_peer_connection_factory_interface.h @@ -32,6 +32,11 @@ class MockPeerConnectionFactoryInterface final (const PeerConnectionInterface::RTCConfiguration&, PeerConnectionDependencies), (override)); + MOCK_METHOD(RTCErrorOr>, + CreatePeerConnectionOrError, + (const PeerConnectionInterface::RTCConfiguration&, + PeerConnectionDependencies), + (override)); MOCK_METHOD(rtc::scoped_refptr, CreatePeerConnection, (const PeerConnectionInterface::RTCConfiguration&,