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 |
11 #include "webrtc/test/gtest.h" | 11 #include "webrtc/test/gtest.h" |
12 #include "webrtc/test/gmock.h" | 12 #include "webrtc/test/gmock.h" |
13 | 13 |
14 #include "webrtc/base/bytebuffer.h" | |
15 #include "webrtc/base/logging.h" | |
16 #include "webrtc/common_video/h264/h264_common.h" | 14 #include "webrtc/common_video/h264/h264_common.h" |
17 #include "webrtc/media/base/mediaconstants.h" | 15 #include "webrtc/media/base/mediaconstants.h" |
18 #include "webrtc/modules/pacing/packet_router.h" | 16 #include "webrtc/modules/pacing/packet_router.h" |
| 17 #include "webrtc/modules/utility/include/process_thread.h" |
| 18 #include "webrtc/modules/video_coding/frame_object.h" |
19 #include "webrtc/modules/video_coding/include/video_coding_defines.h" | 19 #include "webrtc/modules/video_coding/include/video_coding_defines.h" |
20 #include "webrtc/modules/video_coding/frame_object.h" | |
21 #include "webrtc/modules/video_coding/packet.h" | 20 #include "webrtc/modules/video_coding/packet.h" |
22 #include "webrtc/modules/video_coding/rtp_frame_reference_finder.h" | 21 #include "webrtc/modules/video_coding/rtp_frame_reference_finder.h" |
23 #include "webrtc/modules/video_coding/timing.h" | 22 #include "webrtc/modules/video_coding/timing.h" |
24 #include "webrtc/modules/utility/include/process_thread.h" | 23 #include "webrtc/rtc_base/bytebuffer.h" |
| 24 #include "webrtc/rtc_base/logging.h" |
25 #include "webrtc/system_wrappers/include/clock.h" | 25 #include "webrtc/system_wrappers/include/clock.h" |
26 #include "webrtc/system_wrappers/include/field_trial_default.h" | 26 #include "webrtc/system_wrappers/include/field_trial_default.h" |
27 #include "webrtc/test/field_trial.h" | 27 #include "webrtc/test/field_trial.h" |
28 #include "webrtc/video/rtp_video_stream_receiver.h" | 28 #include "webrtc/video/rtp_video_stream_receiver.h" |
29 | 29 |
30 using testing::_; | 30 using testing::_; |
31 | 31 |
32 namespace webrtc { | 32 namespace webrtc { |
33 | 33 |
34 namespace { | 34 namespace { |
(...skipping 303 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
338 rtp_header.type.Video.is_first_packet_in_frame = true; | 338 rtp_header.type.Video.is_first_packet_in_frame = true; |
339 rtp_header.frameType = kVideoFrameDelta; | 339 rtp_header.frameType = kVideoFrameDelta; |
340 rtp_header.type.Video.codec = kRtpVideoGeneric; | 340 rtp_header.type.Video.codec = kRtpVideoGeneric; |
341 | 341 |
342 EXPECT_CALL(mock_key_frame_request_sender_, RequestKeyFrame()); | 342 EXPECT_CALL(mock_key_frame_request_sender_, RequestKeyFrame()); |
343 rtp_video_stream_receiver_->OnReceivedPayloadData(data.data(), data.size(), | 343 rtp_video_stream_receiver_->OnReceivedPayloadData(data.data(), data.size(), |
344 &rtp_header); | 344 &rtp_header); |
345 } | 345 } |
346 | 346 |
347 } // namespace webrtc | 347 } // namespace webrtc |
OLD | NEW |