Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(55)

Side by Side Diff: media/filters/h264_bitstream_buffer_unittest.cc

Issue 1542013004: Switch to standard integer types in media/, take 2. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: more stddef Created 5 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « media/filters/h264_bitstream_buffer.h ('k') | media/filters/h264_parser.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « media/filters/h264_bitstream_buffer.h ('k') | media/filters/h264_parser.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698