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 315 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
326 int frame_counter_; | 326 int frame_counter_; |
327 }; | 327 }; |
328 | 328 |
329 TEST_F(EndToEndTest, SendsAndReceivesVP8Rotation90) { | 329 TEST_F(EndToEndTest, SendsAndReceivesVP8Rotation90) { |
330 CodecObserver test(5, kVideoRotation_90, "VP8", | 330 CodecObserver test(5, kVideoRotation_90, "VP8", |
331 VideoEncoder::Create(VideoEncoder::kVp8), | 331 VideoEncoder::Create(VideoEncoder::kVp8), |
332 VP8Decoder::Create()); | 332 VP8Decoder::Create()); |
333 RunBaseTest(&test); | 333 RunBaseTest(&test); |
334 } | 334 } |
335 | 335 |
| 336 #if !defined(RTC_DISABLE_VP9) |
336 TEST_F(EndToEndTest, SendsAndReceivesVP9) { | 337 TEST_F(EndToEndTest, SendsAndReceivesVP9) { |
337 CodecObserver test(500, kVideoRotation_0, "VP9", | 338 CodecObserver test(500, kVideoRotation_0, "VP9", |
338 VideoEncoder::Create(VideoEncoder::kVp9), | 339 VideoEncoder::Create(VideoEncoder::kVp9), |
339 VP9Decoder::Create()); | 340 VP9Decoder::Create()); |
340 RunBaseTest(&test); | 341 RunBaseTest(&test); |
341 } | 342 } |
342 | 343 |
343 TEST_F(EndToEndTest, SendsAndReceivesVP9VideoRotation90) { | 344 TEST_F(EndToEndTest, SendsAndReceivesVP9VideoRotation90) { |
344 CodecObserver test(5, kVideoRotation_90, "VP9", | 345 CodecObserver test(5, kVideoRotation_90, "VP9", |
345 VideoEncoder::Create(VideoEncoder::kVp9), | 346 VideoEncoder::Create(VideoEncoder::kVp9), |
346 VP9Decoder::Create()); | 347 VP9Decoder::Create()); |
347 RunBaseTest(&test); | 348 RunBaseTest(&test); |
348 } | 349 } |
| 350 #endif // !defined(RTC_DISABLE_VP9) |
349 | 351 |
350 #if defined(WEBRTC_END_TO_END_H264_TESTS) | 352 #if defined(WEBRTC_END_TO_END_H264_TESTS) |
351 | 353 |
352 TEST_F(EndToEndTest, SendsAndReceivesH264) { | 354 TEST_F(EndToEndTest, SendsAndReceivesH264) { |
353 CodecObserver test(500, kVideoRotation_0, "H264", | 355 CodecObserver test(500, kVideoRotation_0, "H264", |
354 VideoEncoder::Create(VideoEncoder::kH264), | 356 VideoEncoder::Create(VideoEncoder::kH264), |
355 H264Decoder::Create()); | 357 H264Decoder::Create()); |
356 RunBaseTest(&test); | 358 RunBaseTest(&test); |
357 } | 359 } |
358 | 360 |
(...skipping 3144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3503 private: | 3505 private: |
3504 bool video_observed_; | 3506 bool video_observed_; |
3505 bool audio_observed_; | 3507 bool audio_observed_; |
3506 SequenceNumberUnwrapper unwrapper_; | 3508 SequenceNumberUnwrapper unwrapper_; |
3507 std::set<int64_t> received_packet_ids_; | 3509 std::set<int64_t> received_packet_ids_; |
3508 } test; | 3510 } test; |
3509 | 3511 |
3510 RunBaseTest(&test); | 3512 RunBaseTest(&test); |
3511 } | 3513 } |
3512 } // namespace webrtc | 3514 } // namespace webrtc |
OLD | NEW |