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

Side by Side Diff: content/shell/test_runner/mock_webrtc_peer_connection_handler.h

Issue 2749703005: RTCRtpSender with track behind RuntimeEnabled flag (Closed)
Patch Set: external/wpt/webrtc/RTCPeerConnection-idl-expected.txt updated passing 2 more tests Created 3 years, 7 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_SHELL_TEST_RUNNER_MOCK_WEBRTC_PEER_CONNECTION_HANDLER_H_ 5 #ifndef CONTENT_SHELL_TEST_RUNNER_MOCK_WEBRTC_PEER_CONNECTION_HANDLER_H_
6 #define CONTENT_SHELL_TEST_RUNNER_MOCK_WEBRTC_PEER_CONNECTION_HANDLER_H_ 6 #define CONTENT_SHELL_TEST_RUNNER_MOCK_WEBRTC_PEER_CONNECTION_HANDLER_H_
7 7
8 #include <map> 8 #include <map>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 blink::WebRTCErrorType SetConfiguration( 54 blink::WebRTCErrorType SetConfiguration(
55 const blink::WebRTCConfiguration& configuration) override; 55 const blink::WebRTCConfiguration& configuration) override;
56 bool AddICECandidate(const blink::WebRTCICECandidate& ice_candidate) override; 56 bool AddICECandidate(const blink::WebRTCICECandidate& ice_candidate) override;
57 bool AddICECandidate(const blink::WebRTCVoidRequest& request, 57 bool AddICECandidate(const blink::WebRTCVoidRequest& request,
58 const blink::WebRTCICECandidate& ice_candidate) override; 58 const blink::WebRTCICECandidate& ice_candidate) override;
59 bool AddStream(const blink::WebMediaStream& stream, 59 bool AddStream(const blink::WebMediaStream& stream,
60 const blink::WebMediaConstraints& constraints) override; 60 const blink::WebMediaConstraints& constraints) override;
61 void RemoveStream(const blink::WebMediaStream& stream) override; 61 void RemoveStream(const blink::WebMediaStream& stream) override;
62 void GetStats(const blink::WebRTCStatsRequest& request) override; 62 void GetStats(const blink::WebRTCStatsRequest& request) override;
63 void GetStats(std::unique_ptr<blink::WebRTCStatsReportCallback>) override; 63 void GetStats(std::unique_ptr<blink::WebRTCStatsReportCallback>) override;
64 blink::WebVector<std::unique_ptr<blink::WebRTCRtpSender>> GetSenders()
65 override;
64 blink::WebVector<std::unique_ptr<blink::WebRTCRtpReceiver>> GetReceivers() 66 blink::WebVector<std::unique_ptr<blink::WebRTCRtpReceiver>> GetReceivers()
65 override; 67 override;
66 blink::WebRTCDataChannelHandler* CreateDataChannel( 68 blink::WebRTCDataChannelHandler* CreateDataChannel(
67 const blink::WebString& label, 69 const blink::WebString& label,
68 const blink::WebRTCDataChannelInit& init) override; 70 const blink::WebRTCDataChannelInit& init) override;
69 blink::WebRTCDTMFSenderHandler* CreateDTMFSender( 71 blink::WebRTCDTMFSenderHandler* CreateDTMFSender(
70 const blink::WebMediaStreamTrack& track) override; 72 const blink::WebMediaStreamTrack& track) override;
71 void Stop() override; 73 void Stop() override;
72 74
73 private: 75 private:
(...skipping 18 matching lines...) Expand all
92 94
93 blink::WebRTCPeerConnectionHandlerClient* client_; 95 blink::WebRTCPeerConnectionHandlerClient* client_;
94 bool stopped_; 96 bool stopped_;
95 blink::WebRTCSessionDescription local_description_; 97 blink::WebRTCSessionDescription local_description_;
96 blink::WebRTCSessionDescription remote_description_; 98 blink::WebRTCSessionDescription remote_description_;
97 int stream_count_; 99 int stream_count_;
98 TestInterfaces* interfaces_; 100 TestInterfaces* interfaces_;
99 typedef std::map<std::string, blink::WebMediaStream> StreamMap; 101 typedef std::map<std::string, blink::WebMediaStream> StreamMap;
100 StreamMap local_streams_; 102 StreamMap local_streams_;
101 StreamMap remote_streams_; 103 StreamMap remote_streams_;
102 std::map<std::string, uintptr_t> receiver_id_by_track_; 104 std::map<std::string, uintptr_t> id_by_track_;
103 105
104 base::WeakPtrFactory<MockWebRTCPeerConnectionHandler> weak_factory_; 106 base::WeakPtrFactory<MockWebRTCPeerConnectionHandler> weak_factory_;
105 107
106 DISALLOW_COPY_AND_ASSIGN(MockWebRTCPeerConnectionHandler); 108 DISALLOW_COPY_AND_ASSIGN(MockWebRTCPeerConnectionHandler);
107 }; 109 };
108 110
109 } // namespace test_runner 111 } // namespace test_runner
110 112
111 #endif // CONTENT_SHELL_TEST_RUNNER_MOCK_WEBRTC_PEER_CONNECTION_HANDLER_H_ 113 #endif // CONTENT_SHELL_TEST_RUNNER_MOCK_WEBRTC_PEER_CONNECTION_HANDLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698