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

Unified Diff: media/formats/mp2t/mp2t_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/mp2t/mp2t_stream_parser_unittest.cc
diff --git a/media/formats/mp2t/mp2t_stream_parser_unittest.cc b/media/formats/mp2t/mp2t_stream_parser_unittest.cc
index 6663a054814262dca5aa63809798656d3f6328db..9bc2b3f7d2da43a7b7538aad2c9fdbda97fcf86c 100644
--- a/media/formats/mp2t/mp2t_stream_parser_unittest.cc
+++ b/media/formats/mp2t/mp2t_stream_parser_unittest.cc
@@ -84,13 +84,15 @@ class Mp2tStreamParserTest : public testing::Test {
video_max_dts_ = kNoDecodeTimestamp();
}
- 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));
@@ -171,7 +173,8 @@ class Mp2tStreamParserTest : public testing::Test {
return true;
}
- void OnKeyNeeded(EmeInitDataType type, const std::vector<uint8>& init_data) {
+ void OnKeyNeeded(EmeInitDataType type,
+ const std::vector<uint8_t>& init_data) {
NOTREACHED() << "OnKeyNeeded not expected in the Mpeg2 TS parser";
}

Powered by Google App Engine
This is Rietveld 408576698