Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1091)

Side by Side Diff: third_party/WebKit/Source/platform/testing/TestingPlatformSupportWithWebRTC.h

Issue 2951713002: RTCPeerConnection.addTrack and removeTrack added (behind flag) (Closed)
Patch Set: Addressed deadbeef's comments Created 3 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698