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

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

Issue 2521663002: RTCStatsIntegrationTest added. (Closed)
Patch Set: Rebase /w master and taking RTCCodecStats into account Created 4 years 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
« no previous file with comments | « webrtc/api/rtcstatscollector_unittest.cc ('k') | webrtc/api/test/rtcstatsobtainer.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 25 matching lines...) Expand all
36 36
37 PeerConnectionTestWrapper(const std::string& name, 37 PeerConnectionTestWrapper(const std::string& name,
38 rtc::Thread* network_thread, 38 rtc::Thread* network_thread,
39 rtc::Thread* worker_thread); 39 rtc::Thread* worker_thread);
40 virtual ~PeerConnectionTestWrapper(); 40 virtual ~PeerConnectionTestWrapper();
41 41
42 bool CreatePc( 42 bool CreatePc(
43 const webrtc::MediaConstraintsInterface* constraints, 43 const webrtc::MediaConstraintsInterface* constraints,
44 const webrtc::PeerConnectionInterface::RTCConfiguration& config); 44 const webrtc::PeerConnectionInterface::RTCConfiguration& config);
45 45
46 webrtc::PeerConnectionInterface* pc() { return peer_connection_.get(); }
47
46 rtc::scoped_refptr<webrtc::DataChannelInterface> CreateDataChannel( 48 rtc::scoped_refptr<webrtc::DataChannelInterface> CreateDataChannel(
47 const std::string& label, 49 const std::string& label,
48 const webrtc::DataChannelInit& init); 50 const webrtc::DataChannelInit& init);
49 51
50 // Implements PeerConnectionObserver. 52 // Implements PeerConnectionObserver.
51 virtual void OnSignalingChange( 53 virtual void OnSignalingChange(
52 webrtc::PeerConnectionInterface::SignalingState new_state) {} 54 webrtc::PeerConnectionInterface::SignalingState new_state) {}
53 virtual void OnStateChange( 55 virtual void OnStateChange(
54 webrtc::PeerConnectionObserver::StateType state_changed) {} 56 webrtc::PeerConnectionObserver::StateType state_changed) {}
55 virtual void OnAddStream( 57 virtual void OnAddStream(
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
107 rtc::Thread* const network_thread_; 109 rtc::Thread* const network_thread_;
108 rtc::Thread* const worker_thread_; 110 rtc::Thread* const worker_thread_;
109 rtc::scoped_refptr<webrtc::PeerConnectionInterface> peer_connection_; 111 rtc::scoped_refptr<webrtc::PeerConnectionInterface> peer_connection_;
110 rtc::scoped_refptr<webrtc::PeerConnectionFactoryInterface> 112 rtc::scoped_refptr<webrtc::PeerConnectionFactoryInterface>
111 peer_connection_factory_; 113 peer_connection_factory_;
112 rtc::scoped_refptr<FakeAudioCaptureModule> fake_audio_capture_module_; 114 rtc::scoped_refptr<FakeAudioCaptureModule> fake_audio_capture_module_;
113 std::unique_ptr<webrtc::FakeVideoTrackRenderer> renderer_; 115 std::unique_ptr<webrtc::FakeVideoTrackRenderer> renderer_;
114 }; 116 };
115 117
116 #endif // WEBRTC_API_TEST_PEERCONNECTIONTESTWRAPPER_H_ 118 #endif // WEBRTC_API_TEST_PEERCONNECTIONTESTWRAPPER_H_
OLDNEW
« no previous file with comments | « webrtc/api/rtcstatscollector_unittest.cc ('k') | webrtc/api/test/rtcstatsobtainer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698