OLD | NEW |
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/base/gunit.h" | |
14 #include "webrtc/p2p/base/fakeportallocator.h" | 13 #include "webrtc/p2p/base/fakeportallocator.h" |
15 #include "webrtc/pc/test/fakeperiodicvideocapturer.h" | 14 #include "webrtc/pc/test/fakeperiodicvideocapturer.h" |
16 #include "webrtc/pc/test/fakertccertificategenerator.h" | 15 #include "webrtc/pc/test/fakertccertificategenerator.h" |
17 #include "webrtc/pc/test/mockpeerconnectionobservers.h" | 16 #include "webrtc/pc/test/mockpeerconnectionobservers.h" |
18 #include "webrtc/pc/test/peerconnectiontestwrapper.h" | 17 #include "webrtc/pc/test/peerconnectiontestwrapper.h" |
| 18 #include "webrtc/rtc_base/gunit.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 247 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
276 new webrtc::FakePeriodicVideoCapturer()), | 276 new webrtc::FakePeriodicVideoCapturer()), |
277 &constraints); | 277 &constraints); |
278 std::string videotrack_label = label + kVideoTrackLabelBase; | 278 std::string videotrack_label = label + kVideoTrackLabelBase; |
279 rtc::scoped_refptr<webrtc::VideoTrackInterface> video_track( | 279 rtc::scoped_refptr<webrtc::VideoTrackInterface> video_track( |
280 peer_connection_factory_->CreateVideoTrack(videotrack_label, source)); | 280 peer_connection_factory_->CreateVideoTrack(videotrack_label, source)); |
281 | 281 |
282 stream->AddTrack(video_track); | 282 stream->AddTrack(video_track); |
283 } | 283 } |
284 return stream; | 284 return stream; |
285 } | 285 } |
OLD | NEW |