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

Unified Diff: media/formats/mpeg/adts_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/adts_stream_parser_unittest.cc
diff --git a/media/formats/mpeg/adts_stream_parser_unittest.cc b/media/formats/mpeg/adts_stream_parser_unittest.cc
index 27b5e4f2edb8c5f0dedc833548ddb9f9a7a5cbb6..f6c193dae3d5e9fd385bccb9ed63c9f2c0f95dad 100644
--- a/media/formats/mpeg/adts_stream_parser_unittest.cc
+++ b/media/formats/mpeg/adts_stream_parser_unittest.cc
@@ -2,8 +2,12 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "media/formats/common/stream_parser_test_base.h"
#include "media/formats/mpeg/adts_stream_parser.h"
+
+#include <memory>
+
+#include "base/memory/ptr_util.h"
+#include "media/formats/common/stream_parser_test_base.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace media {
@@ -11,7 +15,7 @@ namespace media {
class ADTSStreamParserTest : public StreamParserTestBase, public testing::Test {
public:
ADTSStreamParserTest()
- : StreamParserTestBase(make_scoped_ptr(new ADTSStreamParser())) {}
+ : StreamParserTestBase(base::WrapUnique(new ADTSStreamParser())) {}
};
// Test parsing with small prime sized chunks to smoke out "power of

Powered by Google App Engine
This is Rietveld 408576698