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 |
407 #endif // defined(WEBRTC_USE_H264) | 424 #endif // defined(WEBRTC_USE_H264) |
408 | 425 |
409 TEST_P(EndToEndTest, ReceiverUsesLocalSsrc) { | 426 TEST_P(EndToEndTest, ReceiverUsesLocalSsrc) { |
410 class SyncRtcpObserver : public test::EndToEndTest { | 427 class SyncRtcpObserver : public test::EndToEndTest { |
411 public: | 428 public: |
412 SyncRtcpObserver() : EndToEndTest(kDefaultTimeoutMs) {} | 429 SyncRtcpObserver() : EndToEndTest(kDefaultTimeoutMs) {} |
413 | 430 |
414 Action OnReceiveRtcp(const uint8_t* packet, size_t length) override { | 431 Action OnReceiveRtcp(const uint8_t* packet, size_t length) override { |
415 test::RtcpPacketParser parser; | 432 test::RtcpPacketParser parser; |
416 EXPECT_TRUE(parser.Parse(packet, length)); | 433 EXPECT_TRUE(parser.Parse(packet, length)); |
(...skipping 3627 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4044 std::unique_ptr<VideoEncoder> encoder_; | 4061 std::unique_ptr<VideoEncoder> encoder_; |
4045 std::unique_ptr<VideoDecoder> decoder_; | 4062 std::unique_ptr<VideoDecoder> decoder_; |
4046 rtc::CriticalSection crit_; | 4063 rtc::CriticalSection crit_; |
4047 int recorded_frames_ GUARDED_BY(crit_); | 4064 int recorded_frames_ GUARDED_BY(crit_); |
4048 } test(this); | 4065 } test(this); |
4049 | 4066 |
4050 RunBaseTest(&test); | 4067 RunBaseTest(&test); |
4051 } | 4068 } |
4052 | 4069 |
4053 } // namespace webrtc | 4070 } // namespace webrtc |
OLD | NEW |