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

Unified Diff: media/muxers/webm_muxer_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/muxers/webm_muxer.cc ('k') | media/renderers/default_renderer_factory.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/muxers/webm_muxer_unittest.cc
diff --git a/media/muxers/webm_muxer_unittest.cc b/media/muxers/webm_muxer_unittest.cc
index d71e0b9ff252d7783ac11d46bba5c5b6447058d9..75a698a87224f5100d638c85187eb01abbb1214a 100644
--- a/media/muxers/webm_muxer_unittest.cc
+++ b/media/muxers/webm_muxer_unittest.cc
@@ -158,7 +158,7 @@ TEST_P(WebmMuxerTest, OnEncodedAudioTwoFrames) {
.WillRepeatedly(
WithArgs<0>(Invoke(this, &WebmMuxerTest::SaveEncodedDataLen)));
webm_muxer_.OnEncodedAudio(audio_params,
- base::WrapUnique(new std::string(encoded_data)),
+ base::MakeUnique<std::string>(encoded_data),
base::TimeTicks::Now());
// First time around WriteCallback() is pinged a number of times to write the
@@ -174,7 +174,7 @@ TEST_P(WebmMuxerTest, OnEncodedAudioTwoFrames) {
.WillRepeatedly(
WithArgs<0>(Invoke(this, &WebmMuxerTest::SaveEncodedDataLen)));
webm_muxer_.OnEncodedAudio(audio_params,
- base::WrapUnique(new std::string(encoded_data)),
+ base::MakeUnique<std::string>(encoded_data),
base::TimeTicks::Now());
// The second time around the callbacks should include a SimpleBlock header,
« no previous file with comments | « media/muxers/webm_muxer.cc ('k') | media/renderers/default_renderer_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698