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

Unified Diff: content/renderer/pepper/v8_var_converter_unittest.cc

Issue 1873783003: Convert //content/renderer 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
« no previous file with comments | « content/renderer/pepper/v8_var_converter.cc ('k') | content/renderer/pepper/video_decoder_shim.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/pepper/v8_var_converter_unittest.cc
diff --git a/content/renderer/pepper/v8_var_converter_unittest.cc b/content/renderer/pepper/v8_var_converter_unittest.cc
index 283aad61ab2c45109ab77eb79fe43ed7cf992707..857a1d696195e38609e4b88097d273161e2fa51d 100644
--- a/content/renderer/pepper/v8_var_converter_unittest.cc
+++ b/content/renderer/pepper/v8_var_converter_unittest.cc
@@ -8,10 +8,10 @@
#include <stdint.h>
#include <cmath>
+#include <memory>
#include "base/logging.h"
#include "base/memory/ref_counted.h"
-#include "base/memory/scoped_ptr.h"
#include "base/message_loop/message_loop.h"
#include "base/run_loop.h"
#include "base/synchronization/waitable_event.h"
@@ -171,7 +171,7 @@ class V8VarConverterTest : public testing::Test {
: isolate_(v8::Isolate::GetCurrent()) {
PP_Instance dummy = 1234;
converter_.reset(new V8VarConverter(
- dummy, scoped_ptr<ResourceConverter>(new MockResourceConverter)));
+ dummy, std::unique_ptr<ResourceConverter>(new MockResourceConverter)));
}
~V8VarConverterTest() override {}
@@ -233,7 +233,7 @@ class V8VarConverterTest : public testing::Test {
// Context for the JavaScript in the test.
v8::Persistent<v8::Context> context_;
- scoped_ptr<V8VarConverter> converter_;
+ std::unique_ptr<V8VarConverter> converter_;
private:
base::MessageLoop message_loop_; // Required to receive callbacks.
« no previous file with comments | « content/renderer/pepper/v8_var_converter.cc ('k') | content/renderer/pepper/video_decoder_shim.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698