| 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 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 85 | 85 |
| 86 bool MockPeerConnectionImpl::AddStream( | 86 bool MockPeerConnectionImpl::AddStream( |
| 87 MediaStreamInterface* local_stream, | 87 MediaStreamInterface* local_stream, |
| 88 const MediaConstraintsInterface* constraints) { | 88 const MediaConstraintsInterface* constraints) { |
| 89 DCHECK(stream_label_.empty()); | 89 DCHECK(stream_label_.empty()); |
| 90 stream_label_ = local_stream->label(); | 90 stream_label_ = local_stream->label(); |
| 91 local_streams_->AddStream(local_stream); | 91 local_streams_->AddStream(local_stream); |
| 92 return true; | 92 return true; |
| 93 } | 93 } |
| 94 | 94 |
| 95 bool MockPeerConnectionImpl::CanSendDtmf( |
| 96 const webrtc::AudioTrackInterface* track) { |
| 97 NOTIMPLEMENTED(); |
| 98 return false; |
| 99 } |
| 100 |
| 101 bool MockPeerConnectionImpl::SendDtmf( |
| 102 const webrtc::AudioTrackInterface* send_track, |
| 103 const std::string& tones, int duration, |
| 104 const webrtc::AudioTrackInterface* play_track) { |
| 105 NOTIMPLEMENTED(); |
| 106 return false; |
| 107 } |
| 108 |
| 95 void MockPeerConnectionImpl::RemoveStream( | 109 void MockPeerConnectionImpl::RemoveStream( |
| 96 MediaStreamInterface* local_stream) { | 110 MediaStreamInterface* local_stream) { |
| 97 DCHECK_EQ(stream_label_, local_stream->label()); | 111 DCHECK_EQ(stream_label_, local_stream->label()); |
| 98 stream_label_.clear(); | 112 stream_label_.clear(); |
| 99 local_streams_->RemoveStream(local_stream); | 113 local_streams_->RemoveStream(local_stream); |
| 100 } | 114 } |
| 101 | 115 |
| 102 MockPeerConnectionImpl::ReadyState MockPeerConnectionImpl::ready_state() { | 116 MockPeerConnectionImpl::ReadyState MockPeerConnectionImpl::ready_state() { |
| 103 return ready_state_; | 117 return ready_state_; |
| 104 } | 118 } |
| (...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 200 sdp_mid_ = candidate->sdp_mid(); | 214 sdp_mid_ = candidate->sdp_mid(); |
| 201 sdp_mline_index_ = candidate->sdp_mline_index(); | 215 sdp_mline_index_ = candidate->sdp_mline_index(); |
| 202 return candidate->ToString(&ice_sdp_); | 216 return candidate->ToString(&ice_sdp_); |
| 203 } | 217 } |
| 204 | 218 |
| 205 PeerConnectionInterface::IceState MockPeerConnectionImpl::ice_state() { | 219 PeerConnectionInterface::IceState MockPeerConnectionImpl::ice_state() { |
| 206 return ice_state_; | 220 return ice_state_; |
| 207 } | 221 } |
| 208 | 222 |
| 209 } // namespace webrtc | 223 } // namespace webrtc |
| OLD | NEW |