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

Unified Diff: media/formats/mpeg/mpeg1_audio_stream_parser_unittest.cc

Issue 1874413003: Convert media/formats to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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/formats/mpeg/mpeg1_audio_stream_parser_unittest.cc
diff --git a/media/formats/mpeg/mpeg1_audio_stream_parser_unittest.cc b/media/formats/mpeg/mpeg1_audio_stream_parser_unittest.cc
index 50a0c1377e5a4cc6aafa800c4d146dfc301c98b9..8f2c879a59ea2346819e96086ee28fa80cd6e8ea 100644
--- a/media/formats/mpeg/mpeg1_audio_stream_parser_unittest.cc
+++ b/media/formats/mpeg/mpeg1_audio_stream_parser_unittest.cc
@@ -2,11 +2,15 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
+#include "media/formats/mpeg/mpeg1_audio_stream_parser.h"
+
#include <stdint.h>
+#include <memory>
+
+#include "base/memory/ptr_util.h"
#include "media/base/test_data_util.h"
#include "media/formats/common/stream_parser_test_base.h"
-#include "media/formats/mpeg/mpeg1_audio_stream_parser.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace media {
@@ -15,7 +19,7 @@ class MPEG1AudioStreamParserTest
: public StreamParserTestBase, public testing::Test {
public:
MPEG1AudioStreamParserTest()
- : StreamParserTestBase(make_scoped_ptr(new MPEG1AudioStreamParser())) {}
+ : StreamParserTestBase(base::WrapUnique(new MPEG1AudioStreamParser())) {}
};
// Test parsing with small prime sized chunks to smoke out "power of

Powered by Google App Engine
This is Rietveld 408576698