| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2012 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 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 52 config_.codec_settings->height = kHeight; | 52 config_.codec_settings->height = kHeight; |
| 53 config_.codec_settings->maxFramerate = kFramerate; | 53 config_.codec_settings->maxFramerate = kFramerate; |
| 54 | 54 |
| 55 EXPECT_CALL(frame_reader_mock_, NumberOfFrames()) | 55 EXPECT_CALL(frame_reader_mock_, NumberOfFrames()) |
| 56 .WillRepeatedly(Return(kNumFrames)); | 56 .WillRepeatedly(Return(kNumFrames)); |
| 57 EXPECT_CALL(frame_reader_mock_, FrameLength()) | 57 EXPECT_CALL(frame_reader_mock_, FrameLength()) |
| 58 .WillRepeatedly(Return(kFrameSize)); | 58 .WillRepeatedly(Return(kFrameSize)); |
| 59 video_processor_ = rtc::MakeUnique<VideoProcessor>( | 59 video_processor_ = rtc::MakeUnique<VideoProcessor>( |
| 60 &encoder_mock_, &decoder_mock_, &frame_reader_mock_, | 60 &encoder_mock_, &decoder_mock_, &frame_reader_mock_, |
| 61 &frame_writer_mock_, &packet_manipulator_mock_, config_, &stats_, | 61 &frame_writer_mock_, &packet_manipulator_mock_, config_, &stats_, |
| 62 nullptr /* source_frame_writer */, nullptr /* encoded_frame_writer */, | 62 nullptr /* encoded_frame_writer */, nullptr /* decoded_frame_writer */); |
| 63 nullptr /* decoded_frame_writer */); | |
| 64 } | 63 } |
| 65 | 64 |
| 66 void ExpectInit() { | 65 void ExpectInit() { |
| 67 EXPECT_CALL(encoder_mock_, InitEncode(_, _, _)).Times(1); | 66 EXPECT_CALL(encoder_mock_, InitEncode(_, _, _)).Times(1); |
| 68 EXPECT_CALL(encoder_mock_, RegisterEncodeCompleteCallback(_)) | 67 EXPECT_CALL(encoder_mock_, RegisterEncodeCompleteCallback(_)) |
| 69 .Times(AtLeast(1)); | 68 .Times(AtLeast(1)); |
| 70 EXPECT_CALL(decoder_mock_, InitDecode(_, _)).Times(1); | 69 EXPECT_CALL(decoder_mock_, InitDecode(_, _)).Times(1); |
| 71 EXPECT_CALL(decoder_mock_, RegisterDecodeCompleteCallback(_)) | 70 EXPECT_CALL(decoder_mock_, RegisterDecodeCompleteCallback(_)) |
| 72 .Times(AtLeast(1)); | 71 .Times(AtLeast(1)); |
| 73 } | 72 } |
| (...skipping 28 matching lines...) Expand all Loading... |
| 102 | 101 |
| 103 EXPECT_CALL(encoder_mock_, Encode(testing::Property(&VideoFrame::timestamp, | 102 EXPECT_CALL(encoder_mock_, Encode(testing::Property(&VideoFrame::timestamp, |
| 104 2 * 90000 / kFramerate), | 103 2 * 90000 / kFramerate), |
| 105 _, _)) | 104 _, _)) |
| 106 .Times(1); | 105 .Times(1); |
| 107 video_processor_->ProcessFrame(1); | 106 video_processor_->ProcessFrame(1); |
| 108 } | 107 } |
| 109 | 108 |
| 110 } // namespace test | 109 } // namespace test |
| 111 } // namespace webrtc | 110 } // namespace webrtc |
| OLD | NEW |