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

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

Issue 2810703002: Test CreatePeerConnectionFactory() with a forwarding mock AudioDecoderFactory (Closed)
Patch Set: std::move explicitly, instead of trusting in RVO Created 3 years, 8 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 /* 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 16 matching lines...) Expand all
27 static void Connect(PeerConnectionTestWrapper* caller, 27 static void Connect(PeerConnectionTestWrapper* caller,
28 PeerConnectionTestWrapper* callee); 28 PeerConnectionTestWrapper* callee);
29 29
30 PeerConnectionTestWrapper(const std::string& name, 30 PeerConnectionTestWrapper(const std::string& name,
31 rtc::Thread* network_thread, 31 rtc::Thread* network_thread,
32 rtc::Thread* worker_thread); 32 rtc::Thread* worker_thread);
33 virtual ~PeerConnectionTestWrapper(); 33 virtual ~PeerConnectionTestWrapper();
34 34
35 bool CreatePc( 35 bool CreatePc(
36 const webrtc::MediaConstraintsInterface* constraints, 36 const webrtc::MediaConstraintsInterface* constraints,
37 const webrtc::PeerConnectionInterface::RTCConfiguration& config); 37 const webrtc::PeerConnectionInterface::RTCConfiguration& config,
38 rtc::scoped_refptr<webrtc::AudioEncoderFactory> audio_encoder_factory,
39 rtc::scoped_refptr<webrtc::AudioDecoderFactory> audio_decoder_factory);
38 40
39 webrtc::PeerConnectionInterface* pc() { return peer_connection_.get(); } 41 webrtc::PeerConnectionInterface* pc() { return peer_connection_.get(); }
40 42
41 rtc::scoped_refptr<webrtc::DataChannelInterface> CreateDataChannel( 43 rtc::scoped_refptr<webrtc::DataChannelInterface> CreateDataChannel(
42 const std::string& label, 44 const std::string& label,
43 const webrtc::DataChannelInit& init); 45 const webrtc::DataChannelInit& init);
44 46
45 // Implements PeerConnectionObserver. 47 // Implements PeerConnectionObserver.
46 void OnSignalingChange( 48 void OnSignalingChange(
47 webrtc::PeerConnectionInterface::SignalingState new_state) override {} 49 webrtc::PeerConnectionInterface::SignalingState new_state) override {}
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
99 rtc::Thread* const network_thread_; 101 rtc::Thread* const network_thread_;
100 rtc::Thread* const worker_thread_; 102 rtc::Thread* const worker_thread_;
101 rtc::scoped_refptr<webrtc::PeerConnectionInterface> peer_connection_; 103 rtc::scoped_refptr<webrtc::PeerConnectionInterface> peer_connection_;
102 rtc::scoped_refptr<webrtc::PeerConnectionFactoryInterface> 104 rtc::scoped_refptr<webrtc::PeerConnectionFactoryInterface>
103 peer_connection_factory_; 105 peer_connection_factory_;
104 rtc::scoped_refptr<FakeAudioCaptureModule> fake_audio_capture_module_; 106 rtc::scoped_refptr<FakeAudioCaptureModule> fake_audio_capture_module_;
105 std::unique_ptr<webrtc::FakeVideoTrackRenderer> renderer_; 107 std::unique_ptr<webrtc::FakeVideoTrackRenderer> renderer_;
106 }; 108 };
107 109
108 #endif // WEBRTC_PC_TEST_PEERCONNECTIONTESTWRAPPER_H_ 110 #endif // WEBRTC_PC_TEST_PEERCONNECTIONTESTWRAPPER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698