| 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 149 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 160 | 160 |
| 161 const webrtc::SessionDescriptionInterface* | 161 const webrtc::SessionDescriptionInterface* |
| 162 MockPeerConnectionImpl::remote_description() const { | 162 MockPeerConnectionImpl::remote_description() const { |
| 163 return remote_desc_.get(); | 163 return remote_desc_.get(); |
| 164 } | 164 } |
| 165 | 165 |
| 166 void MockPeerConnectionImpl::AddRemoteStream(MediaStreamInterface* stream) { | 166 void MockPeerConnectionImpl::AddRemoteStream(MediaStreamInterface* stream) { |
| 167 remote_streams_->AddStream(stream); | 167 remote_streams_->AddStream(stream); |
| 168 } | 168 } |
| 169 | 169 |
| 170 // TODO(perkj): Implement JSEP01 mock functions. |
| 171 void MockPeerConnectionImpl::CreateOffer( |
| 172 CreateSessionDescriptionObserver* observer, |
| 173 const SessionDescriptionOptions& options) { |
| 174 NOTIMPLEMENTED(); |
| 175 } |
| 176 |
| 177 void MockPeerConnectionImpl::CreateAnswer( |
| 178 CreateSessionDescriptionObserver* observer, |
| 179 const SessionDescriptionOptions& options) { |
| 180 NOTIMPLEMENTED(); |
| 181 } |
| 182 |
| 183 void MockPeerConnectionImpl::SetLocalDescription( |
| 184 SetSessionDescriptionObserver* observer, |
| 185 SessionDescriptionInterface* desc) { |
| 186 NOTIMPLEMENTED(); |
| 187 } |
| 188 |
| 189 void MockPeerConnectionImpl::SetRemoteDescription( |
| 190 SetSessionDescriptionObserver* observer, |
| 191 SessionDescriptionInterface* desc) { |
| 192 NOTIMPLEMENTED(); |
| 193 } |
| 194 |
| 195 bool MockPeerConnectionImpl::UpdateIce(const IceServers& configuration, |
| 196 IceOptions options) { |
| 197 NOTIMPLEMENTED(); |
| 198 return false; |
| 199 } |
| 200 |
| 201 bool MockPeerConnectionImpl::AddIceCandidate( |
| 202 const IceCandidateInterface* candidate) { |
| 203 NOTIMPLEMENTED(); |
| 204 return false; |
| 205 } |
| 206 |
| 207 PeerConnectionInterface::IceState MockPeerConnectionImpl::ice_state() { |
| 208 NOTIMPLEMENTED(); |
| 209 return kIceNew; |
| 210 } |
| 211 |
| 170 } // namespace webrtc | 212 } // namespace webrtc |
| OLD | NEW |