OLD | NEW |
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 226 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
237 EXPECT_CALL( | 237 EXPECT_CALL( |
238 encoder_, | 238 encoder_, |
239 Encode(_, | 239 Encode(_, |
240 _, | 240 _, |
241 Pointee(ElementsAre(kDeltaFrame, kDeltaFrame, kDeltaFrame)))) | 241 Pointee(ElementsAre(kDeltaFrame, kDeltaFrame, kDeltaFrame)))) |
242 .Times(1).WillRepeatedly(Return(0)); | 242 .Times(1).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<VideoFrameType> frame_types(kNumberOfStreams, kDeltaFrame); | 247 std::vector<FrameType> frame_types(kNumberOfStreams, kDeltaFrame); |
248 frame_types[stream] = kKeyFrame; | 248 frame_types[stream] = kKeyFrame; |
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, |
(...skipping 194 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 |
OLD | NEW |