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

Unified Diff: media/base/mock_filters.h

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: android 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
« no previous file with comments | « media/base/media_tracks.cc ('k') | media/base/mock_filters.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/base/mock_filters.h
diff --git a/media/base/mock_filters.h b/media/base/mock_filters.h
index f60c9cdf8f46419231e2e9faa629f514eb42b566..2f68209b74470ed9c3902ae8efa9f9c4a345c991 100644
--- a/media/base/mock_filters.h
+++ b/media/base/mock_filters.h
@@ -7,6 +7,7 @@
#include <stdint.h>
+#include <memory>
#include <string>
#include "base/callback.h"
@@ -42,7 +43,7 @@ class MockPipeline : public Pipeline {
// interface by forwarding to these mock methods.
MOCK_METHOD10(Start,
void(Demuxer*,
- scoped_ptr<Renderer>*,
+ std::unique_ptr<Renderer>*,
const base::Closure&,
const PipelineStatusCB&,
const PipelineStatusCB&,
@@ -55,7 +56,7 @@ class MockPipeline : public Pipeline {
MOCK_METHOD2(Seek, void(base::TimeDelta, const PipelineStatusCB&));
MOCK_METHOD1(Suspend, void(const PipelineStatusCB&));
MOCK_METHOD3(Resume,
- void(scoped_ptr<Renderer>*,
+ void(std::unique_ptr<Renderer>*,
base::TimeDelta,
const PipelineStatusCB&));
@@ -81,7 +82,7 @@ class MockPipeline : public Pipeline {
private:
// Forwarding stubs (see comment above).
void Start(Demuxer* demuxer,
- scoped_ptr<Renderer> renderer,
+ std::unique_ptr<Renderer> renderer,
const base::Closure& ended_cb,
const PipelineStatusCB& error_cb,
const PipelineStatusCB& seek_cb,
@@ -90,7 +91,7 @@ class MockPipeline : public Pipeline {
const base::Closure& duration_change_cb,
const AddTextTrackCB& add_text_track_cb,
const base::Closure& waiting_for_decryption_key_cb) override;
- void Resume(scoped_ptr<Renderer> renderer,
+ void Resume(std::unique_ptr<Renderer> renderer,
base::TimeDelta timestamp,
const PipelineStatusCB& seek_cb) override;
« no previous file with comments | « media/base/media_tracks.cc ('k') | media/base/mock_filters.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698