OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2013 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 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 #include <algorithm> | 10 #include <algorithm> |
(...skipping 357 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
368 } | 368 } |
369 | 369 |
370 TEST_F(EndToEndTest, SendsAndReceivesVP9VideoRotation90) { | 370 TEST_F(EndToEndTest, SendsAndReceivesVP9VideoRotation90) { |
371 CodecObserver test(5, kVideoRotation_90, "VP9", | 371 CodecObserver test(5, kVideoRotation_90, "VP9", |
372 VideoEncoder::Create(VideoEncoder::kVp9), | 372 VideoEncoder::Create(VideoEncoder::kVp9), |
373 VP9Decoder::Create()); | 373 VP9Decoder::Create()); |
374 RunBaseTest(&test); | 374 RunBaseTest(&test); |
375 } | 375 } |
376 #endif // !defined(RTC_DISABLE_VP9) | 376 #endif // !defined(RTC_DISABLE_VP9) |
377 | 377 |
378 #if defined(WEBRTC_END_TO_END_H264_TESTS) | 378 #if defined(WEBRTC_USE_H264) |
379 | |
380 TEST_F(EndToEndTest, SendsAndReceivesH264) { | 379 TEST_F(EndToEndTest, SendsAndReceivesH264) { |
381 CodecObserver test(500, kVideoRotation_0, "H264", | 380 CodecObserver test(500, kVideoRotation_0, "H264", |
382 VideoEncoder::Create(VideoEncoder::kH264), | 381 VideoEncoder::Create(VideoEncoder::kH264), |
383 H264Decoder::Create()); | 382 H264Decoder::Create()); |
384 RunBaseTest(&test); | 383 RunBaseTest(&test); |
385 } | 384 } |
386 | 385 |
387 TEST_F(EndToEndTest, SendsAndReceivesH264VideoRotation90) { | 386 TEST_F(EndToEndTest, SendsAndReceivesH264VideoRotation90) { |
388 CodecObserver test(5, kVideoRotation_90, "H264", | 387 CodecObserver test(5, kVideoRotation_90, "H264", |
389 VideoEncoder::Create(VideoEncoder::kH264), | 388 VideoEncoder::Create(VideoEncoder::kH264), |
390 H264Decoder::Create()); | 389 H264Decoder::Create()); |
391 RunBaseTest(&test); | 390 RunBaseTest(&test); |
392 } | 391 } |
393 | 392 #endif // defined(WEBRTC_USE_H264) |
394 #endif // defined(WEBRTC_END_TO_END_H264_TESTS) | |
395 | 393 |
396 TEST_F(EndToEndTest, ReceiverUsesLocalSsrc) { | 394 TEST_F(EndToEndTest, ReceiverUsesLocalSsrc) { |
397 class SyncRtcpObserver : public test::EndToEndTest { | 395 class SyncRtcpObserver : public test::EndToEndTest { |
398 public: | 396 public: |
399 SyncRtcpObserver() : EndToEndTest(kDefaultTimeoutMs) {} | 397 SyncRtcpObserver() : EndToEndTest(kDefaultTimeoutMs) {} |
400 | 398 |
401 Action OnReceiveRtcp(const uint8_t* packet, size_t length) override { | 399 Action OnReceiveRtcp(const uint8_t* packet, size_t length) override { |
402 test::RtcpPacketParser parser; | 400 test::RtcpPacketParser parser; |
403 EXPECT_TRUE(parser.Parse(packet, length)); | 401 EXPECT_TRUE(parser.Parse(packet, length)); |
404 EXPECT_EQ(kReceiverLocalVideoSsrc, parser.sender_ssrc()); | 402 EXPECT_EQ(kReceiverLocalVideoSsrc, parser.sender_ssrc()); |
(...skipping 3504 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3909 std::unique_ptr<VideoEncoder> encoder_; | 3907 std::unique_ptr<VideoEncoder> encoder_; |
3910 std::unique_ptr<VideoDecoder> decoder_; | 3908 std::unique_ptr<VideoDecoder> decoder_; |
3911 rtc::CriticalSection crit_; | 3909 rtc::CriticalSection crit_; |
3912 int recorded_frames_ GUARDED_BY(crit_); | 3910 int recorded_frames_ GUARDED_BY(crit_); |
3913 } test(this); | 3911 } test(this); |
3914 | 3912 |
3915 RunBaseTest(&test); | 3913 RunBaseTest(&test); |
3916 } | 3914 } |
3917 | 3915 |
3918 } // namespace webrtc | 3916 } // namespace webrtc |
OLD | NEW |