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 #include <limits> | 11 #include <limits> |
12 | 12 |
| 13 #include "webrtc/modules/rtp_rtcp/source/byte_io.h" |
13 #include "webrtc/test/gtest.h" | 14 #include "webrtc/test/gtest.h" |
14 #include "webrtc/modules/rtp_rtcp/source/byte_io.h" | |
15 | 15 |
16 namespace webrtc { | 16 namespace webrtc { |
17 namespace { | 17 namespace { |
18 | 18 |
19 class ByteIoTest : public ::testing::Test { | 19 class ByteIoTest : public ::testing::Test { |
20 protected: | 20 protected: |
21 ByteIoTest() {} | 21 ByteIoTest() {} |
22 virtual ~ByteIoTest() {} | 22 virtual ~ByteIoTest() {} |
23 | 23 |
24 enum { kAlignments = sizeof(uint64_t) - 1 }; | 24 enum { kAlignments = sizeof(uint64_t) - 1 }; |
(...skipping 238 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
263 EXPECT_EQ(static_cast<uint64_t>(0xBBCCDDEEFF), value); | 263 EXPECT_EQ(static_cast<uint64_t>(0xBBCCDDEEFF), value); |
264 value = ByteReader<uint64_t, 6>::ReadLittleEndian(data); | 264 value = ByteReader<uint64_t, 6>::ReadLittleEndian(data); |
265 EXPECT_EQ(static_cast<uint64_t>(0xAABBCCDDEEFF), value); | 265 EXPECT_EQ(static_cast<uint64_t>(0xAABBCCDDEEFF), value); |
266 value = ByteReader<uint64_t, 7>::ReadLittleEndian(data); | 266 value = ByteReader<uint64_t, 7>::ReadLittleEndian(data); |
267 EXPECT_EQ(static_cast<uint64_t>(0x99AABBCCDDEEFF), value); | 267 EXPECT_EQ(static_cast<uint64_t>(0x99AABBCCDDEEFF), value); |
268 value = ByteReader<uint64_t, 8>::ReadLittleEndian(data); | 268 value = ByteReader<uint64_t, 8>::ReadLittleEndian(data); |
269 EXPECT_EQ(static_cast<uint64_t>(0x8899AABBCCDDEEFF), value); | 269 EXPECT_EQ(static_cast<uint64_t>(0x8899AABBCCDDEEFF), value); |
270 } | 270 } |
271 } // namespace | 271 } // namespace |
272 } // namespace webrtc | 272 } // namespace webrtc |
OLD | NEW |