| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (c) 2014 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2014 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 // Unit tests for test Packet class. | 11 // Unit tests for test Packet class. |
| 12 | 12 |
| 13 #include "webrtc/modules/audio_coding/neteq/tools/packet.h" | 13 #include "webrtc/modules/audio_coding/neteq/tools/packet.h" |
| 14 | 14 |
| 15 #include "testing/gtest/include/gtest/gtest.h" | 15 #include "webrtc/test/gtest.h" |
| 16 | 16 |
| 17 namespace webrtc { | 17 namespace webrtc { |
| 18 namespace test { | 18 namespace test { |
| 19 | 19 |
| 20 namespace { | 20 namespace { |
| 21 const int kHeaderLengthBytes = 12; | 21 const int kHeaderLengthBytes = 12; |
| 22 | 22 |
| 23 void MakeRtpHeader(int payload_type, | 23 void MakeRtpHeader(int payload_type, |
| 24 int seq_number, | 24 int seq_number, |
| 25 uint32_t timestamp, | 25 uint32_t timestamp, |
| (...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 193 } | 193 } |
| 194 EXPECT_EQ(kSsrc, red_block->ssrc); | 194 EXPECT_EQ(kSsrc, red_block->ssrc); |
| 195 EXPECT_EQ(0, red_block->numCSRCs); | 195 EXPECT_EQ(0, red_block->numCSRCs); |
| 196 ++block_index; | 196 ++block_index; |
| 197 } | 197 } |
| 198 Packet::DeleteRedHeaders(&red_headers); | 198 Packet::DeleteRedHeaders(&red_headers); |
| 199 } | 199 } |
| 200 | 200 |
| 201 } // namespace test | 201 } // namespace test |
| 202 } // namespace webrtc | 202 } // namespace webrtc |
| OLD | NEW |