Rename RTCIceConnectionStateMax to RTCIceConnectionStateCount in Objective-C API.

BUG=

Review URL: https://codereview.webrtc.org/1799443006

Cr-Commit-Position: refs/heads/master@{#11987}
This commit is contained in:
hjon 2016-03-14 13:15:44 -07:00 committed by Commit bot
parent 5ad6bf112a
commit 8bbbf2c3da
3 changed files with 7 additions and 6 deletions

View File

@ -33,6 +33,7 @@ typedef NS_ENUM(NSInteger, RTCSignalingState) {
RTCSignalingStateHaveLocalPrAnswer,
RTCSignalingStateHaveRemoteOffer,
RTCSignalingStateHaveRemotePrAnswer,
// Not an actual state, represents the total number of states.
RTCSignalingStateClosed,
};
@ -45,7 +46,7 @@ typedef NS_ENUM(NSInteger, RTCIceConnectionState) {
RTCIceConnectionStateFailed,
RTCIceConnectionStateDisconnected,
RTCIceConnectionStateClosed,
RTCIceConnectionStateMax,
RTCIceConnectionStateCount,
};
/** Represents the ice gathering state of the peer connection. */

View File

@ -383,7 +383,7 @@ void PeerConnectionDelegateAdapter::OnIceCandidate(
return webrtc::PeerConnectionInterface::kIceConnectionDisconnected;
case RTCIceConnectionStateClosed:
return webrtc::PeerConnectionInterface::kIceConnectionClosed;
case RTCIceConnectionStateMax:
case RTCIceConnectionStateCount:
return webrtc::PeerConnectionInterface::kIceConnectionMax;
}
}
@ -406,7 +406,7 @@ void PeerConnectionDelegateAdapter::OnIceCandidate(
case webrtc::PeerConnectionInterface::kIceConnectionClosed:
return RTCIceConnectionStateClosed;
case webrtc::PeerConnectionInterface::kIceConnectionMax:
return RTCIceConnectionStateMax;
return RTCIceConnectionStateCount;
}
}
@ -426,8 +426,8 @@ void PeerConnectionDelegateAdapter::OnIceCandidate(
return @"DISCONNECTED";
case RTCIceConnectionStateClosed:
return @"CLOSED";
case RTCIceConnectionStateMax:
return @"MAX";
case RTCIceConnectionStateCount:
return @"COUNT";
}
}

View File

@ -203,7 +203,7 @@
case RTCIceConnectionStateFailed:
case RTCIceConnectionStateDisconnected:
case RTCIceConnectionStateClosed:
case RTCIceConnectionStateMax:
case RTCIceConnectionStateCount:
return nil;
}
}