| 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 /* | |
| 12 * This file includes unit tests for the RTPSender. | |
| 13 */ | |
| 14 | |
| 15 #include <list> | 11 #include <list> |
| 16 #include <vector> | 12 #include <vector> |
| 17 | 13 |
| 18 #include "testing/gmock/include/gmock/gmock.h" | 14 #include "testing/gmock/include/gmock/gmock.h" |
| 19 #include "testing/gtest/include/gtest/gtest.h" | 15 #include "testing/gtest/include/gtest/gtest.h" |
| 20 #include "webrtc/base/buffer.h" | 16 #include "webrtc/base/buffer.h" |
| 21 #include "webrtc/base/scoped_ptr.h" | 17 #include "webrtc/base/scoped_ptr.h" |
| 22 #include "webrtc/call/mock/mock_rtc_event_log.h" | 18 #include "webrtc/call/mock/mock_rtc_event_log.h" |
| 23 #include "webrtc/modules/rtp_rtcp/include/rtp_cvo.h" | 19 #include "webrtc/modules/rtp_rtcp/include/rtp_cvo.h" |
| 24 #include "webrtc/modules/rtp_rtcp/include/rtp_header_parser.h" | 20 #include "webrtc/modules/rtp_rtcp/include/rtp_header_parser.h" |
| (...skipping 1501 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1526 reinterpret_cast<uint8_t*>(transport_.sent_packets_[0]->data()), | 1522 reinterpret_cast<uint8_t*>(transport_.sent_packets_[0]->data()), |
| 1527 transport_.sent_packets_[0]->size(), true, &map, kSeqNum, hdr.rotation); | 1523 transport_.sent_packets_[0]->size(), true, &map, kSeqNum, hdr.rotation); |
| 1528 | 1524 |
| 1529 // Verify that this packet does have CVO byte. | 1525 // Verify that this packet does have CVO byte. |
| 1530 VerifyCVOPacket( | 1526 VerifyCVOPacket( |
| 1531 reinterpret_cast<uint8_t*>(transport_.sent_packets_[1]->data()), | 1527 reinterpret_cast<uint8_t*>(transport_.sent_packets_[1]->data()), |
| 1532 transport_.sent_packets_[1]->size(), true, &map, kSeqNum + 1, | 1528 transport_.sent_packets_[1]->size(), true, &map, kSeqNum + 1, |
| 1533 hdr.rotation); | 1529 hdr.rotation); |
| 1534 } | 1530 } |
| 1535 } // namespace webrtc | 1531 } // namespace webrtc |
| OLD | NEW |