Index: webrtc/pc/peerconnection.cc |
diff --git a/webrtc/pc/peerconnection.cc b/webrtc/pc/peerconnection.cc |
index a3981039e6cfe89554092b4c14d7f2f7b0f175e4..20dbdd333222f4f80f924e1971d3dfdca5eba5c0 100644 |
--- a/webrtc/pc/peerconnection.cc |
+++ b/webrtc/pc/peerconnection.cc |
@@ -1235,6 +1235,16 @@ void PeerConnection::RegisterUMAObserver(UMAObserver* observer) { |
} |
} |
+// Stub implementation fails if current_bitrate_bps is set and succeeds |
+// otherwise. |
+RTCError PeerConnection::SetBitrate(const BitrateParameters& bitrate) { |
+ if (bitrate.current_bitrate_bps) { |
+ return RTCError(RTCErrorType::INVALID_PARAMETER); |
+ } else { |
+ return RTCError::OK(); |
+ } |
+} |
+ |
bool PeerConnection::StartRtcEventLog(rtc::PlatformFile file, |
int64_t max_size_bytes) { |
return factory_->worker_thread()->Invoke<bool>( |