Chromium Code Reviews| 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 22 matching lines...) Expand all Loading... | |
| 33 virtual void RemoveStream( | 33 virtual void RemoveStream( |
| 34 webrtc::MediaStreamInterface* local_stream) OVERRIDE; | 34 webrtc::MediaStreamInterface* local_stream) OVERRIDE; |
| 35 virtual talk_base::scoped_refptr<webrtc::DtmfSenderInterface> | 35 virtual talk_base::scoped_refptr<webrtc::DtmfSenderInterface> |
| 36 CreateDtmfSender(webrtc::AudioTrackInterface* track) OVERRIDE; | 36 CreateDtmfSender(webrtc::AudioTrackInterface* track) OVERRIDE; |
| 37 virtual talk_base::scoped_refptr<webrtc::DataChannelInterface> | 37 virtual talk_base::scoped_refptr<webrtc::DataChannelInterface> |
| 38 CreateDataChannel(const std::string& label, | 38 CreateDataChannel(const std::string& label, |
| 39 const webrtc::DataChannelInit* config) OVERRIDE; | 39 const webrtc::DataChannelInit* config) OVERRIDE; |
| 40 | 40 |
| 41 virtual bool GetStats(webrtc::StatsObserver* observer, | 41 virtual bool GetStats(webrtc::StatsObserver* observer, |
| 42 webrtc::MediaStreamTrackInterface* track) OVERRIDE; | 42 webrtc::MediaStreamTrackInterface* track) OVERRIDE; |
| 43 virtual bool GetStats(webrtc::StatsObserver* observer, | |
| 44 webrtc::MediaStreamTrackInterface* track, | |
| 45 StatsOutputLevel level) OVERRIDE { | |
| 46 return false; | |
|
Ronghua Wu (Left Chromium)
2014/02/14 16:37:00
NOTIMPLEMENTED();
| |
| 47 } | |
| 43 // Set Call this function to make sure next call to GetStats fail. | 48 // Set Call this function to make sure next call to GetStats fail. |
| 44 void SetGetStatsResult(bool result) { getstats_result_ = result; } | 49 void SetGetStatsResult(bool result) { getstats_result_ = result; } |
| 45 | 50 |
| 46 virtual SignalingState signaling_state() OVERRIDE { | 51 virtual SignalingState signaling_state() OVERRIDE { |
| 47 NOTIMPLEMENTED(); | 52 NOTIMPLEMENTED(); |
| 48 return PeerConnectionInterface::kStable; | 53 return PeerConnectionInterface::kStable; |
| 49 } | 54 } |
| 50 virtual IceState ice_state() OVERRIDE { | 55 virtual IceState ice_state() OVERRIDE { |
| 51 NOTIMPLEMENTED(); | 56 NOTIMPLEMENTED(); |
| 52 return PeerConnectionInterface::kIceNew; | 57 return PeerConnectionInterface::kIceNew; |
| (...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 128 std::string sdp_mid_; | 133 std::string sdp_mid_; |
| 129 int sdp_mline_index_; | 134 int sdp_mline_index_; |
| 130 std::string ice_sdp_; | 135 std::string ice_sdp_; |
| 131 | 136 |
| 132 DISALLOW_COPY_AND_ASSIGN(MockPeerConnectionImpl); | 137 DISALLOW_COPY_AND_ASSIGN(MockPeerConnectionImpl); |
| 133 }; | 138 }; |
| 134 | 139 |
| 135 } // namespace content | 140 } // namespace content |
| 136 | 141 |
| 137 #endif // CONTENT_RENDERER_MEDIA_MOCK_PEER_CONNECTION_IMPL_H_ | 142 #endif // CONTENT_RENDERER_MEDIA_MOCK_PEER_CONNECTION_IMPL_H_ |
| OLD | NEW |