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 #ifndef TestingPlatformSupportWithWebRTC_h | 5 #ifndef TestingPlatformSupportWithWebRTC_h |
6 #define TestingPlatformSupportWithWebRTC_h | 6 #define TestingPlatformSupportWithWebRTC_h |
7 | 7 |
8 #include "platform/testing/TestingPlatformSupport.h" | 8 #include "platform/testing/TestingPlatformSupport.h" |
9 #include "public/platform/WebRTCPeerConnectionHandler.h" | 9 #include "public/platform/WebRTCPeerConnectionHandler.h" |
10 | 10 |
(...skipping 21 matching lines...) Expand all Loading... |
32 const WebRTCSessionDescription&) override; | 32 const WebRTCSessionDescription&) override; |
33 WebRTCSessionDescription LocalDescription() override; | 33 WebRTCSessionDescription LocalDescription() override; |
34 WebRTCSessionDescription RemoteDescription() override; | 34 WebRTCSessionDescription RemoteDescription() override; |
35 WebRTCErrorType SetConfiguration(const WebRTCConfiguration&) override; | 35 WebRTCErrorType SetConfiguration(const WebRTCConfiguration&) override; |
36 bool AddStream(const WebMediaStream&, const WebMediaConstraints&) override; | 36 bool AddStream(const WebMediaStream&, const WebMediaConstraints&) override; |
37 void RemoveStream(const WebMediaStream&) override; | 37 void RemoveStream(const WebMediaStream&) override; |
38 void GetStats(const WebRTCStatsRequest&) override; | 38 void GetStats(const WebRTCStatsRequest&) override; |
39 void GetStats(std::unique_ptr<WebRTCStatsReportCallback>) override; | 39 void GetStats(std::unique_ptr<WebRTCStatsReportCallback>) override; |
40 WebVector<std::unique_ptr<WebRTCRtpSender>> GetSenders() override; | 40 WebVector<std::unique_ptr<WebRTCRtpSender>> GetSenders() override; |
41 WebVector<std::unique_ptr<WebRTCRtpReceiver>> GetReceivers() override; | 41 WebVector<std::unique_ptr<WebRTCRtpReceiver>> GetReceivers() override; |
| 42 std::unique_ptr<WebRTCRtpSender> AddTrack( |
| 43 const WebMediaStreamTrack&, |
| 44 const WebVector<WebMediaStream>&) override; |
| 45 bool RemoveTrack(WebRTCRtpSender*) override; |
42 WebRTCDataChannelHandler* CreateDataChannel( | 46 WebRTCDataChannelHandler* CreateDataChannel( |
43 const WebString& label, | 47 const WebString& label, |
44 const WebRTCDataChannelInit&) override; | 48 const WebRTCDataChannelInit&) override; |
45 WebRTCDTMFSenderHandler* CreateDTMFSender( | 49 WebRTCDTMFSenderHandler* CreateDTMFSender( |
46 const WebMediaStreamTrack&) override; | 50 const WebMediaStreamTrack&) override; |
47 void Stop() override; | 51 void Stop() override; |
48 }; | 52 }; |
49 | 53 |
50 class TestingPlatformSupportWithWebRTC : public TestingPlatformSupport { | 54 class TestingPlatformSupportWithWebRTC : public TestingPlatformSupport { |
51 public: | 55 public: |
52 std::unique_ptr<WebRTCPeerConnectionHandler> CreateRTCPeerConnectionHandler( | 56 std::unique_ptr<WebRTCPeerConnectionHandler> CreateRTCPeerConnectionHandler( |
53 WebRTCPeerConnectionHandlerClient*) override; | 57 WebRTCPeerConnectionHandlerClient*) override; |
54 }; | 58 }; |
55 | 59 |
56 } // namespace blink | 60 } // namespace blink |
57 | 61 |
58 #endif // TestingPlatformSupportWithWebRTC_h | 62 #endif // TestingPlatformSupportWithWebRTC_h |
OLD | NEW |