OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2015 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2015 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 | 10 |
11 #include "webrtc/media/engine/videoencodersoftwarefallbackwrapper.h" | 11 #include "webrtc/media/engine/videoencodersoftwarefallbackwrapper.h" |
12 | 12 |
13 #include <utility> | 13 #include <utility> |
14 | 14 |
15 #include "webrtc/api/video/i420_buffer.h" | 15 #include "webrtc/api/video/i420_buffer.h" |
16 #include "webrtc/base/checks.h" | |
17 #include "webrtc/modules/video_coding/codecs/vp8/simulcast_rate_allocator.h" | 16 #include "webrtc/modules/video_coding/codecs/vp8/simulcast_rate_allocator.h" |
18 #include "webrtc/modules/video_coding/codecs/vp8/temporal_layers.h" | 17 #include "webrtc/modules/video_coding/codecs/vp8/temporal_layers.h" |
19 #include "webrtc/modules/video_coding/include/video_codec_interface.h" | 18 #include "webrtc/modules/video_coding/include/video_codec_interface.h" |
20 #include "webrtc/modules/video_coding/include/video_error_codes.h" | 19 #include "webrtc/modules/video_coding/include/video_error_codes.h" |
| 20 #include "webrtc/rtc_base/checks.h" |
21 #include "webrtc/test/gtest.h" | 21 #include "webrtc/test/gtest.h" |
22 | 22 |
23 namespace webrtc { | 23 namespace webrtc { |
24 | 24 |
25 const int kWidth = 320; | 25 const int kWidth = 320; |
26 const int kHeight = 240; | 26 const int kHeight = 240; |
27 const size_t kMaxPayloadSize = 800; | 27 const size_t kMaxPayloadSize = 800; |
28 | 28 |
29 class VideoEncoderSoftwareFallbackWrapperTest : public ::testing::Test { | 29 class VideoEncoderSoftwareFallbackWrapperTest : public ::testing::Test { |
30 protected: | 30 protected: |
(...skipping 260 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
291 | 291 |
292 TEST_F(VideoEncoderSoftwareFallbackWrapperTest, | 292 TEST_F(VideoEncoderSoftwareFallbackWrapperTest, |
293 ReportsFallbackImplementationName) { | 293 ReportsFallbackImplementationName) { |
294 UtilizeFallbackEncoder(); | 294 UtilizeFallbackEncoder(); |
295 // Hard coded expected value since libvpx is the software implementation name | 295 // Hard coded expected value since libvpx is the software implementation name |
296 // for VP8. Change accordingly if the underlying implementation does. | 296 // for VP8. Change accordingly if the underlying implementation does. |
297 CheckLastEncoderName("libvpx"); | 297 CheckLastEncoderName("libvpx"); |
298 } | 298 } |
299 | 299 |
300 } // namespace webrtc | 300 } // namespace webrtc |
OLD | NEW |