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

Side by Side Diff: webrtc/video/encoder_state_feedback_unittest.cc

Issue 1654913002: Untangle ViEChannel and ViEEncoder. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: rebase Created 4 years, 10 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) 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 19 matching lines...) Expand all
30 30
31 class MockVieEncoder : public ViEEncoder { 31 class MockVieEncoder : public ViEEncoder {
32 public: 32 public:
33 explicit MockVieEncoder(ProcessThread* process_thread, PacedSender* pacer) 33 explicit MockVieEncoder(ProcessThread* process_thread, PacedSender* pacer)
34 : ViEEncoder(1, 34 : ViEEncoder(1,
35 process_thread, 35 process_thread,
36 nullptr, 36 nullptr,
37 nullptr, 37 nullptr,
38 nullptr, 38 nullptr,
39 pacer, 39 pacer,
40 nullptr,
40 nullptr) {} 41 nullptr) {}
41 ~MockVieEncoder() {} 42 ~MockVieEncoder() {}
42 43
43 MOCK_METHOD1(OnReceivedIntraFrameRequest, 44 MOCK_METHOD1(OnReceivedIntraFrameRequest,
44 void(uint32_t)); 45 void(uint32_t));
45 MOCK_METHOD2(OnReceivedSLI, 46 MOCK_METHOD2(OnReceivedSLI,
46 void(uint32_t ssrc, uint8_t picture_id)); 47 void(uint32_t ssrc, uint8_t picture_id));
47 MOCK_METHOD2(OnReceivedRPSI, 48 MOCK_METHOD2(OnReceivedRPSI,
48 void(uint32_t ssrc, uint64_t picture_id)); 49 void(uint32_t ssrc, uint64_t picture_id));
49 MOCK_METHOD2(OnLocalSsrcChanged, 50 MOCK_METHOD2(OnLocalSsrcChanged,
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
139 140
140 encoder_state_feedback_->RemoveEncoder(&encoder_1); 141 encoder_state_feedback_->RemoveEncoder(&encoder_1);
141 EXPECT_CALL(encoder_2, OnReceivedIntraFrameRequest(ssrc_2)) 142 EXPECT_CALL(encoder_2, OnReceivedIntraFrameRequest(ssrc_2))
142 .Times(1); 143 .Times(1);
143 encoder_state_feedback_->GetRtcpIntraFrameObserver()-> 144 encoder_state_feedback_->GetRtcpIntraFrameObserver()->
144 OnReceivedIntraFrameRequest(ssrc_2); 145 OnReceivedIntraFrameRequest(ssrc_2);
145 encoder_state_feedback_->RemoveEncoder(&encoder_2); 146 encoder_state_feedback_->RemoveEncoder(&encoder_2);
146 } 147 }
147 148
148 } // namespace webrtc 149 } // namespace webrtc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698