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

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

Issue 10703095: New PeerConnection handler in Chrome to support latest PeerConnection draft (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed code review comments by Ronghua. Created 8 years, 4 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.h
diff --git a/content/renderer/media/mock_peer_connection_impl.h b/content/renderer/media/mock_peer_connection_impl.h
index 1de2942e684d5cef7bb0b5c9fdb2582eb7e403ee..2aa45b2a844c7eb8180c27c16c96c49f3feea50e 100644
--- a/content/renderer/media/mock_peer_connection_impl.h
+++ b/content/renderer/media/mock_peer_connection_impl.h
@@ -70,6 +70,7 @@ class MockPeerConnectionImpl : public PeerConnectionInterface {
void AddRemoteStream(MediaStreamInterface* stream);
void SetReadyState(ReadyState state) { ready_state_ = state; }
+ void SetIceState(IceState state) { ice_state_ = state; }
const std::string& stream_label() const { return stream_label_; }
bool hint_audio() const { return hint_audio_; }
@@ -80,7 +81,9 @@ class MockPeerConnectionImpl : public PeerConnectionInterface {
const std::string& sdp_mid() const { return sdp_mid_; }
int sdp_mline_index() const { return sdp_mline_index_; }
const std::string& ice_sdp() const { return ice_sdp_; }
-
+ webrtc::SessionDescriptionInterface* created_session_description() const {
+ return created_sessiondescription_.get();
+ }
static const char kDummyOffer[];
protected:
@@ -95,6 +98,7 @@ class MockPeerConnectionImpl : public PeerConnectionInterface {
talk_base::scoped_refptr<MockStreamCollection> remote_streams_;
scoped_ptr<webrtc::SessionDescriptionInterface> local_desc_;
scoped_ptr<webrtc::SessionDescriptionInterface> remote_desc_;
+ scoped_ptr<webrtc::SessionDescriptionInterface> created_sessiondescription_;
bool hint_audio_;
bool hint_video_;
Action action_;
@@ -104,6 +108,7 @@ class MockPeerConnectionImpl : public PeerConnectionInterface {
int sdp_mline_index_;
std::string ice_sdp_;
ReadyState ready_state_;
+ IceState ice_state_;
DISALLOW_COPY_AND_ASSIGN(MockPeerConnectionImpl);
};

Powered by Google App Engine
This is Rietveld 408576698