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

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

Issue 2886993005: Introduce RtpStreamReceiver and RtpStreamReceiverControllerInterface. (Closed)
Patch Set: Rename again, to RtpStreamReceiver. Created 3 years, 6 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 2017 The WebRTC Project Authors. All rights reserved. 2 * Copyright 2017 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 10 matching lines...) Expand all
21 #include "webrtc/modules/rtp_rtcp/source/rtp_packet_to_send.h" 21 #include "webrtc/modules/rtp_rtcp/source/rtp_packet_to_send.h"
22 #include "webrtc/modules/utility/include/process_thread.h" 22 #include "webrtc/modules/utility/include/process_thread.h"
23 #include "webrtc/video/call_stats.h" 23 #include "webrtc/video/call_stats.h"
24 #include "webrtc/video/video_receive_stream.h" 24 #include "webrtc/video/video_receive_stream.h"
25 #include "webrtc/system_wrappers/include/clock.h" 25 #include "webrtc/system_wrappers/include/clock.h"
26 #include "webrtc/test/field_trial.h" 26 #include "webrtc/test/field_trial.h"
27 27
28 using testing::_; 28 using testing::_;
29 using testing::Invoke; 29 using testing::Invoke;
30 30
31 namespace webrtc {
32 #if 0
33 namespace {
34
31 constexpr int kDefaultTimeOutMs = 50; 35 constexpr int kDefaultTimeOutMs = 50;
32 36
33 namespace webrtc {
34
35 namespace {
36
37 const char kNewJitterBufferFieldTrialEnabled[] = 37 const char kNewJitterBufferFieldTrialEnabled[] =
38 "WebRTC-NewVideoJitterBuffer/Enabled/"; 38 "WebRTC-NewVideoJitterBuffer/Enabled/";
39 39
40 class MockTransport : public Transport { 40 class MockTransport : public Transport {
41 public: 41 public:
42 MOCK_METHOD3(SendRtp, 42 MOCK_METHOD3(SendRtp,
43 bool(const uint8_t* packet, 43 bool(const uint8_t* packet,
44 size_t length, 44 size_t length,
45 const PacketOptions& options)); 45 const PacketOptions& options));
46 MOCK_METHOD2(SendRtcp, bool(const uint8_t* packet, size_t length)); 46 MOCK_METHOD2(SendRtcp, bool(const uint8_t* packet, size_t length));
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
128 EXPECT_CALL(mock_h264_video_decoder_, RegisterDecodeCompleteCallback(_)); 128 EXPECT_CALL(mock_h264_video_decoder_, RegisterDecodeCompleteCallback(_));
129 video_receive_stream_->Start(); 129 video_receive_stream_->Start();
130 EXPECT_CALL(mock_h264_video_decoder_, Decode(_, false, _, _, _)); 130 EXPECT_CALL(mock_h264_video_decoder_, Decode(_, false, _, _, _));
131 RtpPacketReceived parsed_packet; 131 RtpPacketReceived parsed_packet;
132 ASSERT_TRUE(parsed_packet.Parse(rtppacket.data(), rtppacket.size())); 132 ASSERT_TRUE(parsed_packet.Parse(rtppacket.data(), rtppacket.size()));
133 video_receive_stream_->OnRtpPacket(parsed_packet); 133 video_receive_stream_->OnRtpPacket(parsed_packet);
134 EXPECT_CALL(mock_h264_video_decoder_, Release()); 134 EXPECT_CALL(mock_h264_video_decoder_, Release());
135 // Make sure the decoder thread had a chance to run. 135 // Make sure the decoder thread had a chance to run.
136 init_decode_event_.Wait(kDefaultTimeOutMs); 136 init_decode_event_.Wait(kDefaultTimeOutMs);
137 } 137 }
138 #endif
139
138 } // namespace webrtc 140 } // namespace webrtc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698