Provide a default implementation for PeerConnectionInterface::ice_state().

Default implementation is necessary to remove implementations in
downstream unit test mocks. Method will be entirely removed in upcomming
reland of https://codereview.webrtc.org/2256663002/ .

BUG=webrtc:6299

Review-Url: https://codereview.webrtc.org/2306833003
Cr-Commit-Position: refs/heads/master@{#14053}
This commit is contained in:
johan 2016-09-02 12:07:38 -07:00 committed by Commit bot
parent 84fcbd429f
commit 79c6458575

View File

@ -507,7 +507,10 @@ class PeerConnectionInterface : public rtc::RefCountInterface {
// TODO(bemasc): Remove ice_state when callers are changed to
// IceConnection/GatheringState.
// Returns the current IceState.
virtual IceState ice_state() = 0;
virtual IceState ice_state() {
RTC_NOTREACHED();
return kIceNew;
}
virtual IceConnectionState ice_connection_state() = 0;
virtual IceGatheringState ice_gathering_state() = 0;