OLD | NEW |
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 <memory> | 8 #include <memory> |
9 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
85 webrtc::SessionDescriptionInterface* desc)); | 85 webrtc::SessionDescriptionInterface* desc)); |
86 void SetLocalDescriptionWorker( | 86 void SetLocalDescriptionWorker( |
87 webrtc::SetSessionDescriptionObserver* observer, | 87 webrtc::SetSessionDescriptionObserver* observer, |
88 webrtc::SessionDescriptionInterface* desc) ; | 88 webrtc::SessionDescriptionInterface* desc) ; |
89 MOCK_METHOD2(SetRemoteDescription, | 89 MOCK_METHOD2(SetRemoteDescription, |
90 void(webrtc::SetSessionDescriptionObserver* observer, | 90 void(webrtc::SetSessionDescriptionObserver* observer, |
91 webrtc::SessionDescriptionInterface* desc)); | 91 webrtc::SessionDescriptionInterface* desc)); |
92 void SetRemoteDescriptionWorker( | 92 void SetRemoteDescriptionWorker( |
93 webrtc::SetSessionDescriptionObserver* observer, | 93 webrtc::SetSessionDescriptionObserver* observer, |
94 webrtc::SessionDescriptionInterface* desc); | 94 webrtc::SessionDescriptionInterface* desc); |
95 bool UpdateIce(const IceServers& configuration) override; | 95 bool SetConfiguration(const RTCConfiguration& configuration) override; |
96 bool AddIceCandidate(const webrtc::IceCandidateInterface* candidate) override; | 96 bool AddIceCandidate(const webrtc::IceCandidateInterface* candidate) override; |
97 void RegisterUMAObserver(webrtc::UMAObserver* observer) override; | 97 void RegisterUMAObserver(webrtc::UMAObserver* observer) override; |
98 | 98 |
99 void AddRemoteStream(webrtc::MediaStreamInterface* stream); | 99 void AddRemoteStream(webrtc::MediaStreamInterface* stream); |
100 | 100 |
101 const std::string& stream_label() const { return stream_label_; } | 101 const std::string& stream_label() const { return stream_label_; } |
102 bool hint_audio() const { return hint_audio_; } | 102 bool hint_audio() const { return hint_audio_; } |
103 bool hint_video() const { return hint_video_; } | 103 bool hint_video() const { return hint_video_; } |
104 const std::string& description_sdp() const { return description_sdp_; } | 104 const std::string& description_sdp() const { return description_sdp_; } |
105 const std::string& sdp_mid() const { return sdp_mid_; } | 105 const std::string& sdp_mid() const { return sdp_mid_; } |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
137 std::string ice_sdp_; | 137 std::string ice_sdp_; |
138 webrtc::PeerConnectionObserver* observer_; | 138 webrtc::PeerConnectionObserver* observer_; |
139 rtc::scoped_refptr<webrtc::RTCStatsReport> stats_report_; | 139 rtc::scoped_refptr<webrtc::RTCStatsReport> stats_report_; |
140 | 140 |
141 DISALLOW_COPY_AND_ASSIGN(MockPeerConnectionImpl); | 141 DISALLOW_COPY_AND_ASSIGN(MockPeerConnectionImpl); |
142 }; | 142 }; |
143 | 143 |
144 } // namespace content | 144 } // namespace content |
145 | 145 |
146 #endif // CONTENT_RENDERER_MEDIA_MOCK_PEER_CONNECTION_IMPL_H_ | 146 #endif // CONTENT_RENDERER_MEDIA_MOCK_PEER_CONNECTION_IMPL_H_ |
OLD | NEW |