pbos@webrtc.org | 9115cde | 2014-12-09 10:36:40 +0000 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (c) 2014 The WebRTC project authors. All Rights Reserved. |
| 3 | * |
| 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 |
| 6 | * tree. An additional intellectual property rights grant can be found |
| 7 | * in the file PATENTS. All contributing project authors may |
| 8 | * be found in the AUTHORS file in the root of the source tree. |
| 9 | */ |
| 10 | |
magjed | 6cc2561 | 2017-07-10 03:26:36 -0700 | [diff] [blame] | 11 | #include "webrtc/modules/video_coding/codecs/vp8/simulcast_test_utility.h" |
pbos@webrtc.org | 9115cde | 2014-12-09 10:36:40 +0000 | [diff] [blame] | 12 | |
| 13 | namespace webrtc { |
| 14 | namespace testing { |
| 15 | |
philipel | cce46fc | 2015-12-21 03:04:49 -0800 | [diff] [blame] | 16 | class TestVp8Impl : public TestVp8Simulcast { |
pbos@webrtc.org | 9115cde | 2014-12-09 10:36:40 +0000 | [diff] [blame] | 17 | protected: |
magjed | 6cc2561 | 2017-07-10 03:26:36 -0700 | [diff] [blame] | 18 | VP8Encoder* CreateEncoder() override { return VP8Encoder::Create(); } |
| 19 | VP8Decoder* CreateDecoder() override { return VP8Decoder::Create(); } |
pbos@webrtc.org | 9115cde | 2014-12-09 10:36:40 +0000 | [diff] [blame] | 20 | }; |
| 21 | |
| 22 | TEST_F(TestVp8Impl, TestKeyFrameRequestsOnAllStreams) { |
| 23 | TestVp8Simulcast::TestKeyFrameRequestsOnAllStreams(); |
| 24 | } |
| 25 | |
| 26 | TEST_F(TestVp8Impl, TestPaddingAllStreams) { |
| 27 | TestVp8Simulcast::TestPaddingAllStreams(); |
| 28 | } |
| 29 | |
| 30 | TEST_F(TestVp8Impl, TestPaddingTwoStreams) { |
| 31 | TestVp8Simulcast::TestPaddingTwoStreams(); |
| 32 | } |
| 33 | |
| 34 | TEST_F(TestVp8Impl, TestPaddingTwoStreamsOneMaxedOut) { |
| 35 | TestVp8Simulcast::TestPaddingTwoStreamsOneMaxedOut(); |
| 36 | } |
| 37 | |
| 38 | TEST_F(TestVp8Impl, TestPaddingOneStream) { |
| 39 | TestVp8Simulcast::TestPaddingOneStream(); |
| 40 | } |
| 41 | |
| 42 | TEST_F(TestVp8Impl, TestPaddingOneStreamTwoMaxedOut) { |
| 43 | TestVp8Simulcast::TestPaddingOneStreamTwoMaxedOut(); |
| 44 | } |
| 45 | |
| 46 | TEST_F(TestVp8Impl, TestSendAllStreams) { |
| 47 | TestVp8Simulcast::TestSendAllStreams(); |
| 48 | } |
| 49 | |
| 50 | TEST_F(TestVp8Impl, TestDisablingStreams) { |
| 51 | TestVp8Simulcast::TestDisablingStreams(); |
| 52 | } |
| 53 | |
| 54 | TEST_F(TestVp8Impl, TestSwitchingToOneStream) { |
| 55 | TestVp8Simulcast::TestSwitchingToOneStream(); |
| 56 | } |
| 57 | |
| 58 | TEST_F(TestVp8Impl, TestSwitchingToOneOddStream) { |
| 59 | TestVp8Simulcast::TestSwitchingToOneOddStream(); |
| 60 | } |
| 61 | |
asapersson | ffa3fdc | 2016-01-26 01:56:32 -0800 | [diff] [blame] | 62 | TEST_F(TestVp8Impl, TestSwitchingToOneSmallStream) { |
| 63 | TestVp8Simulcast::TestSwitchingToOneSmallStream(); |
| 64 | } |
| 65 | |
pbos@webrtc.org | 9115cde | 2014-12-09 10:36:40 +0000 | [diff] [blame] | 66 | TEST_F(TestVp8Impl, TestSaptioTemporalLayers333PatternEncoder) { |
| 67 | TestVp8Simulcast::TestSaptioTemporalLayers333PatternEncoder(); |
| 68 | } |
| 69 | |
| 70 | TEST_F(TestVp8Impl, TestSpatioTemporalLayers321PatternEncoder) { |
| 71 | TestVp8Simulcast::TestSpatioTemporalLayers321PatternEncoder(); |
| 72 | } |
| 73 | |
| 74 | TEST_F(TestVp8Impl, TestStrideEncodeDecode) { |
| 75 | TestVp8Simulcast::TestStrideEncodeDecode(); |
| 76 | } |
pbos@webrtc.org | 9115cde | 2014-12-09 10:36:40 +0000 | [diff] [blame] | 77 | } // namespace testing |
| 78 | } // namespace webrtc |