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

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

Issue 2517173004: Move VideoFrame and related declarations to webrtc/api/video. (Closed)
Patch Set: Fix gn dependencies. Created 4 years 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
OLDNEW
1 /* 1 /*
2 * Copyright (c) 2004 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2004 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
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 } 77 }
78 } 78 }
79 return false; 79 return false;
80 } 80 }
81 81
82 rtc::scoped_refptr<webrtc::VideoFrameBuffer> CreateBlackFrameBuffer( 82 rtc::scoped_refptr<webrtc::VideoFrameBuffer> CreateBlackFrameBuffer(
83 int width, 83 int width,
84 int height) { 84 int height) {
85 rtc::scoped_refptr<webrtc::I420Buffer> buffer = 85 rtc::scoped_refptr<webrtc::I420Buffer> buffer =
86 webrtc::I420Buffer::Create(width, height); 86 webrtc::I420Buffer::Create(width, height);
87 buffer->SetToBlack(); 87 webrtc::I420Buffer::SetBlack(buffer);
88 return buffer; 88 return buffer;
89 } 89 }
90 90
91 void VerifySendStreamHasRtxTypes(const webrtc::VideoSendStream::Config& config, 91 void VerifySendStreamHasRtxTypes(const webrtc::VideoSendStream::Config& config,
92 const std::map<int, int>& rtx_types) { 92 const std::map<int, int>& rtx_types) {
93 std::map<int, int>::const_iterator it; 93 std::map<int, int>::const_iterator it;
94 it = rtx_types.find(config.encoder_settings.payload_type); 94 it = rtx_types.find(config.encoder_settings.payload_type);
95 EXPECT_TRUE(it != rtx_types.end() && 95 EXPECT_TRUE(it != rtx_types.end() &&
96 it->second == config.rtp.rtx.payload_type); 96 it->second == config.rtp.rtx.payload_type);
97 97
(...skipping 3943 matching lines...) Expand 10 before | Expand all | Expand 10 after
4041 4041
4042 TEST_F(WebRtcVideoChannel2SimulcastTest, SetSendCodecsWith3SimulcastStreams) { 4042 TEST_F(WebRtcVideoChannel2SimulcastTest, SetSendCodecsWith3SimulcastStreams) {
4043 VerifySimulcastSettings(cricket::VideoCodec("VP8"), 1280, 720, 3, 3); 4043 VerifySimulcastSettings(cricket::VideoCodec("VP8"), 1280, 720, 3, 3);
4044 } 4044 }
4045 4045
4046 // Test that we normalize send codec format size in simulcast. 4046 // Test that we normalize send codec format size in simulcast.
4047 TEST_F(WebRtcVideoChannel2SimulcastTest, SetSendCodecsWithOddSizeInSimulcast) { 4047 TEST_F(WebRtcVideoChannel2SimulcastTest, SetSendCodecsWithOddSizeInSimulcast) {
4048 VerifySimulcastSettings(cricket::VideoCodec("VP8"), 541, 271, 2, 2); 4048 VerifySimulcastSettings(cricket::VideoCodec("VP8"), 541, 271, 2, 2);
4049 } 4049 }
4050 } // namespace cricket 4050 } // namespace cricket
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698