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

Unified Diff: chromecast/media/cma/test/mock_frame_consumer.h

Issue 1875623002: Convert //chromecast from scoped_ptr 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: chromecast/media/cma/test/mock_frame_consumer.h
diff --git a/chromecast/media/cma/test/mock_frame_consumer.h b/chromecast/media/cma/test/mock_frame_consumer.h
index cb00a9a2c4693f526da7a977d92d0913ab9a63ab..acdce71705f1a7e9ed65a4bacc03600c5a977c27 100644
--- a/chromecast/media/cma/test/mock_frame_consumer.h
+++ b/chromecast/media/cma/test/mock_frame_consumer.h
@@ -7,11 +7,11 @@
#include <stddef.h>
+#include <memory>
#include <vector>
#include "base/callback.h"
#include "base/macros.h"
-#include "base/memory/scoped_ptr.h"
namespace media {
class AudioDecoderConfig;
@@ -31,7 +31,7 @@ class MockFrameConsumer {
void Configure(const std::vector<bool>& delayed_task_pattern,
bool last_read_aborted_by_flush,
- scoped_ptr<FrameGeneratorForTest> frame_generator);
+ std::unique_ptr<FrameGeneratorForTest> frame_generator);
// Starts consuming frames. Invoke |done_cb| when all the expected frames
// have been received.
@@ -61,7 +61,7 @@ class MockFrameConsumer {
bool last_read_aborted_by_flush_;
// Expected results.
- scoped_ptr<FrameGeneratorForTest> frame_generator_;
+ std::unique_ptr<FrameGeneratorForTest> frame_generator_;
DISALLOW_COPY_AND_ASSIGN(MockFrameConsumer);
};
« no previous file with comments | « chromecast/media/cma/test/frame_segmenter_for_test.cc ('k') | chromecast/media/cma/test/mock_frame_consumer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698