Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(93)

Side by Side Diff: webrtc/media/engine/videoencodersoftwarefallbackwrapper_unittest.cc

Issue 2717113002: Refactor + enable GN check on video_coding_utility (Closed)
Patch Set: Rebased Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | webrtc/modules/video_coding/BUILD.gn » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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" 16 #include "webrtc/base/checks.h"
17 #include "webrtc/modules/video_coding/codecs/vp8/simulcast_rate_allocator.h"
17 #include "webrtc/modules/video_coding/codecs/vp8/temporal_layers.h" 18 #include "webrtc/modules/video_coding/codecs/vp8/temporal_layers.h"
18 #include "webrtc/modules/video_coding/include/video_codec_interface.h" 19 #include "webrtc/modules/video_coding/include/video_codec_interface.h"
19 #include "webrtc/modules/video_coding/include/video_error_codes.h" 20 #include "webrtc/modules/video_coding/include/video_error_codes.h"
20 #include "webrtc/modules/video_coding/utility/simulcast_rate_allocator.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 261 matching lines...) Expand 10 before | Expand all | Expand 10 after
292 292
293 TEST_F(VideoEncoderSoftwareFallbackWrapperTest, 293 TEST_F(VideoEncoderSoftwareFallbackWrapperTest,
294 ReportsFallbackImplementationName) { 294 ReportsFallbackImplementationName) {
295 UtilizeFallbackEncoder(); 295 UtilizeFallbackEncoder();
296 // Hard coded expected value since libvpx is the software implementation name 296 // Hard coded expected value since libvpx is the software implementation name
297 // for VP8. Change accordingly if the underlying implementation does. 297 // for VP8. Change accordingly if the underlying implementation does.
298 CheckLastEncoderName("libvpx"); 298 CheckLastEncoderName("libvpx");
299 } 299 }
300 300
301 } // namespace webrtc 301 } // namespace webrtc
OLDNEW
« no previous file with comments | « no previous file | webrtc/modules/video_coding/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698