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

Side by Side Diff: webrtc/video/video_send_stream_tests.cc

Issue 2064523002: GN: Add video_engine_tests (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: audio_receive_stream_unittest compile Created 4 years, 6 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
« webrtc/test/BUILD.gn ('K') | « webrtc/video/rtp_stream_receiver.cc ('k') | no next file » | 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) 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> // max 10 #include <algorithm> // max
(...skipping 2100 matching lines...) Expand 10 before | Expand all | Expand 10 after
2111 // +-+-+-+-+-+-+-+-+ 2111 // +-+-+-+-+-+-+-+-+
2112 // | P_DIFF | R times 2112 // | P_DIFF | R times
2113 // +-+-+-+-+-+-+-+-+ 2113 // +-+-+-+-+-+-+-+-+
2114 void VerifySsData(const RTPVideoHeaderVP9& vp9) const { 2114 void VerifySsData(const RTPVideoHeaderVP9& vp9) const {
2115 EXPECT_TRUE(vp9.ss_data_available); // V 2115 EXPECT_TRUE(vp9.ss_data_available); // V
2116 EXPECT_EQ(vp9_settings_.numberOfSpatialLayers, // N_S + 1 2116 EXPECT_EQ(vp9_settings_.numberOfSpatialLayers, // N_S + 1
2117 vp9.num_spatial_layers); 2117 vp9.num_spatial_layers);
2118 EXPECT_TRUE(vp9.spatial_layer_resolution_present); // Y:1 2118 EXPECT_TRUE(vp9.spatial_layer_resolution_present); // Y:1
2119 size_t expected_width = encoder_config_.streams[0].width; 2119 size_t expected_width = encoder_config_.streams[0].width;
2120 size_t expected_height = encoder_config_.streams[0].height; 2120 size_t expected_height = encoder_config_.streams[0].height;
2121 for (int i = vp9.num_spatial_layers - 1; i >= 0; --i) { 2121 for (int i = static_cast<int>(vp9.num_spatial_layers) - 1; i >= 0; --i) {
2122 EXPECT_EQ(expected_width, vp9.width[i]); // WIDTH 2122 EXPECT_EQ(expected_width, vp9.width[i]); // WIDTH
2123 EXPECT_EQ(expected_height, vp9.height[i]); // HEIGHT 2123 EXPECT_EQ(expected_height, vp9.height[i]); // HEIGHT
2124 expected_width /= 2; 2124 expected_width /= 2;
2125 expected_height /= 2; 2125 expected_height /= 2;
2126 } 2126 }
2127 } 2127 }
2128 2128
2129 void CompareConsecutiveFrames(const RTPHeader& header, 2129 void CompareConsecutiveFrames(const RTPHeader& header,
2130 const RTPVideoHeader& video) const { 2130 const RTPVideoHeader& video) const {
2131 const RTPVideoHeaderVP9& vp9 = video.codecHeader.VP9; 2131 const RTPVideoHeaderVP9& vp9 = video.codecHeader.VP9;
(...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after
2296 observation_complete_.Set(); 2296 observation_complete_.Set();
2297 } 2297 }
2298 } 2298 }
2299 } test; 2299 } test;
2300 2300
2301 RunBaseTest(&test); 2301 RunBaseTest(&test);
2302 } 2302 }
2303 #endif // !defined(RTC_DISABLE_VP9) 2303 #endif // !defined(RTC_DISABLE_VP9)
2304 2304
2305 } // namespace webrtc 2305 } // namespace webrtc
OLDNEW
« webrtc/test/BUILD.gn ('K') | « webrtc/video/rtp_stream_receiver.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698