| OLD | NEW |
| 1 // Copyright 2017 The Chromium Authors. All rights reserved. | 1 // Copyright 2017 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 #include "platform/testing/TestingPlatformSupportWithWebRTC.h" | 5 #include "platform/testing/TestingPlatformSupportWithWebRTC.h" |
| 6 | 6 |
| 7 #include "public/platform/WebRTCError.h" | 7 #include "public/platform/WebRTCError.h" |
| 8 #include "public/platform/WebRTCRtpReceiver.h" | 8 #include "public/platform/WebRTCRtpReceiver.h" |
| 9 #include "public/platform/WebRTCRtpSender.h" | 9 #include "public/platform/WebRTCRtpSender.h" |
| 10 #include "public/platform/WebRTCSessionDescription.h" | 10 #include "public/platform/WebRTCSessionDescription.h" |
| (...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 73 WebVector<std::unique_ptr<WebRTCRtpSender>> | 73 WebVector<std::unique_ptr<WebRTCRtpSender>> |
| 74 MockWebRTCPeerConnectionHandler::GetSenders() { | 74 MockWebRTCPeerConnectionHandler::GetSenders() { |
| 75 return WebVector<std::unique_ptr<WebRTCRtpSender>>(); | 75 return WebVector<std::unique_ptr<WebRTCRtpSender>>(); |
| 76 } | 76 } |
| 77 | 77 |
| 78 WebVector<std::unique_ptr<WebRTCRtpReceiver>> | 78 WebVector<std::unique_ptr<WebRTCRtpReceiver>> |
| 79 MockWebRTCPeerConnectionHandler::GetReceivers() { | 79 MockWebRTCPeerConnectionHandler::GetReceivers() { |
| 80 return WebVector<std::unique_ptr<WebRTCRtpReceiver>>(); | 80 return WebVector<std::unique_ptr<WebRTCRtpReceiver>>(); |
| 81 } | 81 } |
| 82 | 82 |
| 83 std::unique_ptr<WebRTCRtpSender> MockWebRTCPeerConnectionHandler::AddTrack( |
| 84 const WebMediaStreamTrack&, |
| 85 const WebVector<WebMediaStream>&) { |
| 86 return nullptr; |
| 87 } |
| 88 |
| 89 bool MockWebRTCPeerConnectionHandler::RemoveTrack(WebRTCRtpSender*) { |
| 90 return false; |
| 91 } |
| 92 |
| 83 WebRTCDataChannelHandler* MockWebRTCPeerConnectionHandler::CreateDataChannel( | 93 WebRTCDataChannelHandler* MockWebRTCPeerConnectionHandler::CreateDataChannel( |
| 84 const WebString& label, | 94 const WebString& label, |
| 85 const WebRTCDataChannelInit&) { | 95 const WebRTCDataChannelInit&) { |
| 86 return nullptr; | 96 return nullptr; |
| 87 } | 97 } |
| 88 | 98 |
| 89 WebRTCDTMFSenderHandler* MockWebRTCPeerConnectionHandler::CreateDTMFSender( | 99 WebRTCDTMFSenderHandler* MockWebRTCPeerConnectionHandler::CreateDTMFSender( |
| 90 const WebMediaStreamTrack&) { | 100 const WebMediaStreamTrack&) { |
| 91 return nullptr; | 101 return nullptr; |
| 92 } | 102 } |
| 93 | 103 |
| 94 void MockWebRTCPeerConnectionHandler::Stop() {} | 104 void MockWebRTCPeerConnectionHandler::Stop() {} |
| 95 | 105 |
| 96 std::unique_ptr<WebRTCPeerConnectionHandler> | 106 std::unique_ptr<WebRTCPeerConnectionHandler> |
| 97 TestingPlatformSupportWithWebRTC::CreateRTCPeerConnectionHandler( | 107 TestingPlatformSupportWithWebRTC::CreateRTCPeerConnectionHandler( |
| 98 WebRTCPeerConnectionHandlerClient*) { | 108 WebRTCPeerConnectionHandlerClient*) { |
| 99 return WTF::MakeUnique<MockWebRTCPeerConnectionHandler>(); | 109 return WTF::MakeUnique<MockWebRTCPeerConnectionHandler>(); |
| 100 } | 110 } |
| 101 | 111 |
| 102 } // namespace blink | 112 } // namespace blink |
| OLD | NEW |