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

Unified Diff: media/filters/video_frame_stream_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, 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
Index: media/filters/video_frame_stream_unittest.cc
diff --git a/media/filters/video_frame_stream_unittest.cc b/media/filters/video_frame_stream_unittest.cc
index 92e7cfaa0fe318415834a513771cb4c29af031a9..34d0929c1d8ce129bf21de8b51b391f1f7334a50 100644
--- a/media/filters/video_frame_stream_unittest.cc
+++ b/media/filters/video_frame_stream_unittest.cc
@@ -75,10 +75,10 @@ class VideoFrameStreamTest : public testing::TestWithParam<bool> {
const scoped_refptr<DecoderBuffer>& encrypted,
const Decryptor::DecryptCB& decrypt_cb) {
DCHECK_EQ(stream_type, Decryptor::kVideo);
- scoped_refptr<DecoderBuffer> decrypted = DecoderBuffer::CopyFrom(
- encrypted->GetData(), encrypted->GetDataSize());
- decrypted->SetTimestamp(encrypted->GetTimestamp());
- decrypted->SetDuration(encrypted->GetDuration());
+ scoped_refptr<DecoderBuffer> decrypted = DecoderBuffer::copy_from(
+ encrypted->get_data(), encrypted->get_data_size());
+ decrypted->set_timestamp(encrypted->get_timestamp());
+ decrypted->set_duration(encrypted->get_duration());
decrypt_cb.Run(Decryptor::kSuccess, decrypted);
}

Powered by Google App Engine
This is Rietveld 408576698