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

Unified Diff: extensions/renderer/mojo/stash_client_unittest.cc

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_unittest.cc ('k') | extensions/renderer/programmatic_script_injector.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: extensions/renderer/mojo/stash_client_unittest.cc
diff --git a/extensions/renderer/mojo/stash_client_unittest.cc b/extensions/renderer/mojo/stash_client_unittest.cc
index 3f361cc253582fa76a47d6304bf5113c0dff6702..a672c977e44fe92edd630a4fc6cb5bc6891c86e6 100644
--- a/extensions/renderer/mojo/stash_client_unittest.cc
+++ b/extensions/renderer/mojo/stash_client_unittest.cc
@@ -31,7 +31,7 @@ class StashClientTest : public ApiTestBase {
&StashBackend::BindToRequest, base::Unretained(stash_backend_.get())));
}
- scoped_ptr<StashBackend> stash_backend_;
+ std::unique_ptr<StashBackend> stash_backend_;
private:
DISALLOW_COPY_AND_ASSIGN(StashClientTest);
@@ -46,7 +46,8 @@ class StashClientTest : public ApiTestBase {
// Test that stashing and restoring work correctly.
TEST_F(StashClientTest, MAYBE_StashAndRestore) {
ASSERT_NO_FATAL_FAILURE(RunTest("stash_client_unittest.js", "testStash"));
- scoped_ptr<ModuleSystemTestEnvironment> restore_test_env(CreateEnvironment());
+ std::unique_ptr<ModuleSystemTestEnvironment> restore_test_env(
+ CreateEnvironment());
ApiTestEnvironment restore_environment(restore_test_env.get());
PrepareEnvironment(&restore_environment);
restore_environment.RunTest("stash_client_unittest.js", "testRetrieve");
« no previous file with comments | « extensions/renderer/module_system_unittest.cc ('k') | extensions/renderer/programmatic_script_injector.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698