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

Unified Diff: media/base/decoder_buffer_unittest.cc

Issue 2253943004: Re-write many calls to WrapUnique() with MakeUnique() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 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/android/media_codec_player_unittest.cc ('k') | media/base/fake_demuxer_stream.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/base/decoder_buffer_unittest.cc
diff --git a/media/base/decoder_buffer_unittest.cc b/media/base/decoder_buffer_unittest.cc
index eee2aba8b8b8f94892153194017c55b850ba3a46..a9a57df3661645f143a8e9f0b27fc0c364639457 100644
--- a/media/base/decoder_buffer_unittest.cc
+++ b/media/base/decoder_buffer_unittest.cc
@@ -118,7 +118,7 @@ TEST(DecoderBufferTest, DecryptConfig) {
DecryptConfig decrypt_config(kKeyId, kIv, subsamples);
buffer->set_decrypt_config(
- base::WrapUnique(new DecryptConfig(kKeyId, kIv, subsamples)));
+ base::MakeUnique<DecryptConfig>(kKeyId, kIv, subsamples));
EXPECT_TRUE(buffer->decrypt_config());
EXPECT_TRUE(buffer->decrypt_config()->Matches(decrypt_config));
« no previous file with comments | « media/base/android/media_codec_player_unittest.cc ('k') | media/base/fake_demuxer_stream.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698