| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include <stdint.h> |
| 6 |
| 5 #include "media/filters/h264_bitstream_buffer.h" | 7 #include "media/filters/h264_bitstream_buffer.h" |
| 6 #include "testing/gtest/include/gtest/gtest.h" | 8 #include "testing/gtest/include/gtest/gtest.h" |
| 7 | 9 |
| 8 namespace media { | 10 namespace media { |
| 9 | 11 |
| 10 namespace { | 12 namespace { |
| 11 const uint64_t kTestPattern = 0xfedcba0987654321; | 13 const uint64_t kTestPattern = 0xfedcba0987654321; |
| 12 } | 14 } |
| 13 | 15 |
| 14 class H264BitstreamBufferAppendBitsTest | 16 class H264BitstreamBufferAppendBitsTest |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 47 got |= temp; | 49 got |= temp; |
| 48 } | 50 } |
| 49 EXPECT_EQ(got, expected) << std::hex << "0x" << got << " vs 0x" << expected; | 51 EXPECT_EQ(got, expected) << std::hex << "0x" << got << " vs 0x" << expected; |
| 50 } | 52 } |
| 51 | 53 |
| 52 INSTANTIATE_TEST_CASE_P(AppendNumBits, | 54 INSTANTIATE_TEST_CASE_P(AppendNumBits, |
| 53 H264BitstreamBufferAppendBitsTest, | 55 H264BitstreamBufferAppendBitsTest, |
| 54 ::testing::Range(static_cast<uint64_t>(1), | 56 ::testing::Range(static_cast<uint64_t>(1), |
| 55 static_cast<uint64_t>(65))); | 57 static_cast<uint64_t>(65))); |
| 56 } // namespace media | 58 } // namespace media |
| OLD | NEW |