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

Unified Diff: media/base/test_helpers.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/base/test_data_util.cc ('k') | media/crypto/aes_decryptor.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/base/test_helpers.cc
diff --git a/media/base/test_helpers.cc b/media/base/test_helpers.cc
index 333624b60b82c65c0b41fe5bd25abf76f7dbb599..4e1598456f184c4b68dfae61629ea92624b422af 100644
--- a/media/base/test_helpers.cc
+++ b/media/base/test_helpers.cc
@@ -258,8 +258,8 @@ scoped_refptr<DecoderBuffer> CreateFakeVideoBufferForTest(
scoped_refptr<DecoderBuffer> buffer = DecoderBuffer::CopyFrom(
static_cast<const uint8*>(pickle.data()),
static_cast<int>(pickle.size()));
- buffer->SetTimestamp(timestamp);
- buffer->SetDuration(duration);
+ buffer->set_timestamp(timestamp);
+ buffer->set_duration(duration);
return buffer;
}
@@ -268,8 +268,8 @@ bool VerifyFakeVideoBufferForTest(
const scoped_refptr<DecoderBuffer>& buffer,
const VideoDecoderConfig& config) {
// Check if the input |buffer| matches the |config|.
- PickleIterator pickle(Pickle(reinterpret_cast<const char*>(buffer->GetData()),
- buffer->GetDataSize()));
+ PickleIterator pickle(Pickle(reinterpret_cast<const char*>(buffer->data()),
+ buffer->data_size()));
std::string header;
int width = 0;
int height = 0;
« no previous file with comments | « media/base/test_data_util.cc ('k') | media/crypto/aes_decryptor.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698