| 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 /* | |
| 13 * This file includes unit tests for the RTCPSender. | |
| 14 */ | |
| 15 | |
| 16 #include "testing/gmock/include/gmock/gmock.h" | 11 #include "testing/gmock/include/gmock/gmock.h" |
| 17 #include "testing/gtest/include/gtest/gtest.h" | 12 #include "testing/gtest/include/gtest/gtest.h" |
| 18 | 13 |
| 19 #include "webrtc/common_types.h" | 14 #include "webrtc/common_types.h" |
| 20 #include "webrtc/modules/rtp_rtcp/source/rtcp_sender.h" | 15 #include "webrtc/modules/rtp_rtcp/source/rtcp_sender.h" |
| 21 #include "webrtc/modules/rtp_rtcp/source/rtcp_utility.h" | 16 #include "webrtc/modules/rtp_rtcp/source/rtcp_utility.h" |
| 22 #include "webrtc/modules/rtp_rtcp/source/rtp_rtcp_impl.h" | 17 #include "webrtc/modules/rtp_rtcp/source/rtp_rtcp_impl.h" |
| 23 #include "webrtc/test/mock_transport.h" | 18 #include "webrtc/test/mock_transport.h" |
| 24 #include "webrtc/test/rtcp_packet_parser.h" | 19 #include "webrtc/test/rtcp_packet_parser.h" |
| 25 | 20 |
| (...skipping 746 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 772 rtcp_sender_->SetRemoteSSRC(kRemoteSsrc); | 767 rtcp_sender_->SetRemoteSSRC(kRemoteSsrc); |
| 773 | 768 |
| 774 // Set up XR VoIP metric to be included with BYE | 769 // Set up XR VoIP metric to be included with BYE |
| 775 rtcp_sender_->SetRTCPStatus(RtcpMode::kCompound); | 770 rtcp_sender_->SetRTCPStatus(RtcpMode::kCompound); |
| 776 RTCPVoIPMetric metric; | 771 RTCPVoIPMetric metric; |
| 777 EXPECT_EQ(0, rtcp_sender_->SetRTCPVoIPMetrics(&metric)); | 772 EXPECT_EQ(0, rtcp_sender_->SetRTCPVoIPMetrics(&metric)); |
| 778 EXPECT_EQ(0, rtcp_sender_->SendRTCP(feedback_state(), kRtcpBye)); | 773 EXPECT_EQ(0, rtcp_sender_->SendRTCP(feedback_state(), kRtcpBye)); |
| 779 } | 774 } |
| 780 | 775 |
| 781 } // namespace webrtc | 776 } // namespace webrtc |
| OLD | NEW |