| 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 /* | 12 /* |
| 13 * This file includes unit tests for the RtpHeaderExtensionMap. | 13 * This file includes unit tests for the RtpHeaderExtensionMap. |
| 14 */ | 14 */ |
| 15 | 15 |
| 16 #include "testing/gtest/include/gtest/gtest.h" | 16 #include "testing/gtest/include/gtest/gtest.h" |
| 17 | 17 |
| 18 #include "webrtc/modules/rtp_rtcp/interface/rtp_rtcp_defines.h" | 18 #include "webrtc/modules/rtp_rtcp/include/rtp_rtcp_defines.h" |
| 19 #include "webrtc/modules/rtp_rtcp/source/rtp_header_extension.h" | 19 #include "webrtc/modules/rtp_rtcp/source/rtp_header_extension.h" |
| 20 #include "webrtc/typedefs.h" | 20 #include "webrtc/typedefs.h" |
| 21 | 21 |
| 22 namespace webrtc { | 22 namespace webrtc { |
| 23 | 23 |
| 24 class RtpHeaderExtensionTest : public ::testing::Test { | 24 class RtpHeaderExtensionTest : public ::testing::Test { |
| 25 protected: | 25 protected: |
| 26 RtpHeaderExtensionTest() {} | 26 RtpHeaderExtensionTest() {} |
| 27 ~RtpHeaderExtensionTest() {} | 27 ~RtpHeaderExtensionTest() {} |
| 28 | 28 |
| (...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 130 EXPECT_EQ(kRtpExtensionTransmissionTimeOffset, mapOut.First()); | 130 EXPECT_EQ(kRtpExtensionTransmissionTimeOffset, mapOut.First()); |
| 131 } | 131 } |
| 132 | 132 |
| 133 TEST_F(RtpHeaderExtensionTest, Erase) { | 133 TEST_F(RtpHeaderExtensionTest, Erase) { |
| 134 EXPECT_EQ(0, map_.Register(kRtpExtensionTransmissionTimeOffset, kId)); | 134 EXPECT_EQ(0, map_.Register(kRtpExtensionTransmissionTimeOffset, kId)); |
| 135 EXPECT_EQ(1, map_.Size()); | 135 EXPECT_EQ(1, map_.Size()); |
| 136 map_.Erase(); | 136 map_.Erase(); |
| 137 EXPECT_EQ(0, map_.Size()); | 137 EXPECT_EQ(0, map_.Size()); |
| 138 } | 138 } |
| 139 } // namespace webrtc | 139 } // namespace webrtc |
| OLD | NEW |