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

Side by Side Diff: media/formats/mp2t/timestamp_unroller_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 4 years, 12 months 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/formats/mp2t/mp2t_stream_parser_unittest.cc ('k') | media/formats/mp2t/ts_section.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 <stddef.h>
5 #include <stdint.h> 6 #include <stdint.h>
6 #include <vector> 7 #include <vector>
7 8
8 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "base/macros.h"
9 #include "base/test/perf_test_suite.h" 11 #include "base/test/perf_test_suite.h"
10 #include "media/formats/mp2t/timestamp_unroller.h" 12 #include "media/formats/mp2t/timestamp_unroller.h"
11 #include "testing/gtest/include/gtest/gtest.h" 13 #include "testing/gtest/include/gtest/gtest.h"
12 14
13 namespace media { 15 namespace media {
14 namespace mp2t { 16 namespace mp2t {
15 17
16 static std::vector<int64_t> TruncateTimestamps( 18 static std::vector<int64_t> TruncateTimestamps(
17 const std::vector<int64_t>& timestamps) { 19 const std::vector<int64_t>& timestamps) {
18 const int nbits = 33; 20 const int nbits = 33;
(...skipping 30 matching lines...) Expand all
49 INT64_C(0x00000003ffffff44), // + 0xaaaaaaab 51 INT64_C(0x00000003ffffff44), // + 0xaaaaaaab
50 }; 52 };
51 53
52 std::vector<int64_t> timestamps_vector(timestamps, 54 std::vector<int64_t> timestamps_vector(timestamps,
53 timestamps + arraysize(timestamps)); 55 timestamps + arraysize(timestamps));
54 RunUnrollTest(timestamps_vector); 56 RunUnrollTest(timestamps_vector);
55 } 57 }
56 58
57 } // namespace mp2t 59 } // namespace mp2t
58 } // namespace media 60 } // namespace media
OLDNEW
« no previous file with comments | « media/formats/mp2t/mp2t_stream_parser_unittest.cc ('k') | media/formats/mp2t/ts_section.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698