OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "content/renderer/media/mock_media_stream_dependency_factory.h" | 5 #include "content/renderer/media/mock_media_stream_dependency_factory.h" |
6 #include "content/renderer/media/mock_peer_connection_impl.h" | 6 #include "content/renderer/media/mock_peer_connection_impl.h" |
7 | 7 |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/logging.h" | 10 #include "base/logging.h" |
(...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
157 bool MockPeerConnectionImpl::SetRemoteDescription( | 157 bool MockPeerConnectionImpl::SetRemoteDescription( |
158 Action action, | 158 Action action, |
159 webrtc::SessionDescriptionInterface* desc) { | 159 webrtc::SessionDescriptionInterface* desc) { |
160 action_ = action; | 160 action_ = action; |
161 remote_desc_.reset(desc); | 161 remote_desc_.reset(desc); |
162 return desc->ToString(&description_sdp_); | 162 return desc->ToString(&description_sdp_); |
163 } | 163 } |
164 | 164 |
165 bool MockPeerConnectionImpl::ProcessIceMessage( | 165 bool MockPeerConnectionImpl::ProcessIceMessage( |
166 const webrtc::IceCandidateInterface* ice_candidate) { | 166 const webrtc::IceCandidateInterface* ice_candidate) { |
167 ice_label_ = ice_candidate->label(); | 167 sdp_mid_ = ice_candidate->sdp_mid(); |
| 168 sdp_mline_index_ = ice_candidate->sdp_mline_index(); |
168 return ice_candidate->ToString(&ice_sdp_); | 169 return ice_candidate->ToString(&ice_sdp_); |
169 } | 170 } |
170 | 171 |
171 const webrtc::SessionDescriptionInterface* | 172 const webrtc::SessionDescriptionInterface* |
172 MockPeerConnectionImpl::local_description() const { | 173 MockPeerConnectionImpl::local_description() const { |
173 return local_desc_.get(); | 174 return local_desc_.get(); |
174 } | 175 } |
175 | 176 |
176 const webrtc::SessionDescriptionInterface* | 177 const webrtc::SessionDescriptionInterface* |
177 MockPeerConnectionImpl::remote_description() const { | 178 MockPeerConnectionImpl::remote_description() const { |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
218 NOTIMPLEMENTED(); | 219 NOTIMPLEMENTED(); |
219 return false; | 220 return false; |
220 } | 221 } |
221 | 222 |
222 PeerConnectionInterface::IceState MockPeerConnectionImpl::ice_state() { | 223 PeerConnectionInterface::IceState MockPeerConnectionImpl::ice_state() { |
223 NOTIMPLEMENTED(); | 224 NOTIMPLEMENTED(); |
224 return kIceNew; | 225 return kIceNew; |
225 } | 226 } |
226 | 227 |
227 } // namespace webrtc | 228 } // namespace webrtc |
OLD | NEW |