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

Unified Diff: media/base/decoder_buffer_unittest.cc

Issue 1906423005: Replace scoped_ptr with std::unique_ptr in //media/base. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: scopedptr-media-base: . Created 4 years, 8 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/base/decoder_buffer_unittest.cc
diff --git a/media/base/decoder_buffer_unittest.cc b/media/base/decoder_buffer_unittest.cc
index 878c0c36ed3922a16d9f2b7c9a59e61759648192..eee2aba8b8b8f94892153194017c55b850ba3a46 100644
--- a/media/base/decoder_buffer_unittest.cc
+++ b/media/base/decoder_buffer_unittest.cc
@@ -2,12 +2,14 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
+#include "media/base/decoder_buffer.h"
+
#include <stdint.h>
#include "base/macros.h"
+#include "base/memory/ptr_util.h"
#include "base/strings/string_util.h"
#include "build/build_config.h"
-#include "media/base/decoder_buffer.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace media {
@@ -116,7 +118,7 @@ TEST(DecoderBufferTest, DecryptConfig) {
DecryptConfig decrypt_config(kKeyId, kIv, subsamples);
buffer->set_decrypt_config(
- make_scoped_ptr(new DecryptConfig(kKeyId, kIv, subsamples)));
+ base::WrapUnique(new DecryptConfig(kKeyId, kIv, subsamples)));
EXPECT_TRUE(buffer->decrypt_config());
EXPECT_TRUE(buffer->decrypt_config()->Matches(decrypt_config));

Powered by Google App Engine
This is Rietveld 408576698