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

Side by Side Diff: content/renderer/media/mock_web_rtc_peer_connection_handler_client.h

Issue 2972003002: RTCPeerConnection.ontrack event added. (Closed)
Patch Set: Le merge 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 (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_WEB_RTC_PEER_CONNECTION_HANDLER_CLIENT_H_ 5 #ifndef CONTENT_RENDERER_MEDIA_MOCK_WEB_RTC_PEER_CONNECTION_HANDLER_CLIENT_H_
6 #define CONTENT_RENDERER_MEDIA_MOCK_WEB_RTC_PEER_CONNECTION_HANDLER_CLIENT_H_ 6 #define CONTENT_RENDERER_MEDIA_MOCK_WEB_RTC_PEER_CONNECTION_HANDLER_CLIENT_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
(...skipping 11 matching lines...) Expand all
22 MockWebRTCPeerConnectionHandlerClient(); 22 MockWebRTCPeerConnectionHandlerClient();
23 virtual ~MockWebRTCPeerConnectionHandlerClient(); 23 virtual ~MockWebRTCPeerConnectionHandlerClient();
24 24
25 // WebRTCPeerConnectionHandlerClient implementation. 25 // WebRTCPeerConnectionHandlerClient implementation.
26 MOCK_METHOD0(NegotiationNeeded, void()); 26 MOCK_METHOD0(NegotiationNeeded, void());
27 MOCK_METHOD1(DidGenerateICECandidate, 27 MOCK_METHOD1(DidGenerateICECandidate,
28 void(const blink::WebRTCICECandidate& candidate)); 28 void(const blink::WebRTCICECandidate& candidate));
29 MOCK_METHOD1(DidChangeSignalingState, void(SignalingState state)); 29 MOCK_METHOD1(DidChangeSignalingState, void(SignalingState state));
30 MOCK_METHOD1(DidChangeICEGatheringState, void(ICEGatheringState state)); 30 MOCK_METHOD1(DidChangeICEGatheringState, void(ICEGatheringState state));
31 MOCK_METHOD1(DidChangeICEConnectionState, void(ICEConnectionState state)); 31 MOCK_METHOD1(DidChangeICEConnectionState, void(ICEConnectionState state));
32 MOCK_METHOD1(DidAddRemoteStream, 32 MOCK_METHOD2(
33 void(const blink::WebMediaStream& stream_descriptor)); 33 DidAddRemoteStream,
34 void(const blink::WebMediaStream& stream_descriptor,
35 blink::WebVector<std::unique_ptr<blink::WebRTCRtpReceiver>>*));
34 MOCK_METHOD1(DidRemoveRemoteStream, 36 MOCK_METHOD1(DidRemoveRemoteStream,
35 void(const blink::WebMediaStream& stream_descriptor)); 37 void(const blink::WebMediaStream& stream_descriptor));
36 MOCK_METHOD1(DidAddRemoteDataChannel, void(blink::WebRTCDataChannelHandler*)); 38 MOCK_METHOD1(DidAddRemoteDataChannel, void(blink::WebRTCDataChannelHandler*));
37 MOCK_METHOD0(ReleasePeerConnectionHandler, void()); 39 MOCK_METHOD0(ReleasePeerConnectionHandler, void());
38 40
39 void didGenerateICECandidateWorker( 41 void didGenerateICECandidateWorker(
40 const blink::WebRTCICECandidate& candidate); 42 const blink::WebRTCICECandidate& candidate);
41 void didAddRemoteStreamWorker( 43 void didAddRemoteStreamWorker(
42 const blink::WebMediaStream& stream_descriptor); 44 const blink::WebMediaStream& stream_descriptor,
45 blink::WebVector<std::unique_ptr<blink::WebRTCRtpReceiver>>*
46 stream_web_rtp_receivers);
43 void didRemoveRemoteStreamWorker( 47 void didRemoveRemoteStreamWorker(
44 const blink::WebMediaStream& stream_descriptor); 48 const blink::WebMediaStream& stream_descriptor);
45 49
46 const std::string& candidate_sdp() const { return candidate_sdp_; } 50 const std::string& candidate_sdp() const { return candidate_sdp_; }
47 int candidate_mlineindex() const { 51 int candidate_mlineindex() const {
48 return candidate_mline_index_; 52 return candidate_mline_index_;
49 } 53 }
50 const std::string& candidate_mid() const { return candidate_mid_ ; } 54 const std::string& candidate_mid() const { return candidate_mid_ ; }
51 const blink::WebMediaStream& remote_stream() const { return remote_steam_;} 55 const blink::WebMediaStream& remote_stream() const { return remote_steam_;}
52 56
53 private: 57 private:
54 blink::WebMediaStream remote_steam_; 58 blink::WebMediaStream remote_steam_;
55 std::string candidate_sdp_; 59 std::string candidate_sdp_;
56 int candidate_mline_index_; 60 int candidate_mline_index_;
57 std::string candidate_mid_; 61 std::string candidate_mid_;
58 62
59 DISALLOW_COPY_AND_ASSIGN(MockWebRTCPeerConnectionHandlerClient); 63 DISALLOW_COPY_AND_ASSIGN(MockWebRTCPeerConnectionHandlerClient);
60 }; 64 };
61 65
62 } // namespace content 66 } // namespace content
63 67
64 #endif // CONTENT_RENDERER_MEDIA_MOCK_WEB_RTC_PEER_CONNECTION_HANDLER_CLIENT_H_ 68 #endif // CONTENT_RENDERER_MEDIA_MOCK_WEB_RTC_PEER_CONNECTION_HANDLER_CLIENT_H_
OLDNEW
« no previous file with comments | « chrome/test/data/webrtc/peerconnection_rtp.js ('k') | content/renderer/media/mock_web_rtc_peer_connection_handler_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698