Bug 1420877 - pass VideoReceiveStream::Config as const&. r?pehrsons draft
authorAndi-Bogdan Postelnicu <bpostelnicu@mozilla.com>
Mon, 27 Nov 2017 14:18:33 +0200
changeset 703673 9ba52f1f1cf4c87f63144cc5687b0f9d2dd80054
parent 703549 da90245d47b17c750560dedb5cbe1973181166e3
child 741862 3e7e8ba1f503cff4996fd52905ec412ded5cce66
push id90916
push userbmo:bpostelnicu@mozilla.com
push dateMon, 27 Nov 2017 12:19:59 +0000
reviewerspehrsons
bugs1420877
milestone59.0a1
Bug 1420877 - pass VideoReceiveStream::Config as const&. r?pehrsons MozReview-Commit-ID: BfRjHpQKt0Y
media/webrtc/signaling/gtest/MockCall.h
--- a/media/webrtc/signaling/gtest/MockCall.h
+++ b/media/webrtc/signaling/gtest/MockCall.h
@@ -135,29 +135,29 @@ public:
     mAudioReceiveConfig = config;
     return new MockAudioReceiveStream;
   }
   void DestroyAudioReceiveStream(AudioReceiveStream* receive_stream) override
   {
     delete static_cast<MockAudioReceiveStream*>(receive_stream);
   }
 
-  VideoSendStream* CreateVideoSendStream(VideoSendStream::Config config,
+  VideoSendStream* CreateVideoSendStream(const VideoSendStream::Config& config,
                                          VideoEncoderConfig encoder_config) override {
     mVideoSendConfig = config.Copy();
     mEncoderConfig = encoder_config.Copy();
     return new MockVideoSendStream;
   }
 
   void DestroyVideoSendStream(VideoSendStream* send_stream) override
   {
     delete static_cast<MockVideoSendStream*>(send_stream);
   }
 
-  VideoReceiveStream* CreateVideoReceiveStream(VideoReceiveStream::Config configuration) override
+  VideoReceiveStream* CreateVideoReceiveStream(const VideoReceiveStream::Config& configuration) override
   {
     mVideoReceiveConfig = configuration.Copy();
     return new MockVideoReceiveStream;
   }
 
   void DestroyVideoReceiveStream(VideoReceiveStream* receive_stream) override
   {
     delete static_cast<MockVideoReceiveStream*>(receive_stream);