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

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

Issue 1713683003: Simplify SSRC usage inside ViEEncoder. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: 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
« no previous file with comments | « no previous file | webrtc/video/video_send_stream.cc » ('j') | webrtc/video/vie_encoder.h » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 11 matching lines...) Expand all
22 #include "webrtc/video/vie_encoder.h" 22 #include "webrtc/video/vie_encoder.h"
23 23
24 using ::testing::NiceMock; 24 using ::testing::NiceMock;
25 25
26 namespace webrtc { 26 namespace webrtc {
27 27
28 class MockVieEncoder : public ViEEncoder { 28 class MockVieEncoder : public ViEEncoder {
29 public: 29 public:
30 explicit MockVieEncoder(ProcessThread* process_thread, PacedSender* pacer) 30 explicit MockVieEncoder(ProcessThread* process_thread, PacedSender* pacer)
31 : ViEEncoder(1, 31 : ViEEncoder(1,
32 std::vector<uint32_t>(),
32 process_thread, 33 process_thread,
33 nullptr, 34 nullptr,
34 nullptr, 35 nullptr,
35 nullptr, 36 nullptr,
36 pacer, 37 pacer,
37 nullptr, 38 nullptr,
38 nullptr) {} 39 nullptr) {}
39 ~MockVieEncoder() {} 40 ~MockVieEncoder() {}
40 41
41 MOCK_METHOD1(OnReceivedIntraFrameRequest, 42 MOCK_METHOD1(OnReceivedIntraFrameRequest,
(...skipping 29 matching lines...) Expand all
71 .Times(1); 72 .Times(1);
72 encoder_state_feedback.OnReceivedSLI(kSsrc, sli_picture_id); 73 encoder_state_feedback.OnReceivedSLI(kSsrc, sli_picture_id);
73 74
74 const uint64_t rpsi_picture_id = 9; 75 const uint64_t rpsi_picture_id = 9;
75 EXPECT_CALL(encoder, OnReceivedRPSI(kSsrc, rpsi_picture_id)) 76 EXPECT_CALL(encoder, OnReceivedRPSI(kSsrc, rpsi_picture_id))
76 .Times(1); 77 .Times(1);
77 encoder_state_feedback.OnReceivedRPSI(kSsrc, rpsi_picture_id); 78 encoder_state_feedback.OnReceivedRPSI(kSsrc, rpsi_picture_id);
78 } 79 }
79 80
80 } // namespace webrtc 81 } // namespace webrtc
OLDNEW
« no previous file with comments | « no previous file | webrtc/video/video_send_stream.cc » ('j') | webrtc/video/vie_encoder.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698