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

Unified Diff: media/filters/audio_renderer_impl_unittest.cc

Issue 17315021: Refactored DataBuffer to use unix_hacker style methods. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Inlined getters and setters on DataBuffer Created 7 years, 6 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/audio_renderer_impl.cc ('k') | media/filters/decrypting_audio_decoder.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/filters/audio_renderer_impl_unittest.cc
diff --git a/media/filters/audio_renderer_impl_unittest.cc b/media/filters/audio_renderer_impl_unittest.cc
index d9c8f3d757876c8809b4cdab75ff00d61ef7ec2a..32980627193004bc04de59693c626c13409ba43e 100644
--- a/media/filters/audio_renderer_impl_unittest.cc
+++ b/media/filters/audio_renderer_impl_unittest.cc
@@ -194,11 +194,11 @@ class AudioRendererImplTest : public ::testing::Test {
CHECK(!read_cb_.is_null());
scoped_refptr<DataBuffer> buffer = new DataBuffer(size);
- buffer->SetDataSize(size);
- memset(buffer->GetWritableData(), kPlayingAudio, buffer->GetDataSize());
- buffer->SetTimestamp(next_timestamp_->GetTimestamp());
- buffer->SetDuration(next_timestamp_->GetDuration(buffer->GetDataSize()));
- next_timestamp_->AddBytes(buffer->GetDataSize());
+ buffer->set_data_size(size);
+ memset(buffer->writable_data(), kPlayingAudio, buffer->data_size());
+ buffer->set_timestamp(next_timestamp_->GetTimestamp());
+ buffer->set_duration(next_timestamp_->GetDuration(buffer->data_size()));
+ next_timestamp_->AddBytes(buffer->data_size());
DeliverBuffer(AudioDecoder::kOk, buffer);
}
« no previous file with comments | « media/filters/audio_renderer_impl.cc ('k') | media/filters/decrypting_audio_decoder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698