| 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 <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 62 return PeerConnectionInterface::kIceGatheringNew; | 62 return PeerConnectionInterface::kIceGatheringNew; |
| 63 } | 63 } |
| 64 | 64 |
| 65 MOCK_METHOD0(Close, void()); | 65 MOCK_METHOD0(Close, void()); |
| 66 | 66 |
| 67 const webrtc::SessionDescriptionInterface* local_description() const override; | 67 const webrtc::SessionDescriptionInterface* local_description() const override; |
| 68 const webrtc::SessionDescriptionInterface* remote_description() | 68 const webrtc::SessionDescriptionInterface* remote_description() |
| 69 const override; | 69 const override; |
| 70 | 70 |
| 71 // JSEP01 APIs | 71 // JSEP01 APIs |
| 72 void CreateOffer( | 72 void CreateOffer(webrtc::CreateSessionDescriptionObserver* observer, |
| 73 webrtc::CreateSessionDescriptionObserver* observer, | 73 const RTCOfferAnswerOptions& options) override; |
| 74 const webrtc::MediaConstraintsInterface* constraints) override; | 74 void CreateAnswer(webrtc::CreateSessionDescriptionObserver* observer, |
| 75 void CreateAnswer( | 75 const RTCOfferAnswerOptions& options) override; |
| 76 webrtc::CreateSessionDescriptionObserver* observer, | |
| 77 const webrtc::MediaConstraintsInterface* constraints) override; | |
| 78 MOCK_METHOD2(SetLocalDescription, | 76 MOCK_METHOD2(SetLocalDescription, |
| 79 void(webrtc::SetSessionDescriptionObserver* observer, | 77 void(webrtc::SetSessionDescriptionObserver* observer, |
| 80 webrtc::SessionDescriptionInterface* desc)); | 78 webrtc::SessionDescriptionInterface* desc)); |
| 81 void SetLocalDescriptionWorker( | 79 void SetLocalDescriptionWorker( |
| 82 webrtc::SetSessionDescriptionObserver* observer, | 80 webrtc::SetSessionDescriptionObserver* observer, |
| 83 webrtc::SessionDescriptionInterface* desc) ; | 81 webrtc::SessionDescriptionInterface* desc) ; |
| 84 MOCK_METHOD2(SetRemoteDescription, | 82 MOCK_METHOD2(SetRemoteDescription, |
| 85 void(webrtc::SetSessionDescriptionObserver* observer, | 83 void(webrtc::SetSessionDescriptionObserver* observer, |
| 86 webrtc::SessionDescriptionInterface* desc)); | 84 webrtc::SessionDescriptionInterface* desc)); |
| 87 void SetRemoteDescriptionWorker( | 85 void SetRemoteDescriptionWorker( |
| 88 webrtc::SetSessionDescriptionObserver* observer, | 86 webrtc::SetSessionDescriptionObserver* observer, |
| 89 webrtc::SessionDescriptionInterface* desc); | 87 webrtc::SessionDescriptionInterface* desc); |
| 90 bool UpdateIce(const IceServers& configuration, | 88 bool UpdateIce(const IceServers& configuration) override; |
| 91 const webrtc::MediaConstraintsInterface* constraints) override; | |
| 92 bool AddIceCandidate(const webrtc::IceCandidateInterface* candidate) override; | 89 bool AddIceCandidate(const webrtc::IceCandidateInterface* candidate) override; |
| 93 void RegisterUMAObserver(webrtc::UMAObserver* observer) override; | 90 void RegisterUMAObserver(webrtc::UMAObserver* observer) override; |
| 94 | 91 |
| 95 void AddRemoteStream(webrtc::MediaStreamInterface* stream); | 92 void AddRemoteStream(webrtc::MediaStreamInterface* stream); |
| 96 | 93 |
| 97 const std::string& stream_label() const { return stream_label_; } | 94 const std::string& stream_label() const { return stream_label_; } |
| 98 bool hint_audio() const { return hint_audio_; } | 95 bool hint_audio() const { return hint_audio_; } |
| 99 bool hint_video() const { return hint_video_; } | 96 bool hint_video() const { return hint_video_; } |
| 100 const std::string& description_sdp() const { return description_sdp_; } | 97 const std::string& description_sdp() const { return description_sdp_; } |
| 101 const std::string& sdp_mid() const { return sdp_mid_; } | 98 const std::string& sdp_mid() const { return sdp_mid_; } |
| (...skipping 29 matching lines...) Expand all Loading... |
| 131 int sdp_mline_index_; | 128 int sdp_mline_index_; |
| 132 std::string ice_sdp_; | 129 std::string ice_sdp_; |
| 133 webrtc::PeerConnectionObserver* observer_; | 130 webrtc::PeerConnectionObserver* observer_; |
| 134 | 131 |
| 135 DISALLOW_COPY_AND_ASSIGN(MockPeerConnectionImpl); | 132 DISALLOW_COPY_AND_ASSIGN(MockPeerConnectionImpl); |
| 136 }; | 133 }; |
| 137 | 134 |
| 138 } // namespace content | 135 } // namespace content |
| 139 | 136 |
| 140 #endif // CONTENT_RENDERER_MEDIA_MOCK_PEER_CONNECTION_IMPL_H_ | 137 #endif // CONTENT_RENDERER_MEDIA_MOCK_PEER_CONNECTION_IMPL_H_ |
| OLD | NEW |