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/basictypes.h" | 10 #include "base/basictypes.h" |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
63 webrtc::SessionDescriptionInterface* desc) ; | 63 webrtc::SessionDescriptionInterface* desc) ; |
64 virtual void SetRemoteDescription( | 64 virtual void SetRemoteDescription( |
65 webrtc::SetSessionDescriptionObserver* observer, | 65 webrtc::SetSessionDescriptionObserver* observer, |
66 webrtc::SessionDescriptionInterface* desc) OVERRIDE; | 66 webrtc::SessionDescriptionInterface* desc) OVERRIDE; |
67 virtual bool UpdateIce( | 67 virtual bool UpdateIce( |
68 const IceServers& configuration, | 68 const IceServers& configuration, |
69 const webrtc::MediaConstraintsInterface* constraints) OVERRIDE; | 69 const webrtc::MediaConstraintsInterface* constraints) OVERRIDE; |
70 virtual bool AddIceCandidate( | 70 virtual bool AddIceCandidate( |
71 const webrtc::IceCandidateInterface* candidate) OVERRIDE; | 71 const webrtc::IceCandidateInterface* candidate) OVERRIDE; |
72 virtual IceState ice_state() OVERRIDE; | 72 virtual IceState ice_state() OVERRIDE; |
| 73 virtual IceConnectionState ice_connection_state() OVERRIDE; |
| 74 virtual IceGatheringState ice_gathering_state() OVERRIDE; |
73 | 75 |
74 void AddRemoteStream(webrtc::MediaStreamInterface* stream); | 76 void AddRemoteStream(webrtc::MediaStreamInterface* stream); |
75 void SetSignalingState(SignalingState state) { signaling_state_ = state; } | 77 void SetSignalingState(SignalingState state) { signaling_state_ = state; } |
76 void SetIceState(IceState state) { ice_state_ = state; } | 78 void SetIceState(IceState state) { ice_state_ = state; } |
77 | 79 |
78 const std::string& stream_label() const { return stream_label_; } | 80 const std::string& stream_label() const { return stream_label_; } |
79 bool hint_audio() const { return hint_audio_; } | 81 bool hint_audio() const { return hint_audio_; } |
80 bool hint_video() const { return hint_video_; } | 82 bool hint_video() const { return hint_video_; } |
81 const std::string& description_sdp() const { return description_sdp_; } | 83 const std::string& description_sdp() const { return description_sdp_; } |
82 const std::string& sdp_mid() const { return sdp_mid_; } | 84 const std::string& sdp_mid() const { return sdp_mid_; } |
(...skipping 26 matching lines...) Expand all Loading... |
109 std::string ice_sdp_; | 111 std::string ice_sdp_; |
110 SignalingState signaling_state_; | 112 SignalingState signaling_state_; |
111 IceState ice_state_; | 113 IceState ice_state_; |
112 | 114 |
113 DISALLOW_COPY_AND_ASSIGN(MockPeerConnectionImpl); | 115 DISALLOW_COPY_AND_ASSIGN(MockPeerConnectionImpl); |
114 }; | 116 }; |
115 | 117 |
116 } // namespace content | 118 } // namespace content |
117 | 119 |
118 #endif // CONTENT_RENDERER_MEDIA_MOCK_PEER_CONNECTION_IMPL_H_ | 120 #endif // CONTENT_RENDERER_MEDIA_MOCK_PEER_CONNECTION_IMPL_H_ |
OLD | NEW |