| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2012 The WebRTC Project Authors. All rights reserved. | 2 * Copyright 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 |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 66 buf[2] = 0x45u; | 66 buf[2] = 0x45u; |
| 67 buf[3] = 0x67u; | 67 buf[3] = 0x67u; |
| 68 buf[4] = 0x89u; | 68 buf[4] = 0x89u; |
| 69 buf[5] = 0xabu; | 69 buf[5] = 0xabu; |
| 70 buf[6] = 0xcdu; | 70 buf[6] = 0xcdu; |
| 71 buf[7] = 0xefu; | 71 buf[7] = 0xefu; |
| 72 EXPECT_EQ(0x01u, Get8(buf, 0)); | 72 EXPECT_EQ(0x01u, Get8(buf, 0)); |
| 73 EXPECT_EQ(0x23u, Get8(buf, 1)); | 73 EXPECT_EQ(0x23u, Get8(buf, 1)); |
| 74 EXPECT_EQ(0x0123u, GetBE16(buf)); | 74 EXPECT_EQ(0x0123u, GetBE16(buf)); |
| 75 EXPECT_EQ(0x2301u, GetLE16(buf)); | 75 EXPECT_EQ(0x2301u, GetLE16(buf)); |
| 76 EXPECT_EQ(0x012u, GetBE24(buf)); |
| 76 EXPECT_EQ(0x01234567u, GetBE32(buf)); | 77 EXPECT_EQ(0x01234567u, GetBE32(buf)); |
| 77 EXPECT_EQ(0x67452301u, GetLE32(buf)); | 78 EXPECT_EQ(0x67452301u, GetLE32(buf)); |
| 78 EXPECT_EQ(UINT64_C(0x0123456789abcdef), GetBE64(buf)); | 79 EXPECT_EQ(UINT64_C(0x0123456789abcdef), GetBE64(buf)); |
| 79 EXPECT_EQ(UINT64_C(0xefcdab8967452301), GetLE64(buf)); | 80 EXPECT_EQ(UINT64_C(0xefcdab8967452301), GetLE64(buf)); |
| 80 } | 81 } |
| 81 | 82 |
| 82 } // namespace rtc | 83 } // namespace rtc |
| 83 | 84 |
| OLD | NEW |