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

Unified Diff: media/filters/ffmpeg_audio_decoder_unittest.cc

Issue 17408005: Refactored DecoderBuffer to use unix_hacker_style naming. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@localrefactor
Patch Set: Created 7 years, 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « media/filters/ffmpeg_audio_decoder.cc ('k') | media/filters/ffmpeg_demuxer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/filters/ffmpeg_audio_decoder_unittest.cc
diff --git a/media/filters/ffmpeg_audio_decoder_unittest.cc b/media/filters/ffmpeg_audio_decoder_unittest.cc
index 8957b776178fb0e66827e0e6e6ead4d413b9165b..e70da0e2b821730cd2cc2c41f3011dea2a35751c 100644
--- a/media/filters/ffmpeg_audio_decoder_unittest.cc
+++ b/media/filters/ffmpeg_audio_decoder_unittest.cc
@@ -41,12 +41,12 @@ class FFmpegAudioDecoderTest : public testing::Test {
ReadTestDataFile(base::StringPrintf("vorbis-packet-%d", i));
if (i < 3) {
- buffer->SetTimestamp(base::TimeDelta());
+ buffer->set_timestamp(base::TimeDelta());
} else {
- buffer->SetTimestamp(base::TimeDelta::FromMicroseconds(2902));
+ buffer->set_timestamp(base::TimeDelta::FromMicroseconds(2902));
}
- buffer->SetDuration(base::TimeDelta());
+ buffer->set_duration(base::TimeDelta());
encoded_audio_.push_back(buffer);
}
@@ -61,8 +61,8 @@ class FFmpegAudioDecoderTest : public testing::Test {
kSampleFormatPlanarF32,
CHANNEL_LAYOUT_STEREO,
44100,
- vorbis_extradata_->GetData(),
- vorbis_extradata_->GetDataSize(),
+ vorbis_extradata_->data(),
+ vorbis_extradata_->data_size(),
false); // Not encrypted.
demuxer_->set_audio_decoder_config(config);
decoder_->Initialize(demuxer_.get(),
« no previous file with comments | « media/filters/ffmpeg_audio_decoder.cc ('k') | media/filters/ffmpeg_demuxer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698