| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (c) 2015 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2015 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/modules/rtp_rtcp/source/rtcp_packet/voip_metric.h" | 11 #include "webrtc/modules/rtp_rtcp/source/rtcp_packet/voip_metric.h" |
| 12 | 12 |
| 13 #include "testing/gtest/include/gtest/gtest.h" | 13 #include "webrtc/test/gtest.h" |
| 14 | 14 |
| 15 namespace webrtc { | 15 namespace webrtc { |
| 16 namespace rtcp { | 16 namespace rtcp { |
| 17 namespace { | 17 namespace { |
| 18 | 18 |
| 19 const uint32_t kRemoteSsrc = 0x23456789; | 19 const uint32_t kRemoteSsrc = 0x23456789; |
| 20 const uint8_t kBlock[] = {0x07, 0x00, 0x00, 0x08, 0x23, 0x45, 0x67, 0x89, | 20 const uint8_t kBlock[] = {0x07, 0x00, 0x00, 0x08, 0x23, 0x45, 0x67, 0x89, |
| 21 0x01, 0x02, 0x03, 0x04, 0x11, 0x12, 0x22, 0x23, | 21 0x01, 0x02, 0x03, 0x04, 0x11, 0x12, 0x22, 0x23, |
| 22 0x33, 0x34, 0x44, 0x45, 0x05, 0x06, 0x07, 0x08, | 22 0x33, 0x34, 0x44, 0x45, 0x05, 0x06, 0x07, 0x08, |
| 23 0x09, 0x0a, 0x0b, 0x0c, 0x0d, 0x00, 0x55, 0x56, | 23 0x09, 0x0a, 0x0b, 0x0c, 0x0d, 0x00, 0x55, 0x56, |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 84 EXPECT_EQ(12, parsed.voip_metric().MOSCQ); | 84 EXPECT_EQ(12, parsed.voip_metric().MOSCQ); |
| 85 EXPECT_EQ(13, parsed.voip_metric().RXconfig); | 85 EXPECT_EQ(13, parsed.voip_metric().RXconfig); |
| 86 EXPECT_EQ(0x5556, parsed.voip_metric().JBnominal); | 86 EXPECT_EQ(0x5556, parsed.voip_metric().JBnominal); |
| 87 EXPECT_EQ(0x6667, parsed.voip_metric().JBmax); | 87 EXPECT_EQ(0x6667, parsed.voip_metric().JBmax); |
| 88 EXPECT_EQ(0x7778, parsed.voip_metric().JBabsMax); | 88 EXPECT_EQ(0x7778, parsed.voip_metric().JBabsMax); |
| 89 } | 89 } |
| 90 | 90 |
| 91 } // namespace | 91 } // namespace |
| 92 } // namespace rtcp | 92 } // namespace rtcp |
| 93 } // namespace webrtc | 93 } // namespace webrtc |
| OLD | NEW |