| Index: content/renderer/media/mock_peer_connection_impl.cc
|
| ===================================================================
|
| --- content/renderer/media/mock_peer_connection_impl.cc (revision 176188)
|
| +++ content/renderer/media/mock_peer_connection_impl.cc (working copy)
|
| @@ -117,10 +117,9 @@
|
| remote_streams_(new talk_base::RefCountedObject<MockStreamCollection>),
|
| hint_audio_(false),
|
| hint_video_(false),
|
| - action_(kAnswer),
|
| ice_options_(kOnlyRelay),
|
| sdp_mline_index_(-1),
|
| - ready_state_(kNew),
|
| + signaling_state_(kNew),
|
| ice_state_(kIceNew) {
|
| }
|
|
|
| @@ -204,51 +203,18 @@
|
| }
|
|
|
| MockPeerConnectionImpl::ReadyState MockPeerConnectionImpl::ready_state() {
|
| - return ready_state_;
|
| + return signaling_state_;
|
| }
|
|
|
| +MockPeerConnectionImpl::ReadyState MockPeerConnectionImpl::signaling_state() {
|
| + return signaling_state_;
|
| +}
|
| +
|
| bool MockPeerConnectionImpl::StartIce(IceOptions options) {
|
| ice_options_ = options;
|
| return true;
|
| }
|
|
|
| -webrtc::SessionDescriptionInterface* MockPeerConnectionImpl::CreateOffer(
|
| - const webrtc::MediaHints& hints) {
|
| - hint_audio_ = hints.has_audio();
|
| - hint_video_ = hints.has_video();
|
| - return dependency_factory_->CreateSessionDescription(kDummyOffer);
|
| -}
|
| -
|
| -webrtc::SessionDescriptionInterface* MockPeerConnectionImpl::CreateAnswer(
|
| - const webrtc::MediaHints& hints,
|
| - const webrtc::SessionDescriptionInterface* offer) {
|
| - hint_audio_ = hints.has_audio();
|
| - hint_video_ = hints.has_video();
|
| - offer->ToString(&description_sdp_);
|
| - return dependency_factory_->CreateSessionDescription(description_sdp_);
|
| -}
|
| -
|
| -bool MockPeerConnectionImpl::SetLocalDescription(
|
| - Action action,
|
| - webrtc::SessionDescriptionInterface* desc) {
|
| - action_ = action;
|
| - local_desc_.reset(desc);
|
| - return desc->ToString(&description_sdp_);
|
| -}
|
| -
|
| -bool MockPeerConnectionImpl::SetRemoteDescription(
|
| - Action action,
|
| - webrtc::SessionDescriptionInterface* desc) {
|
| - action_ = action;
|
| - remote_desc_.reset(desc);
|
| - return desc->ToString(&description_sdp_);
|
| -}
|
| -
|
| -bool MockPeerConnectionImpl::ProcessIceMessage(
|
| - const webrtc::IceCandidateInterface* ice_candidate) {
|
| - return AddIceCandidate(ice_candidate);
|
| -}
|
| -
|
| const webrtc::SessionDescriptionInterface*
|
| MockPeerConnectionImpl::local_description() const {
|
| return local_desc_.get();
|
|
|