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

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

Issue 9699069: Adding JSEP PeerConnection glue. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Deleting two renamed files. Created 8 years, 9 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 3c78c76bc1c5b9d9310043445ff08dcfd1d8c90b..09aaa6f63f4ff6f875b33c5441ea9c129b87ae14 100644
--- a/content/renderer/media/mock_peer_connection_impl.h
+++ b/content/renderer/media/mock_peer_connection_impl.h
@@ -11,13 +11,15 @@
#include "base/compiler_specific.h"
#include "third_party/libjingle/source/talk/app/webrtc/peerconnection.h"
+class MockMediaStreamDependencyFactory;
+
namespace webrtc {
class MockStreamCollection;
class MockPeerConnectionImpl : public PeerConnectionInterface {
public:
- MockPeerConnectionImpl();
+ MockPeerConnectionImpl(MockMediaStreamDependencyFactory* factory);
// PeerConnectionInterface implementation.
virtual void ProcessSignalingMessage(const std::string& msg) OVERRIDE;
@@ -54,19 +56,40 @@ class MockPeerConnectionImpl : public PeerConnectionInterface {
void AddRemoteStream(MediaStreamInterface* stream);
void ClearStreamChangesCommitted() { stream_changes_committed_ = false; }
+ void SetReadyState(ReadyState state) { ready_state_ = state; }
const std::string& signaling_message() const { return signaling_message_; }
const std::string& stream_label() const { return stream_label_; }
bool stream_changes_committed() const { return stream_changes_committed_; }
+ bool hint_audio() const { return hint_audio_; }
+ bool hint_video() const { return hint_video_; }
+ Action action() const { return action_; }
+ const std::string& description_sdp() const { return description_sdp_; }
+ IceOptions ice_options() const { return ice_options_; }
+ const std::string& ice_label() const { return ice_label_; }
+ const std::string& ice_sdp() const { return ice_sdp_; }
+
+ const std::string kDummyOffer;
tommi (sloooow) - chröme 2012/03/26 12:34:45 static const char[] ?
Henrik Grunell 2012/03/27 07:22:05 Sure. Done.
protected:
virtual ~MockPeerConnectionImpl();
private:
+ // Used for creating MockSessionDescription.
+ MockMediaStreamDependencyFactory* dependency_factory_;
+
std::string signaling_message_;
std::string stream_label_;
bool stream_changes_committed_;
talk_base::scoped_refptr<MockStreamCollection> remote_streams_;
+ bool hint_audio_;
+ bool hint_video_;
+ Action action_;
+ std::string description_sdp_;
+ IceOptions ice_options_;
+ std::string ice_label_;
+ std::string ice_sdp_;
+ ReadyState ready_state_;
DISALLOW_COPY_AND_ASSIGN(MockPeerConnectionImpl);
};

Powered by Google App Engine
This is Rietveld 408576698