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

Unified Diff: extensions/renderer/module_system_test.h

Issue 1899083003: Convert //extensions/renderer from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase 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 | « extensions/renderer/module_system.cc ('k') | extensions/renderer/module_system_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: extensions/renderer/module_system_test.h
diff --git a/extensions/renderer/module_system_test.h b/extensions/renderer/module_system_test.h
index 517c3080c006d8c5147d726ec59538c13cde2ecc..495048e472fc744bcdf8bca652ced042d08e336d 100644
--- a/extensions/renderer/module_system_test.h
+++ b/extensions/renderer/module_system_test.h
@@ -55,11 +55,11 @@ class ModuleSystemTestEnvironment {
private:
v8::Isolate* isolate_;
- scoped_ptr<gin::ContextHolder> context_holder_;
+ std::unique_ptr<gin::ContextHolder> context_holder_;
v8::HandleScope handle_scope_;
- scoped_ptr<ScriptContext> context_;
+ std::unique_ptr<ScriptContext> context_;
AssertNatives* assert_natives_;
- scoped_ptr<StringSourceMap> source_map_;
+ std::unique_ptr<StringSourceMap> source_map_;
DISALLOW_COPY_AND_ASSIGN(ModuleSystemTestEnvironment);
};
@@ -87,7 +87,7 @@ class ModuleSystemTest : public testing::Test {
protected:
ModuleSystemTestEnvironment* env() { return env_.get(); }
- scoped_ptr<ModuleSystemTestEnvironment> CreateEnvironment();
+ std::unique_ptr<ModuleSystemTestEnvironment> CreateEnvironment();
// Make the test fail if any asserts are called. By default a test will fail
// if no asserts are called.
@@ -99,7 +99,7 @@ class ModuleSystemTest : public testing::Test {
private:
v8::Isolate* isolate_;
- scoped_ptr<ModuleSystemTestEnvironment> env_;
+ std::unique_ptr<ModuleSystemTestEnvironment> env_;
bool should_assertions_be_made_;
private:
« no previous file with comments | « extensions/renderer/module_system.cc ('k') | extensions/renderer/module_system_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698