| 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 "base/logging.h" | 5 #include "base/logging.h" |
| 6 #include "content/renderer/media/mock_media_stream_dependency_factory.h" | 6 #include "content/renderer/media/mock_media_stream_dependency_factory.h" |
| 7 #include "content/renderer/media/mock_peer_connection_impl.h" | 7 #include "content/renderer/media/mock_peer_connection_impl.h" |
| 8 #include "third_party/libjingle/source/talk/app/webrtc/mediastreaminterface.h" | 8 #include "third_party/libjingle/source/talk/app/webrtc/mediastreaminterface.h" |
| 9 #include "third_party/libjingle/source/talk/base/scoped_ref_ptr.h" | 9 #include "third_party/libjingle/source/talk/base/scoped_ref_ptr.h" |
| 10 | 10 |
| (...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 126 class MockSessionDescription : public SessionDescriptionInterface { | 126 class MockSessionDescription : public SessionDescriptionInterface { |
| 127 public: | 127 public: |
| 128 MockSessionDescription(const std::string& sdp) | 128 MockSessionDescription(const std::string& sdp) |
| 129 : sdp_(sdp) { | 129 : sdp_(sdp) { |
| 130 } | 130 } |
| 131 virtual ~MockSessionDescription() {} | 131 virtual ~MockSessionDescription() {} |
| 132 virtual const cricket::SessionDescription* description() const OVERRIDE { | 132 virtual const cricket::SessionDescription* description() const OVERRIDE { |
| 133 NOTIMPLEMENTED(); | 133 NOTIMPLEMENTED(); |
| 134 return NULL; | 134 return NULL; |
| 135 } | 135 } |
| 136 virtual std::string session_id() const OVERRIDE { |
| 137 NOTIMPLEMENTED(); |
| 138 return ""; |
| 139 } |
| 140 virtual std::string session_version() const OVERRIDE { |
| 141 NOTIMPLEMENTED(); |
| 142 return ""; |
| 143 } |
| 136 virtual bool AddCandidate(const IceCandidateInterface* candidate) OVERRIDE { | 144 virtual bool AddCandidate(const IceCandidateInterface* candidate) OVERRIDE { |
| 137 NOTIMPLEMENTED(); | 145 NOTIMPLEMENTED(); |
| 138 return false; | 146 return false; |
| 139 } | 147 } |
| 140 virtual size_t number_of_mediasections() const OVERRIDE { | 148 virtual size_t number_of_mediasections() const OVERRIDE { |
| 141 NOTIMPLEMENTED(); | 149 NOTIMPLEMENTED(); |
| 142 return 0; | 150 return 0; |
| 143 } | 151 } |
| 144 virtual const IceCandidateColletion* candidates( | 152 virtual const IceCandidateColletion* candidates( |
| 145 size_t mediasection_index) const OVERRIDE { | 153 size_t mediasection_index) const OVERRIDE { |
| (...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 254 const std::string& sdp) { | 262 const std::string& sdp) { |
| 255 return new webrtc::MockSessionDescription(sdp); | 263 return new webrtc::MockSessionDescription(sdp); |
| 256 } | 264 } |
| 257 | 265 |
| 258 webrtc::IceCandidateInterface* | 266 webrtc::IceCandidateInterface* |
| 259 MockMediaStreamDependencyFactory::CreateIceCandidate( | 267 MockMediaStreamDependencyFactory::CreateIceCandidate( |
| 260 const std::string& label, | 268 const std::string& label, |
| 261 const std::string& sdp) { | 269 const std::string& sdp) { |
| 262 return new webrtc::MockIceCandidate(label, sdp); | 270 return new webrtc::MockIceCandidate(label, sdp); |
| 263 } | 271 } |
| OLD | NEW |