| 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 12 matching lines...) Expand all Loading... |
| 23 explicit MockPeerConnectionImpl(MockMediaStreamDependencyFactory* factory); | 23 explicit MockPeerConnectionImpl(MockMediaStreamDependencyFactory* factory); |
| 24 | 24 |
| 25 // PeerConnectionInterface implementation. | 25 // PeerConnectionInterface implementation. |
| 26 virtual talk_base::scoped_refptr<StreamCollectionInterface> | 26 virtual talk_base::scoped_refptr<StreamCollectionInterface> |
| 27 local_streams() OVERRIDE; | 27 local_streams() OVERRIDE; |
| 28 virtual talk_base::scoped_refptr<StreamCollectionInterface> | 28 virtual talk_base::scoped_refptr<StreamCollectionInterface> |
| 29 remote_streams() OVERRIDE; | 29 remote_streams() OVERRIDE; |
| 30 virtual void AddStream(LocalMediaStreamInterface* stream) OVERRIDE; | 30 virtual void AddStream(LocalMediaStreamInterface* stream) OVERRIDE; |
| 31 virtual bool AddStream(MediaStreamInterface* local_stream, | 31 virtual bool AddStream(MediaStreamInterface* local_stream, |
| 32 const MediaConstraintsInterface* constraints) OVERRIDE; | 32 const MediaConstraintsInterface* constraints) OVERRIDE; |
| 33 virtual bool CanSendDtmf(const webrtc::AudioTrackInterface* track) OVERRIDE; |
| 34 virtual bool SendDtmf(const webrtc::AudioTrackInterface* send_track, |
| 35 const std::string& tones, int duration, |
| 36 const webrtc::AudioTrackInterface* play_track) OVERRIDE; |
| 33 virtual void RemoveStream(MediaStreamInterface* local_stream) OVERRIDE; | 37 virtual void RemoveStream(MediaStreamInterface* local_stream) OVERRIDE; |
| 34 virtual ReadyState ready_state() OVERRIDE; | 38 virtual ReadyState ready_state() OVERRIDE; |
| 35 virtual bool StartIce(IceOptions options) OVERRIDE; | 39 virtual bool StartIce(IceOptions options) OVERRIDE; |
| 36 | 40 |
| 37 virtual webrtc::SessionDescriptionInterface* CreateOffer( | 41 virtual webrtc::SessionDescriptionInterface* CreateOffer( |
| 38 const webrtc::MediaHints& hints) OVERRIDE; | 42 const webrtc::MediaHints& hints) OVERRIDE; |
| 39 virtual webrtc::SessionDescriptionInterface* CreateAnswer( | 43 virtual webrtc::SessionDescriptionInterface* CreateAnswer( |
| 40 const webrtc::MediaHints& hints, | 44 const webrtc::MediaHints& hints, |
| 41 const webrtc::SessionDescriptionInterface* offer) OVERRIDE; | 45 const webrtc::SessionDescriptionInterface* offer) OVERRIDE; |
| 42 virtual bool SetLocalDescription( | 46 virtual bool SetLocalDescription( |
| (...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 110 std::string ice_sdp_; | 114 std::string ice_sdp_; |
| 111 ReadyState ready_state_; | 115 ReadyState ready_state_; |
| 112 IceState ice_state_; | 116 IceState ice_state_; |
| 113 | 117 |
| 114 DISALLOW_COPY_AND_ASSIGN(MockPeerConnectionImpl); | 118 DISALLOW_COPY_AND_ASSIGN(MockPeerConnectionImpl); |
| 115 }; | 119 }; |
| 116 | 120 |
| 117 } // namespace webrtc | 121 } // namespace webrtc |
| 118 | 122 |
| 119 #endif // CONTENT_RENDERER_MEDIA_MOCK_PEER_CONNECTION_IMPL_H_ | 123 #endif // CONTENT_RENDERER_MEDIA_MOCK_PEER_CONNECTION_IMPL_H_ |
| OLD | NEW |