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

Unified Diff: media/renderers/video_renderer_impl_unittest.cc

Issue 2871503002: Remove ScopedVector from audio/video renderer related code in media/ (Closed)
Patch Set: Address xhwang's comments and delete some useless includes Created 3 years, 7 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/renderers/video_renderer_impl.h ('k') | media/test/pipeline_integration_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/renderers/video_renderer_impl_unittest.cc
diff --git a/media/renderers/video_renderer_impl_unittest.cc b/media/renderers/video_renderer_impl_unittest.cc
index 62f01eaf0e721ea6e393d61a97426f03080ae5b0..ebb90433eed2da458320ceeb7690df95a601d0ea 100644
--- a/media/renderers/video_renderer_impl_unittest.cc
+++ b/media/renderers/video_renderer_impl_unittest.cc
@@ -53,10 +53,10 @@ MATCHER_P(HasTimestampMatcher, ms, "") {
class VideoRendererImplTest : public testing::Test {
public:
- ScopedVector<VideoDecoder> CreateVideoDecodersForTest() {
+ std::vector<std::unique_ptr<VideoDecoder>> CreateVideoDecodersForTest() {
decoder_ = new NiceMock<MockVideoDecoder>();
- ScopedVector<VideoDecoder> decoders;
- decoders.push_back(decoder_);
+ std::vector<std::unique_ptr<VideoDecoder>> decoders;
+ decoders.push_back(base::WrapUnique(decoder_));
ON_CALL(*decoder_, Initialize(_, _, _, _, _))
.WillByDefault(DoAll(SaveArg<4>(&output_cb_),
RunCallback<3>(expect_init_success_)));
« no previous file with comments | « media/renderers/video_renderer_impl.h ('k') | media/test/pipeline_integration_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698