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

Unified Diff: base/test/test_suite.cc

Issue 1852433005: Convert //base to use std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase after r384946 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 | « base/test/test_suite.h ('k') | base/test/test_support_android.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/test/test_suite.cc
diff --git a/base/test/test_suite.cc b/base/test/test_suite.cc
index 74bd9ddf7bd5bd238fb4997630c7dc5bdf51370b..7211ff5a4b1007c99faae5865c76e06871ac3a4e 100644
--- a/base/test/test_suite.cc
+++ b/base/test/test_suite.cc
@@ -4,6 +4,8 @@
#include "base/test/test_suite.h"
+#include <memory>
+
#include "base/at_exit.h"
#include "base/base_paths.h"
#include "base/base_switches.h"
@@ -17,7 +19,7 @@
#include "base/i18n/icu_util.h"
#include "base/logging.h"
#include "base/macros.h"
-#include "base/memory/scoped_ptr.h"
+#include "base/memory/ptr_util.h"
#include "base/path_service.h"
#include "base/process/launch.h"
#include "base/process/memory.h"
@@ -226,7 +228,7 @@ int TestSuite::Run() {
// Set up a FeatureList instance, so that code using that API will not hit a
// an error that it's not set. Cleared by ClearInstanceForTesting() below.
- base::FeatureList::SetInstance(make_scoped_ptr(new base::FeatureList));
+ base::FeatureList::SetInstance(WrapUnique(new base::FeatureList));
int result = RUN_ALL_TESTS();
« no previous file with comments | « base/test/test_suite.h ('k') | base/test/test_support_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698