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

Side by Side Diff: content/renderer/media/mock_peer_connection_impl.h

Issue 10833061: Rolling libjingle revison r163. (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 #ifndef CONTENT_RENDERER_MEDIA_MOCK_PEER_CONNECTION_IMPL_H_ 5 #ifndef CONTENT_RENDERER_MEDIA_MOCK_PEER_CONNECTION_IMPL_H_
6 #define CONTENT_RENDERER_MEDIA_MOCK_PEER_CONNECTION_IMPL_H_ 6 #define CONTENT_RENDERER_MEDIA_MOCK_PEER_CONNECTION_IMPL_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 void SetReadyState(ReadyState state) { ready_state_ = state; } 80 void SetReadyState(ReadyState state) { ready_state_ = state; }
81 81
82 const std::string& signaling_message() const { return signaling_message_; } 82 const std::string& signaling_message() const { return signaling_message_; }
83 const std::string& stream_label() const { return stream_label_; } 83 const std::string& stream_label() const { return stream_label_; }
84 bool stream_changes_committed() const { return stream_changes_committed_; } 84 bool stream_changes_committed() const { return stream_changes_committed_; }
85 bool hint_audio() const { return hint_audio_; } 85 bool hint_audio() const { return hint_audio_; }
86 bool hint_video() const { return hint_video_; } 86 bool hint_video() const { return hint_video_; }
87 Action action() const { return action_; } 87 Action action() const { return action_; }
88 const std::string& description_sdp() const { return description_sdp_; } 88 const std::string& description_sdp() const { return description_sdp_; }
89 IceOptions ice_options() const { return ice_options_; } 89 IceOptions ice_options() const { return ice_options_; }
90 const std::string& ice_label() const { return ice_label_; } 90 const std::string& sdp_mid() const { return sdp_mid_; }
91 int sdp_mline_index() const { return sdp_mline_index_; }
91 const std::string& ice_sdp() const { return ice_sdp_; } 92 const std::string& ice_sdp() const { return ice_sdp_; }
92 93
93 static const char kDummyOffer[]; 94 static const char kDummyOffer[];
94 95
95 protected: 96 protected:
96 virtual ~MockPeerConnectionImpl(); 97 virtual ~MockPeerConnectionImpl();
97 98
98 private: 99 private:
99 // Used for creating MockSessionDescription. 100 // Used for creating MockSessionDescription.
100 MockMediaStreamDependencyFactory* dependency_factory_; 101 MockMediaStreamDependencyFactory* dependency_factory_;
101 102
102 std::string signaling_message_; 103 std::string signaling_message_;
103 std::string stream_label_; 104 std::string stream_label_;
104 bool stream_changes_committed_; 105 bool stream_changes_committed_;
105 talk_base::scoped_refptr<MockStreamCollection> local_streams_; 106 talk_base::scoped_refptr<MockStreamCollection> local_streams_;
106 talk_base::scoped_refptr<MockStreamCollection> remote_streams_; 107 talk_base::scoped_refptr<MockStreamCollection> remote_streams_;
107 scoped_ptr<webrtc::SessionDescriptionInterface> local_desc_; 108 scoped_ptr<webrtc::SessionDescriptionInterface> local_desc_;
108 scoped_ptr<webrtc::SessionDescriptionInterface> remote_desc_; 109 scoped_ptr<webrtc::SessionDescriptionInterface> remote_desc_;
109 bool hint_audio_; 110 bool hint_audio_;
110 bool hint_video_; 111 bool hint_video_;
111 Action action_; 112 Action action_;
112 std::string description_sdp_; 113 std::string description_sdp_;
113 IceOptions ice_options_; 114 IceOptions ice_options_;
114 std::string ice_label_; 115 std::string sdp_mid_;
116 int sdp_mline_index_;
115 std::string ice_sdp_; 117 std::string ice_sdp_;
116 ReadyState ready_state_; 118 ReadyState ready_state_;
117 119
118 DISALLOW_COPY_AND_ASSIGN(MockPeerConnectionImpl); 120 DISALLOW_COPY_AND_ASSIGN(MockPeerConnectionImpl);
119 }; 121 };
120 122
121 } // namespace webrtc 123 } // namespace webrtc
122 124
123 #endif // CONTENT_RENDERER_MEDIA_MOCK_PEER_CONNECTION_IMPL_H_ 125 #endif // CONTENT_RENDERER_MEDIA_MOCK_PEER_CONNECTION_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698