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

Side by Side Diff: webrtc/api/test/peerconnectiontestwrapper.h

Issue 2505173002: Added a callback function OnAddTrack to PeerConnectionObserver (Closed)
Patch Set: CR comments. Remove unrelated file changes. Created 4 years, 1 month 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 /* 1 /*
2 * Copyright 2013 The WebRTC project authors. All Rights Reserved. 2 * Copyright 2013 The WebRTC project authors. All Rights Reserved.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license 4 * Use of this source code is governed by a BSD-style license
5 * that can be found in the LICENSE file in the root of the source 5 * that can be found in the LICENSE file in the root of the source
6 * tree. An additional intellectual property rights grant can be found 6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may 7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree. 8 * be found in the AUTHORS file in the root of the source tree.
9 */ 9 */
10 10
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 rtc::scoped_refptr<webrtc::MediaStreamInterface> stream) {} 58 rtc::scoped_refptr<webrtc::MediaStreamInterface> stream) {}
59 virtual void OnDataChannel( 59 virtual void OnDataChannel(
60 rtc::scoped_refptr<webrtc::DataChannelInterface> data_channel); 60 rtc::scoped_refptr<webrtc::DataChannelInterface> data_channel);
61 virtual void OnRenegotiationNeeded() {} 61 virtual void OnRenegotiationNeeded() {}
62 virtual void OnIceConnectionChange( 62 virtual void OnIceConnectionChange(
63 webrtc::PeerConnectionInterface::IceConnectionState new_state) {} 63 webrtc::PeerConnectionInterface::IceConnectionState new_state) {}
64 virtual void OnIceGatheringChange( 64 virtual void OnIceGatheringChange(
65 webrtc::PeerConnectionInterface::IceGatheringState new_state) {} 65 webrtc::PeerConnectionInterface::IceGatheringState new_state) {}
66 virtual void OnIceCandidate(const webrtc::IceCandidateInterface* candidate); 66 virtual void OnIceCandidate(const webrtc::IceCandidateInterface* candidate);
67 virtual void OnIceComplete() {} 67 virtual void OnIceComplete() {}
68 virtual void OnAddTrack(
69 rtc::scoped_refptr<webrtc::RtpReceiverInterface> receiver,
70 std::vector<rtc::scoped_refptr<webrtc::MediaStreamInterface>> streams) {}
68 71
69 // Implements CreateSessionDescriptionObserver. 72 // Implements CreateSessionDescriptionObserver.
70 virtual void OnSuccess(webrtc::SessionDescriptionInterface* desc); 73 virtual void OnSuccess(webrtc::SessionDescriptionInterface* desc);
71 virtual void OnFailure(const std::string& error) {} 74 virtual void OnFailure(const std::string& error) {}
72 75
73 void CreateOffer(const webrtc::MediaConstraintsInterface* constraints); 76 void CreateOffer(const webrtc::MediaConstraintsInterface* constraints);
74 void CreateAnswer(const webrtc::MediaConstraintsInterface* constraints); 77 void CreateAnswer(const webrtc::MediaConstraintsInterface* constraints);
75 void ReceiveOfferSdp(const std::string& sdp); 78 void ReceiveOfferSdp(const std::string& sdp);
76 void ReceiveAnswerSdp(const std::string& sdp); 79 void ReceiveAnswerSdp(const std::string& sdp);
77 void AddIceCandidate(const std::string& sdp_mid, int sdp_mline_index, 80 void AddIceCandidate(const std::string& sdp_mid, int sdp_mline_index,
(...skipping 29 matching lines...) Expand all
107 rtc::Thread* const network_thread_; 110 rtc::Thread* const network_thread_;
108 rtc::Thread* const worker_thread_; 111 rtc::Thread* const worker_thread_;
109 rtc::scoped_refptr<webrtc::PeerConnectionInterface> peer_connection_; 112 rtc::scoped_refptr<webrtc::PeerConnectionInterface> peer_connection_;
110 rtc::scoped_refptr<webrtc::PeerConnectionFactoryInterface> 113 rtc::scoped_refptr<webrtc::PeerConnectionFactoryInterface>
111 peer_connection_factory_; 114 peer_connection_factory_;
112 rtc::scoped_refptr<FakeAudioCaptureModule> fake_audio_capture_module_; 115 rtc::scoped_refptr<FakeAudioCaptureModule> fake_audio_capture_module_;
113 std::unique_ptr<webrtc::FakeVideoTrackRenderer> renderer_; 116 std::unique_ptr<webrtc::FakeVideoTrackRenderer> renderer_;
114 }; 117 };
115 118
116 #endif // WEBRTC_API_TEST_PEERCONNECTIONTESTWRAPPER_H_ 119 #endif // WEBRTC_API_TEST_PEERCONNECTIONTESTWRAPPER_H_
OLDNEW
« webrtc/api/peerconnectioninterface.h ('K') | « webrtc/api/peerconnectioninterface_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698