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

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

Issue 2514883002: Create //webrtc/api:libjingle_peerconnection_api + refactorings. (Closed)
Patch Set: Rebase Created 3 years, 11 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/pc/test/peerconnectiontestwrapper.h ('k') | webrtc/pc/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
11 #include <utility> 11 #include <utility>
12 12
13 #include "webrtc/api/test/fakeperiodicvideocapturer.h"
14 #include "webrtc/api/test/fakertccertificategenerator.h"
15 #include "webrtc/api/test/mockpeerconnectionobservers.h"
16 #include "webrtc/api/test/peerconnectiontestwrapper.h"
17 #include "webrtc/base/gunit.h" 13 #include "webrtc/base/gunit.h"
18 #include "webrtc/p2p/base/fakeportallocator.h" 14 #include "webrtc/p2p/base/fakeportallocator.h"
15 #include "webrtc/pc/test/fakeperiodicvideocapturer.h"
16 #include "webrtc/pc/test/fakertccertificategenerator.h"
17 #include "webrtc/pc/test/mockpeerconnectionobservers.h"
18 #include "webrtc/pc/test/peerconnectiontestwrapper.h"
19 19
20 static const char kStreamLabelBase[] = "stream_label"; 20 static const char kStreamLabelBase[] = "stream_label";
21 static const char kVideoTrackLabelBase[] = "video_track"; 21 static const char kVideoTrackLabelBase[] = "video_track";
22 static const char kAudioTrackLabelBase[] = "audio_track"; 22 static const char kAudioTrackLabelBase[] = "audio_track";
23 static const int kMaxWait = 10000; 23 static const int kMaxWait = 10000;
24 static const int kTestAudioFrameCount = 3; 24 static const int kTestAudioFrameCount = 3;
25 static const int kTestVideoFrameCount = 3; 25 static const int kTestVideoFrameCount = 3;
26 26
27 using webrtc::FakeConstraints; 27 using webrtc::FakeConstraints;
28 using webrtc::FakeVideoTrackRenderer; 28 using webrtc::FakeVideoTrackRenderer;
(...skipping 243 matching lines...) Expand 10 before | Expand all | Expand 10 after
272 peer_connection_factory_->CreateVideoSource( 272 peer_connection_factory_->CreateVideoSource(
273 new webrtc::FakePeriodicVideoCapturer(), &constraints); 273 new webrtc::FakePeriodicVideoCapturer(), &constraints);
274 std::string videotrack_label = label + kVideoTrackLabelBase; 274 std::string videotrack_label = label + kVideoTrackLabelBase;
275 rtc::scoped_refptr<webrtc::VideoTrackInterface> video_track( 275 rtc::scoped_refptr<webrtc::VideoTrackInterface> video_track(
276 peer_connection_factory_->CreateVideoTrack(videotrack_label, source)); 276 peer_connection_factory_->CreateVideoTrack(videotrack_label, source));
277 277
278 stream->AddTrack(video_track); 278 stream->AddTrack(video_track);
279 } 279 }
280 return stream; 280 return stream;
281 } 281 }
OLDNEW
« no previous file with comments | « webrtc/pc/test/peerconnectiontestwrapper.h ('k') | webrtc/pc/test/rtcstatsobtainer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698