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 386 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
397 H264Decoder::Create()); | 397 H264Decoder::Create()); |
398 RunBaseTest(&test); | 398 RunBaseTest(&test); |
399 } | 399 } |
400 | 400 |
401 TEST_P(EndToEndTest, SendsAndReceivesH264VideoRotation90) { | 401 TEST_P(EndToEndTest, SendsAndReceivesH264VideoRotation90) { |
402 CodecObserver test(5, kVideoRotation_90, "H264", | 402 CodecObserver test(5, kVideoRotation_90, "H264", |
403 H264Encoder::Create(cricket::VideoCodec("H264")), | 403 H264Encoder::Create(cricket::VideoCodec("H264")), |
404 H264Decoder::Create()); | 404 H264Decoder::Create()); |
405 RunBaseTest(&test); | 405 RunBaseTest(&test); |
406 } | 406 } |
407 | |
408 TEST_P(EndToEndTest, SendsAndReceivesH264PacketizationMode0) { | |
409 cricket::VideoCodec codec = cricket::VideoCodec("H264"); | |
410 codec.SetParam(cricket::kH264FmtpPacketizationMode, "0"); | |
411 CodecObserver test(500, kVideoRotation_0, "H264", H264Encoder::Create(codec), | |
412 H264Decoder::Create()); | |
413 RunBaseTest(&test); | |
414 } | |
415 | |
416 TEST_P(EndToEndTest, SendsAndReceivesH264PacketizationMode1) { | |
417 cricket::VideoCodec codec = cricket::VideoCodec("H264"); | |
418 codec.SetParam(cricket::kH264FmtpPacketizationMode, "1"); | |
419 CodecObserver test(500, kVideoRotation_0, "H264", H264Encoder::Create(codec), | |
420 H264Decoder::Create()); | |
421 RunBaseTest(&test); | |
422 } | |
423 | |
424 #endif // defined(WEBRTC_USE_H264) | 407 #endif // defined(WEBRTC_USE_H264) |
425 | 408 |
426 TEST_P(EndToEndTest, ReceiverUsesLocalSsrc) { | 409 TEST_P(EndToEndTest, ReceiverUsesLocalSsrc) { |
427 class SyncRtcpObserver : public test::EndToEndTest { | 410 class SyncRtcpObserver : public test::EndToEndTest { |
428 public: | 411 public: |
429 SyncRtcpObserver() : EndToEndTest(kDefaultTimeoutMs) {} | 412 SyncRtcpObserver() : EndToEndTest(kDefaultTimeoutMs) {} |
430 | 413 |
431 Action OnReceiveRtcp(const uint8_t* packet, size_t length) override { | 414 Action OnReceiveRtcp(const uint8_t* packet, size_t length) override { |
432 test::RtcpPacketParser parser; | 415 test::RtcpPacketParser parser; |
433 EXPECT_TRUE(parser.Parse(packet, length)); | 416 EXPECT_TRUE(parser.Parse(packet, length)); |
(...skipping 3627 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4061 std::unique_ptr<VideoEncoder> encoder_; | 4044 std::unique_ptr<VideoEncoder> encoder_; |
4062 std::unique_ptr<VideoDecoder> decoder_; | 4045 std::unique_ptr<VideoDecoder> decoder_; |
4063 rtc::CriticalSection crit_; | 4046 rtc::CriticalSection crit_; |
4064 int recorded_frames_ GUARDED_BY(crit_); | 4047 int recorded_frames_ GUARDED_BY(crit_); |
4065 } test(this); | 4048 } test(this); |
4066 | 4049 |
4067 RunBaseTest(&test); | 4050 RunBaseTest(&test); |
4068 } | 4051 } |
4069 | 4052 |
4070 } // namespace webrtc | 4053 } // namespace webrtc |
OLD | NEW |