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

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

Issue 2017943002: Replacing DtlsIdentityStoreInterface with RTCCertificateGeneratorInterface. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Created 4 years, 6 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
« no previous file with comments | « webrtc/api/peerconnectioninterface_unittest.cc ('k') | webrtc/api/webrtcsession.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 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 } 75 }
76 76
77 // CreatePeerConnection with RTCConfiguration. 77 // CreatePeerConnection with RTCConfiguration.
78 webrtc::PeerConnectionInterface::RTCConfiguration config; 78 webrtc::PeerConnectionInterface::RTCConfiguration config;
79 webrtc::PeerConnectionInterface::IceServer ice_server; 79 webrtc::PeerConnectionInterface::IceServer ice_server;
80 ice_server.uri = "stun:stun.l.google.com:19302"; 80 ice_server.uri = "stun:stun.l.google.com:19302";
81 config.servers.push_back(ice_server); 81 config.servers.push_back(ice_server);
82 std::unique_ptr<webrtc::DtlsIdentityStoreInterface> dtls_identity_store( 82 std::unique_ptr<webrtc::DtlsIdentityStoreInterface> dtls_identity_store(
83 rtc::SSLStreamAdapter::HaveDtlsSrtp() ? new FakeDtlsIdentityStore() 83 rtc::SSLStreamAdapter::HaveDtlsSrtp() ? new FakeDtlsIdentityStore()
84 : nullptr); 84 : nullptr);
85 peer_connection_ = peer_connection_factory_->CreatePeerConnection( 85 peer_connection_ = peer_connection_factory_->CreatePeerConnectionWithStore(
86 config, constraints, std::move(port_allocator), 86 config, constraints, std::move(port_allocator),
87 std::move(dtls_identity_store), this); 87 std::move(dtls_identity_store), this);
88 88
89 return peer_connection_.get() != NULL; 89 return peer_connection_.get() != NULL;
90 } 90 }
91 91
92 rtc::scoped_refptr<webrtc::DataChannelInterface> 92 rtc::scoped_refptr<webrtc::DataChannelInterface>
93 PeerConnectionTestWrapper::CreateDataChannel( 93 PeerConnectionTestWrapper::CreateDataChannel(
94 const std::string& label, 94 const std::string& label,
95 const webrtc::DataChannelInit& init) { 95 const webrtc::DataChannelInit& init) {
(...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after
275 peer_connection_factory_->CreateVideoSource( 275 peer_connection_factory_->CreateVideoSource(
276 new webrtc::FakePeriodicVideoCapturer(), &constraints); 276 new webrtc::FakePeriodicVideoCapturer(), &constraints);
277 std::string videotrack_label = label + kVideoTrackLabelBase; 277 std::string videotrack_label = label + kVideoTrackLabelBase;
278 rtc::scoped_refptr<webrtc::VideoTrackInterface> video_track( 278 rtc::scoped_refptr<webrtc::VideoTrackInterface> video_track(
279 peer_connection_factory_->CreateVideoTrack(videotrack_label, source)); 279 peer_connection_factory_->CreateVideoTrack(videotrack_label, source));
280 280
281 stream->AddTrack(video_track); 281 stream->AddTrack(video_track);
282 } 282 }
283 return stream; 283 return stream;
284 } 284 }
OLDNEW
« no previous file with comments | « webrtc/api/peerconnectioninterface_unittest.cc ('k') | webrtc/api/webrtcsession.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698