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

Unified Diff: ppapi/proxy/video_encoder_resource_unittest.cc

Issue 2972053003: Remove ScopedVector from ppapi/. (Closed)
Patch Set: Created 3 years, 5 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 | « ppapi/proxy/video_encoder_resource.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/proxy/video_encoder_resource_unittest.cc
diff --git a/ppapi/proxy/video_encoder_resource_unittest.cc b/ppapi/proxy/video_encoder_resource_unittest.cc
index 5dc29c26d3aa7d61181fd7d9f4434ba3527eef9a..447643cfa99b5d43f443c8e932d999217262c888 100644
--- a/ppapi/proxy/video_encoder_resource_unittest.cc
+++ b/ppapi/proxy/video_encoder_resource_unittest.cc
@@ -6,7 +6,9 @@
#include <stdint.h>
+#include <memory>
#include <utility>
+#include <vector>
#include "base/memory/shared_memory.h"
#include "base/process/process.h"
@@ -290,7 +292,7 @@ class VideoEncoderResourceTest : public PluginProxyTest,
void SendBitstreamBuffers(const ResourceMessageCallParams& params,
uint32_t buffer_length) {
std::vector<SerializedHandle> handles;
- for (base::SharedMemory* mem : shared_memory_bitstreams_) {
+ for (const auto& mem : shared_memory_bitstreams_) {
ASSERT_EQ(mem->requested_size(), buffer_length);
base::SharedMemoryHandle handle = mem->handle().Duplicate();
ASSERT_TRUE(handle.IsValid());
@@ -423,7 +425,7 @@ class VideoEncoderResourceTest : public PluginProxyTest,
const PPB_VideoEncoder_0_2* encoder_iface_;
const PPB_VideoEncoder_0_1* encoder_iface_0_1_;
- ScopedVector<base::SharedMemory> shared_memory_bitstreams_;
+ std::vector<std::unique_ptr<base::SharedMemory>> shared_memory_bitstreams_;
MediaStreamBufferManager video_frames_manager_;
};
« no previous file with comments | « ppapi/proxy/video_encoder_resource.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698