OLD | NEW |
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 11 matching lines...) Expand all Loading... |
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/system_wrappers/include/sleep.h" | 26 #include "webrtc/system_wrappers/include/sleep.h" |
27 #include "webrtc/test/field_trial.h" | 27 #include "webrtc/test/field_trial.h" |
28 | 28 |
29 using testing::_; | 29 using testing::_; |
30 using testing::Invoke; | 30 using testing::Invoke; |
31 | 31 |
| 32 namespace webrtc { |
| 33 #if 0 |
| 34 namespace { |
| 35 |
32 constexpr int kDefaultTimeOutMs = 50; | 36 constexpr int kDefaultTimeOutMs = 50; |
33 | 37 |
34 namespace webrtc { | |
35 | |
36 namespace { | |
37 | |
38 const char kNewJitterBufferFieldTrialEnabled[] = | 38 const char kNewJitterBufferFieldTrialEnabled[] = |
39 "WebRTC-NewVideoJitterBuffer/Enabled/"; | 39 "WebRTC-NewVideoJitterBuffer/Enabled/"; |
40 | 40 |
41 class MockTransport : public Transport { | 41 class MockTransport : public Transport { |
42 public: | 42 public: |
43 MOCK_METHOD3(SendRtp, | 43 MOCK_METHOD3(SendRtp, |
44 bool(const uint8_t* packet, | 44 bool(const uint8_t* packet, |
45 size_t length, | 45 size_t length, |
46 const PacketOptions& options)); | 46 const PacketOptions& options)); |
47 MOCK_METHOD2(SendRtcp, bool(const uint8_t* packet, size_t length)); | 47 MOCK_METHOD2(SendRtcp, bool(const uint8_t* packet, size_t length)); |
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
129 EXPECT_CALL(mock_h264_video_decoder_, RegisterDecodeCompleteCallback(_)); | 129 EXPECT_CALL(mock_h264_video_decoder_, RegisterDecodeCompleteCallback(_)); |
130 video_receive_stream_->Start(); | 130 video_receive_stream_->Start(); |
131 EXPECT_CALL(mock_h264_video_decoder_, Decode(_, false, _, _, _)); | 131 EXPECT_CALL(mock_h264_video_decoder_, Decode(_, false, _, _, _)); |
132 RtpPacketReceived parsed_packet; | 132 RtpPacketReceived parsed_packet; |
133 ASSERT_TRUE(parsed_packet.Parse(rtppacket.data(), rtppacket.size())); | 133 ASSERT_TRUE(parsed_packet.Parse(rtppacket.data(), rtppacket.size())); |
134 video_receive_stream_->OnRtpPacket(parsed_packet); | 134 video_receive_stream_->OnRtpPacket(parsed_packet); |
135 EXPECT_CALL(mock_h264_video_decoder_, Release()); | 135 EXPECT_CALL(mock_h264_video_decoder_, Release()); |
136 // Make sure the decoder thread had a chance to run. | 136 // Make sure the decoder thread had a chance to run. |
137 init_decode_event_.Wait(kDefaultTimeOutMs); | 137 init_decode_event_.Wait(kDefaultTimeOutMs); |
138 } | 138 } |
| 139 #endif |
| 140 |
139 } // namespace webrtc | 141 } // namespace webrtc |
OLD | NEW |