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

Unified Diff: media/base/test_helpers.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/base/test_helpers.cc
diff --git a/media/base/test_helpers.cc b/media/base/test_helpers.cc
index 84074bfe80e3d190e89707833741fe81646a919f..c4964b1c8cb29f634ee06352f19904759b798723 100644
--- a/media/base/test_helpers.cc
+++ b/media/base/test_helpers.cc
@@ -216,9 +216,9 @@ scoped_refptr<AudioBuffer> MakeAudioBuffer(SampleFormat format,
type increment, \
size_t frames, \
base::TimeDelta start_time)
-DEFINE_MAKE_AUDIO_BUFFER_INSTANCE(uint8);
-DEFINE_MAKE_AUDIO_BUFFER_INSTANCE(int16);
-DEFINE_MAKE_AUDIO_BUFFER_INSTANCE(int32);
+DEFINE_MAKE_AUDIO_BUFFER_INSTANCE(uint8_t);
+DEFINE_MAKE_AUDIO_BUFFER_INSTANCE(int16_t);
+DEFINE_MAKE_AUDIO_BUFFER_INSTANCE(int32_t);
DEFINE_MAKE_AUDIO_BUFFER_INSTANCE(float);
static const char kFakeVideoBufferHeader[] = "FakeVideoBufferForTest";
@@ -232,9 +232,9 @@ scoped_refptr<DecoderBuffer> CreateFakeVideoBufferForTest(
pickle.WriteInt(config.coded_size().height());
pickle.WriteInt64(timestamp.InMilliseconds());
- scoped_refptr<DecoderBuffer> buffer = DecoderBuffer::CopyFrom(
- static_cast<const uint8*>(pickle.data()),
- static_cast<int>(pickle.size()));
+ scoped_refptr<DecoderBuffer> buffer =
+ DecoderBuffer::CopyFrom(static_cast<const uint8_t*>(pickle.data()),
+ static_cast<int>(pickle.size()));
buffer->set_timestamp(timestamp);
buffer->set_duration(duration);
buffer->set_is_key_frame(true);

Powered by Google App Engine
This is Rietveld 408576698