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

Unified Diff: media/base/text_renderer_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/text_renderer_unittest.cc
diff --git a/media/base/text_renderer_unittest.cc b/media/base/text_renderer_unittest.cc
index bbf833043620ad0d773787d9b063fa33ec3f0341..da0ef6228f9f4d02d840c37d477e0372a41cac30 100644
--- a/media/base/text_renderer_unittest.cc
+++ b/media/base/text_renderer_unittest.cc
@@ -5,6 +5,7 @@
#include "media/base/text_renderer.h"
#include <stddef.h>
+#include <memory>
#include <utility>
#include <vector>
@@ -100,7 +101,7 @@ class TextRendererTest : public testing::Test {
// here so we can inspect them. They get removed from our cache when the
// text renderer deallocates them.
text_tracks_.push_back(new FakeTextTrack(destroy_cb, config));
- scoped_ptr<TextTrack> text_track(text_tracks_.back());
+ std::unique_ptr<TextTrack> text_track(text_tracks_.back());
done_cb.Run(std::move(text_track));
}
@@ -210,7 +211,7 @@ class TextRendererTest : public testing::Test {
typedef std::vector<FakeTextTrack*> TextTracks;
TextTracks text_tracks_;
- scoped_ptr<TextRenderer> text_renderer_;
+ std::unique_ptr<TextRenderer> text_renderer_;
private:
DISALLOW_COPY_AND_ASSIGN(TextRendererTest);

Powered by Google App Engine
This is Rietveld 408576698