Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1837)

Unified Diff: content/renderer/media/mock_peer_connection_impl.cc

Issue 11828060: Roll libjingle 257:260. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 7 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: content/renderer/media/mock_peer_connection_impl.cc
===================================================================
--- content/renderer/media/mock_peer_connection_impl.cc (revision 176188)
+++ content/renderer/media/mock_peer_connection_impl.cc (working copy)
@@ -117,10 +117,8 @@
remote_streams_(new talk_base::RefCountedObject<MockStreamCollection>),
hint_audio_(false),
hint_video_(false),
- action_(kAnswer),
- ice_options_(kOnlyRelay),
sdp_mline_index_(-1),
- ready_state_(kNew),
+ signaling_state_(kNew),
ice_state_(kIceNew) {
}
@@ -204,51 +202,13 @@
}
MockPeerConnectionImpl::ReadyState MockPeerConnectionImpl::ready_state() {
- return ready_state_;
+ return signaling_state_;
}
-bool MockPeerConnectionImpl::StartIce(IceOptions options) {
- ice_options_ = options;
- return true;
+MockPeerConnectionImpl::ReadyState MockPeerConnectionImpl::signaling_state() {
+ return signaling_state_;
}
-webrtc::SessionDescriptionInterface* MockPeerConnectionImpl::CreateOffer(
- const webrtc::MediaHints& hints) {
- hint_audio_ = hints.has_audio();
- hint_video_ = hints.has_video();
- return dependency_factory_->CreateSessionDescription(kDummyOffer);
-}
-
-webrtc::SessionDescriptionInterface* MockPeerConnectionImpl::CreateAnswer(
- const webrtc::MediaHints& hints,
- const webrtc::SessionDescriptionInterface* offer) {
- hint_audio_ = hints.has_audio();
- hint_video_ = hints.has_video();
- offer->ToString(&description_sdp_);
- return dependency_factory_->CreateSessionDescription(description_sdp_);
-}
-
-bool MockPeerConnectionImpl::SetLocalDescription(
- Action action,
- webrtc::SessionDescriptionInterface* desc) {
- action_ = action;
- local_desc_.reset(desc);
- return desc->ToString(&description_sdp_);
-}
-
-bool MockPeerConnectionImpl::SetRemoteDescription(
- Action action,
- webrtc::SessionDescriptionInterface* desc) {
- action_ = action;
- remote_desc_.reset(desc);
- return desc->ToString(&description_sdp_);
-}
-
-bool MockPeerConnectionImpl::ProcessIceMessage(
- const webrtc::IceCandidateInterface* ice_candidate) {
- return AddIceCandidate(ice_candidate);
-}
-
const webrtc::SessionDescriptionInterface*
MockPeerConnectionImpl::local_description() const {
return local_desc_.get();
@@ -268,7 +228,7 @@
const MediaConstraintsInterface* constraints) {
DCHECK(observer);
created_sessiondescription_.reset(
- dependency_factory_->CreateSessionDescription(kDummyOffer));
+ dependency_factory_->CreateSessionDescription("unknown", kDummyOffer));
}
void MockPeerConnectionImpl::CreateAnswer(
@@ -276,7 +236,7 @@
const MediaConstraintsInterface* constraints) {
DCHECK(observer);
created_sessiondescription_.reset(
- dependency_factory_->CreateSessionDescription(kDummyAnswer));
+ dependency_factory_->CreateSessionDescription("unknown", kDummyAnswer));
}
void MockPeerConnectionImpl::SetLocalDescription(
« no previous file with comments | « content/renderer/media/mock_peer_connection_impl.h ('k') | content/renderer/media/peer_connection_handler_base.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698