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

Unified Diff: media/formats/mp4/mp4_stream_parser_unittest.cc

Issue 1534273002: Switch to standard integer types in media/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: more 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 side-by-side diff with in-line comments
Download patch
Index: media/formats/mp4/mp4_stream_parser_unittest.cc
diff --git a/media/formats/mp4/mp4_stream_parser_unittest.cc b/media/formats/mp4/mp4_stream_parser_unittest.cc
index 60e41659fbafb44175dab39aa5fcbfe30ecfb4f0..9d3d169928f07abef11527e76f7ba8f19441d483 100644
--- a/media/formats/mp4/mp4_stream_parser_unittest.cc
+++ b/media/formats/mp4/mp4_stream_parser_unittest.cc
@@ -62,13 +62,15 @@ class MP4StreamParserTest : public testing::Test {
VideoDecoderConfig video_decoder_config_;
DecodeTimestamp lower_bound_;
- bool AppendData(const uint8* data, size_t length) {
+ bool AppendData(const uint8_t* data, size_t length) {
return parser_->Parse(data, length);
}
- bool AppendDataInPieces(const uint8* data, size_t length, size_t piece_size) {
- const uint8* start = data;
- const uint8* end = data + length;
+ bool AppendDataInPieces(const uint8_t* data,
+ size_t length,
+ size_t piece_size) {
+ const uint8_t* start = data;
+ const uint8_t* end = data + length;
while (start < end) {
size_t append_size = std::min(piece_size,
static_cast<size_t>(end - start));
@@ -140,7 +142,7 @@ class MP4StreamParserTest : public testing::Test {
return true;
}
- void KeyNeededF(EmeInitDataType type, const std::vector<uint8>& init_data) {
+ void KeyNeededF(EmeInitDataType type, const std::vector<uint8_t>& init_data) {
DVLOG(1) << "KeyNeededF: " << init_data.size();
EXPECT_EQ(EmeInitDataType::CENC, type);
EXPECT_FALSE(init_data.empty());

Powered by Google App Engine
This is Rietveld 408576698