OLD | NEW |
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 |
11 /* | 11 /* |
12 * This file includes unit tests for the RTPSender. | 12 * This file includes unit tests for the RTPSender. |
13 */ | 13 */ |
14 | 14 |
15 #include "testing/gmock/include/gmock/gmock.h" | 15 #include "testing/gmock/include/gmock/gmock.h" |
16 #include "testing/gtest/include/gtest/gtest.h" | 16 #include "testing/gtest/include/gtest/gtest.h" |
17 | 17 |
18 #include "webrtc/base/buffer.h" | 18 #include "webrtc/base/buffer.h" |
19 #include "webrtc/base/scoped_ptr.h" | 19 #include "webrtc/base/scoped_ptr.h" |
20 #include "webrtc/modules/rtp_rtcp/interface/rtp_cvo.h" | 20 #include "webrtc/modules/rtp_rtcp/include/rtp_cvo.h" |
21 #include "webrtc/modules/rtp_rtcp/interface/rtp_header_parser.h" | 21 #include "webrtc/modules/rtp_rtcp/include/rtp_header_parser.h" |
22 #include "webrtc/modules/rtp_rtcp/interface/rtp_rtcp_defines.h" | 22 #include "webrtc/modules/rtp_rtcp/include/rtp_rtcp_defines.h" |
23 #include "webrtc/modules/rtp_rtcp/source/rtp_format_video_generic.h" | 23 #include "webrtc/modules/rtp_rtcp/source/rtp_format_video_generic.h" |
24 #include "webrtc/modules/rtp_rtcp/source/rtp_header_extension.h" | 24 #include "webrtc/modules/rtp_rtcp/source/rtp_header_extension.h" |
25 #include "webrtc/modules/rtp_rtcp/source/rtp_sender.h" | 25 #include "webrtc/modules/rtp_rtcp/source/rtp_sender.h" |
26 #include "webrtc/modules/rtp_rtcp/source/rtp_sender_video.h" | 26 #include "webrtc/modules/rtp_rtcp/source/rtp_sender_video.h" |
27 #include "webrtc/system_wrappers/include/stl_util.h" | 27 #include "webrtc/system_wrappers/include/stl_util.h" |
28 #include "webrtc/modules/rtp_rtcp/source/rtp_utility.h" | 28 #include "webrtc/modules/rtp_rtcp/source/rtp_utility.h" |
29 #include "webrtc/test/mock_transport.h" | 29 #include "webrtc/test/mock_transport.h" |
30 #include "webrtc/typedefs.h" | 30 #include "webrtc/typedefs.h" |
31 | 31 |
32 namespace webrtc { | 32 namespace webrtc { |
(...skipping 1387 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1420 reinterpret_cast<uint8_t*>(transport_.sent_packets_[0]->data()), | 1420 reinterpret_cast<uint8_t*>(transport_.sent_packets_[0]->data()), |
1421 transport_.sent_packets_[0]->size(), true, &map, kSeqNum, hdr.rotation); | 1421 transport_.sent_packets_[0]->size(), true, &map, kSeqNum, hdr.rotation); |
1422 | 1422 |
1423 // Verify that this packet does have CVO byte. | 1423 // Verify that this packet does have CVO byte. |
1424 VerifyCVOPacket( | 1424 VerifyCVOPacket( |
1425 reinterpret_cast<uint8_t*>(transport_.sent_packets_[1]->data()), | 1425 reinterpret_cast<uint8_t*>(transport_.sent_packets_[1]->data()), |
1426 transport_.sent_packets_[1]->size(), true, &map, kSeqNum + 1, | 1426 transport_.sent_packets_[1]->size(), true, &map, kSeqNum + 1, |
1427 hdr.rotation); | 1427 hdr.rotation); |
1428 } | 1428 } |
1429 } // namespace webrtc | 1429 } // namespace webrtc |
OLD | NEW |