Delete almost all default methods on PeerConnectionInterface
Keeping default implementations only for methods involved in ongoing transitions. Intended to catch inconsistencies between the interface and the PeerConnectionProxy class, at compile time. Bug: webrtc:10716 Change-Id: I4cb126c353855f7288ba09273fa6f87aaa0f32eb Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/140860 Commit-Queue: Niels Moller <nisse@webrtc.org> Reviewed-by: Mirko Bonadei <mbonadei@webrtc.org> Reviewed-by: Henrik Boström <hbos@webrtc.org> Reviewed-by: Karl Wiberg <kwiberg@webrtc.org> Cr-Commit-Position: refs/heads/master@{#29224}
This commit is contained in:
@ -52,6 +52,11 @@ class FakePeerConnectionBase : public PeerConnectionInternal {
|
||||
|
||||
bool RemoveTrack(RtpSenderInterface* sender) override { return false; }
|
||||
|
||||
RTCError RemoveTrackNew(
|
||||
rtc::scoped_refptr<RtpSenderInterface> sender) override {
|
||||
return RTCError(RTCErrorType::UNSUPPORTED_OPERATION);
|
||||
}
|
||||
|
||||
RTCErrorOr<rtc::scoped_refptr<RtpTransceiverInterface>> AddTransceiver(
|
||||
rtc::scoped_refptr<MediaStreamTrackInterface> track) override {
|
||||
return RTCError(RTCErrorType::UNSUPPORTED_OPERATION, "Not implemented");
|
||||
@ -200,6 +205,14 @@ class FakePeerConnectionBase : public PeerConnectionInternal {
|
||||
return IceConnectionState::kIceConnectionNew;
|
||||
}
|
||||
|
||||
IceConnectionState standardized_ice_connection_state() override {
|
||||
return IceConnectionState::kIceConnectionNew;
|
||||
}
|
||||
|
||||
PeerConnectionState peer_connection_state() override {
|
||||
return PeerConnectionState::kNew;
|
||||
}
|
||||
|
||||
IceGatheringState ice_gathering_state() override {
|
||||
return IceGatheringState::kIceGatheringNew;
|
||||
}
|
||||
@ -209,6 +222,10 @@ class FakePeerConnectionBase : public PeerConnectionInternal {
|
||||
return false;
|
||||
}
|
||||
|
||||
bool StartRtcEventLog(std::unique_ptr<RtcEventLogOutput> output) override {
|
||||
return false;
|
||||
}
|
||||
|
||||
void StopRtcEventLog() override {}
|
||||
|
||||
void Close() override {}
|
||||
|
Reference in New Issue
Block a user