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

Side by Side Diff: webrtc/modules/video_coding/main/source/video_sender_unittest.cc

Issue 1415693002: Remove VideoFrameType aliases for FrameType. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: rebase Created 5 years, 2 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
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 10
(...skipping 218 matching lines...) Expand 10 before | Expand all | Expand 10 after
229 EXPECT_EQ(0, sender_->RegisterSendCodec(&settings_, 1, 1200)); 229 EXPECT_EQ(0, sender_->RegisterSendCodec(&settings_, 1, 1200));
230 } 230 }
231 231
232 void TearDown() override { sender_.reset(); } 232 void TearDown() override { sender_.reset(); }
233 233
234 void ExpectIntraRequest(int stream) { 234 void ExpectIntraRequest(int stream) {
235 if (stream == -1) { 235 if (stream == -1) {
236 // No intra request expected. 236 // No intra request expected.
237 EXPECT_CALL( 237 EXPECT_CALL(
238 encoder_, 238 encoder_,
239 Encode(_, 239 Encode(_, _, Pointee(ElementsAre(kVideoFrameDelta, kVideoFrameDelta,
240 _, 240 kVideoFrameDelta))))
241 Pointee(ElementsAre(kDeltaFrame, kDeltaFrame, kDeltaFrame)))) 241 .Times(1)
242 .Times(1).WillRepeatedly(Return(0)); 242 .WillRepeatedly(Return(0));
243 return; 243 return;
244 } 244 }
245 assert(stream >= 0); 245 assert(stream >= 0);
246 assert(stream < kNumberOfStreams); 246 assert(stream < kNumberOfStreams);
247 std::vector<FrameType> frame_types(kNumberOfStreams, kDeltaFrame); 247 std::vector<FrameType> frame_types(kNumberOfStreams, kVideoFrameDelta);
248 frame_types[stream] = kKeyFrame; 248 frame_types[stream] = kVideoFrameKey;
249 EXPECT_CALL( 249 EXPECT_CALL(
250 encoder_, 250 encoder_,
251 Encode(_, 251 Encode(_,
252 _, 252 _,
253 Pointee(ElementsAreArray(&frame_types[0], frame_types.size())))) 253 Pointee(ElementsAreArray(&frame_types[0], frame_types.size()))))
254 .Times(1).WillRepeatedly(Return(0)); 254 .Times(1).WillRepeatedly(Return(0));
255 } 255 }
256 256
257 static void ConfigureStream(int width, 257 static void ConfigureStream(int width,
258 int height, 258 int height,
(...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after
452 } 452 }
453 { 453 {
454 // TODO(andresp): Find out why this fails with framerate = 7.5 454 // TODO(andresp): Find out why this fails with framerate = 7.5
455 Vp8StreamInfo expected = {{7.0, 7.0, 7.0}, {high_b, high_b, high_b}}; 455 Vp8StreamInfo expected = {{7.0, 7.0, 7.0}, {high_b, high_b, high_b}};
456 EXPECT_THAT(SimulateWithFramerate(7.0), MatchesVp8StreamInfo(expected)); 456 EXPECT_THAT(SimulateWithFramerate(7.0), MatchesVp8StreamInfo(expected));
457 } 457 }
458 } 458 }
459 } // namespace 459 } // namespace
460 } // namespace vcm 460 } // namespace vcm
461 } // namespace webrtc 461 } // namespace webrtc
OLDNEW
« no previous file with comments | « webrtc/modules/video_coding/main/source/media_optimization_unittest.cc ('k') | webrtc/test/configurable_frame_size_encoder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698