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

Unified Diff: webrtc/api/test/peerconnectiontestwrapper.cc

Issue 1972793003: Use scoped_refptr for On(Add|Remove)Stream and OnDataChannel. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Adding "deprecated" comments. Created 4 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 side-by-side diff with in-line comments
Download patch
Index: webrtc/api/test/peerconnectiontestwrapper.cc
diff --git a/webrtc/api/test/peerconnectiontestwrapper.cc b/webrtc/api/test/peerconnectiontestwrapper.cc
index 717c48af13767634c0dcf993b352e4085deeb707..8f65c68dddfef8de18928601f572ee5dd4ba0d76 100644
--- a/webrtc/api/test/peerconnectiontestwrapper.cc
+++ b/webrtc/api/test/peerconnectiontestwrapper.cc
@@ -92,7 +92,8 @@ PeerConnectionTestWrapper::CreateDataChannel(
return peer_connection_->CreateDataChannel(label, &init);
}
-void PeerConnectionTestWrapper::OnAddStream(MediaStreamInterface* stream) {
+void PeerConnectionTestWrapper::OnAddStream(
+ rtc::scoped_refptr<MediaStreamInterface> stream) {
LOG(LS_INFO) << "PeerConnectionTestWrapper " << name_
<< ": OnAddStream";
// TODO(ronghuawu): support multiple streams.
@@ -112,7 +113,7 @@ void PeerConnectionTestWrapper::OnIceCandidate(
}
void PeerConnectionTestWrapper::OnDataChannel(
- webrtc::DataChannelInterface* data_channel) {
+ rtc::scoped_refptr<webrtc::DataChannelInterface> data_channel) {
SignalOnDataChannel(data_channel);
}

Powered by Google App Engine
This is Rietveld 408576698