| 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 14 matching lines...) Expand all Loading... |
| 25 | 25 |
| 26 class MockVieEncoder : public ViEEncoder { | 26 class MockVieEncoder : public ViEEncoder { |
| 27 public: | 27 public: |
| 28 explicit MockVieEncoder(ProcessThread* process_thread, PacedSender* pacer) | 28 explicit MockVieEncoder(ProcessThread* process_thread, PacedSender* pacer) |
| 29 : ViEEncoder(1, | 29 : ViEEncoder(1, |
| 30 std::vector<uint32_t>(), | 30 std::vector<uint32_t>(), |
| 31 process_thread, | 31 process_thread, |
| 32 nullptr, | 32 nullptr, |
| 33 nullptr, | 33 nullptr, |
| 34 nullptr, | 34 nullptr, |
| 35 pacer, | 35 pacer) {} |
| 36 nullptr, | |
| 37 nullptr) {} | |
| 38 ~MockVieEncoder() {} | 36 ~MockVieEncoder() {} |
| 39 | 37 |
| 40 MOCK_METHOD1(OnReceivedIntraFrameRequest, | 38 MOCK_METHOD1(OnReceivedIntraFrameRequest, |
| 41 void(uint32_t)); | 39 void(uint32_t)); |
| 42 MOCK_METHOD2(OnReceivedSLI, | 40 MOCK_METHOD2(OnReceivedSLI, |
| 43 void(uint32_t ssrc, uint8_t picture_id)); | 41 void(uint32_t ssrc, uint8_t picture_id)); |
| 44 MOCK_METHOD2(OnReceivedRPSI, | 42 MOCK_METHOD2(OnReceivedRPSI, |
| 45 void(uint32_t ssrc, uint64_t picture_id)); | 43 void(uint32_t ssrc, uint64_t picture_id)); |
| 46 }; | 44 }; |
| 47 | 45 |
| (...skipping 20 matching lines...) Expand all Loading... |
| 68 .Times(1); | 66 .Times(1); |
| 69 encoder_state_feedback.OnReceivedSLI(kSsrc, sli_picture_id); | 67 encoder_state_feedback.OnReceivedSLI(kSsrc, sli_picture_id); |
| 70 | 68 |
| 71 const uint64_t rpsi_picture_id = 9; | 69 const uint64_t rpsi_picture_id = 9; |
| 72 EXPECT_CALL(encoder, OnReceivedRPSI(kSsrc, rpsi_picture_id)) | 70 EXPECT_CALL(encoder, OnReceivedRPSI(kSsrc, rpsi_picture_id)) |
| 73 .Times(1); | 71 .Times(1); |
| 74 encoder_state_feedback.OnReceivedRPSI(kSsrc, rpsi_picture_id); | 72 encoder_state_feedback.OnReceivedRPSI(kSsrc, rpsi_picture_id); |
| 75 } | 73 } |
| 76 | 74 |
| 77 } // namespace webrtc | 75 } // namespace webrtc |
| OLD | NEW |