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

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

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.h
diff --git a/webrtc/api/test/peerconnectiontestwrapper.h b/webrtc/api/test/peerconnectiontestwrapper.h
index 7a9bea46b0d4ef0e2136e841970b87255af036d7..11030914ea69b482393d758507a2757f2df629e9 100644
--- a/webrtc/api/test/peerconnectiontestwrapper.h
+++ b/webrtc/api/test/peerconnectiontestwrapper.h
@@ -42,9 +42,12 @@ class PeerConnectionTestWrapper
webrtc::PeerConnectionInterface::SignalingState new_state) {}
virtual void OnStateChange(
webrtc::PeerConnectionObserver::StateType state_changed) {}
- virtual void OnAddStream(webrtc::MediaStreamInterface* stream);
- virtual void OnRemoveStream(webrtc::MediaStreamInterface* stream) {}
- virtual void OnDataChannel(webrtc::DataChannelInterface* data_channel);
+ virtual void OnAddStream(
+ rtc::scoped_refptr<webrtc::MediaStreamInterface> stream);
+ virtual void OnRemoveStream(
+ rtc::scoped_refptr<webrtc::MediaStreamInterface> stream) {}
+ virtual void OnDataChannel(
+ rtc::scoped_refptr<webrtc::DataChannelInterface> data_channel);
virtual void OnRenegotiationNeeded() {}
virtual void OnIceConnectionChange(
webrtc::PeerConnectionInterface::IceConnectionState new_state) {}

Powered by Google App Engine
This is Rietveld 408576698