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_peer_connection_impl.h" | 5 #include "content/renderer/media/mock_peer_connection_impl.h" |
6 | 6 |
7 #include <stddef.h> | 7 #include <stddef.h> |
8 | 8 |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 248 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
259 local_desc_.reset(desc); | 259 local_desc_.reset(desc); |
260 } | 260 } |
261 | 261 |
262 void MockPeerConnectionImpl::SetRemoteDescriptionWorker( | 262 void MockPeerConnectionImpl::SetRemoteDescriptionWorker( |
263 SetSessionDescriptionObserver* observer, | 263 SetSessionDescriptionObserver* observer, |
264 SessionDescriptionInterface* desc) { | 264 SessionDescriptionInterface* desc) { |
265 desc->ToString(&description_sdp_); | 265 desc->ToString(&description_sdp_); |
266 remote_desc_.reset(desc); | 266 remote_desc_.reset(desc); |
267 } | 267 } |
268 | 268 |
269 bool MockPeerConnectionImpl::UpdateIce(const IceServers& configuration) { | 269 bool MockPeerConnectionImpl::SetConfiguration( |
| 270 const RTCConfiguration& configuration) { |
270 return true; | 271 return true; |
271 } | 272 } |
272 | 273 |
273 bool MockPeerConnectionImpl::AddIceCandidate( | 274 bool MockPeerConnectionImpl::AddIceCandidate( |
274 const IceCandidateInterface* candidate) { | 275 const IceCandidateInterface* candidate) { |
275 sdp_mid_ = candidate->sdp_mid(); | 276 sdp_mid_ = candidate->sdp_mid(); |
276 sdp_mline_index_ = candidate->sdp_mline_index(); | 277 sdp_mline_index_ = candidate->sdp_mline_index(); |
277 return candidate->ToString(&ice_sdp_); | 278 return candidate->ToString(&ice_sdp_); |
278 } | 279 } |
279 | 280 |
280 void MockPeerConnectionImpl::RegisterUMAObserver( | 281 void MockPeerConnectionImpl::RegisterUMAObserver( |
281 webrtc::UMAObserver* observer) { | 282 webrtc::UMAObserver* observer) { |
282 NOTIMPLEMENTED(); | 283 NOTIMPLEMENTED(); |
283 } | 284 } |
284 | 285 |
285 } // namespace content | 286 } // namespace content |
OLD | NEW |