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

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: Readd the UMA histogram for Deprecated PeerConnection to not screw up the stats. Created 8 years, 3 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..30dcea15704eb55d57a3d27b5d2be5ce756c57d2 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,8 +81,11 @@ 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[];
+ static const char kDummyAnswer[];
protected:
virtual ~MockPeerConnectionImpl();
@@ -95,6 +99,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 +109,7 @@ class MockPeerConnectionImpl : public PeerConnectionInterface {
int sdp_mline_index_;
std::string ice_sdp_;
ReadyState ready_state_;
+ IceState ice_state_;
DISALLOW_COPY_AND_ASSIGN(MockPeerConnectionImpl);
};
« no previous file with comments | « content/renderer/media/mock_media_stream_dependency_factory.cc ('k') | content/renderer/media/mock_peer_connection_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698