| 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 | 23 |
| 24 // PeerConnectionInterface implementation. | 24 // PeerConnectionInterface implementation. |
| 25 virtual void ProcessSignalingMessage(const std::string& msg) OVERRIDE; | 25 virtual void ProcessSignalingMessage(const std::string& msg) OVERRIDE; |
| 26 virtual bool Send(const std::string& msg) OVERRIDE; | 26 virtual bool Send(const std::string& msg) OVERRIDE; |
| 27 virtual talk_base::scoped_refptr<StreamCollectionInterface> | 27 virtual talk_base::scoped_refptr<StreamCollectionInterface> |
| 28 local_streams() OVERRIDE; | 28 local_streams() OVERRIDE; |
| 29 virtual talk_base::scoped_refptr<StreamCollectionInterface> | 29 virtual talk_base::scoped_refptr<StreamCollectionInterface> |
| 30 remote_streams() OVERRIDE; | 30 remote_streams() OVERRIDE; |
| 31 virtual void AddStream(LocalMediaStreamInterface* stream) OVERRIDE; | 31 virtual void AddStream(LocalMediaStreamInterface* stream) OVERRIDE; |
| 32 virtual void RemoveStream(LocalMediaStreamInterface* stream) OVERRIDE; | 32 virtual void RemoveStream(LocalMediaStreamInterface* stream) OVERRIDE; |
| 33 virtual bool RemoveStream(const std::string& label) OVERRIDE; |
| 33 virtual void CommitStreamChanges() OVERRIDE; | 34 virtual void CommitStreamChanges() OVERRIDE; |
| 34 virtual void Close() OVERRIDE; | 35 virtual void Close() OVERRIDE; |
| 35 virtual ReadyState ready_state() OVERRIDE; | 36 virtual ReadyState ready_state() OVERRIDE; |
| 36 virtual SdpState sdp_state() OVERRIDE; | 37 virtual SdpState sdp_state() OVERRIDE; |
| 37 virtual bool StartIce(IceOptions options) OVERRIDE; | 38 virtual bool StartIce(IceOptions options) OVERRIDE; |
| 38 | 39 |
| 39 virtual webrtc::SessionDescriptionInterface* CreateOffer( | 40 virtual webrtc::SessionDescriptionInterface* CreateOffer( |
| 40 const webrtc::MediaHints& hints) OVERRIDE; | 41 const webrtc::MediaHints& hints) OVERRIDE; |
| 41 virtual webrtc::SessionDescriptionInterface* CreateAnswer( | 42 virtual webrtc::SessionDescriptionInterface* CreateAnswer( |
| 42 const webrtc::MediaHints& hints, | 43 const webrtc::MediaHints& hints, |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 93 std::string ice_label_; | 94 std::string ice_label_; |
| 94 std::string ice_sdp_; | 95 std::string ice_sdp_; |
| 95 ReadyState ready_state_; | 96 ReadyState ready_state_; |
| 96 | 97 |
| 97 DISALLOW_COPY_AND_ASSIGN(MockPeerConnectionImpl); | 98 DISALLOW_COPY_AND_ASSIGN(MockPeerConnectionImpl); |
| 98 }; | 99 }; |
| 99 | 100 |
| 100 } // namespace webrtc | 101 } // namespace webrtc |
| 101 | 102 |
| 102 #endif // CONTENT_RENDERER_MEDIA_MOCK_PEER_CONNECTION_IMPL_H_ | 103 #endif // CONTENT_RENDERER_MEDIA_MOCK_PEER_CONNECTION_IMPL_H_ |
| OLD | NEW |