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

Unified Diff: components/metrics/leak_detector/leak_detector_impl_unittest.cc

Issue 1906173002: Convert //components/metrics 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 | « components/metrics/leak_detector/leak_detector.h ('k') | components/metrics/metrics_log.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/metrics/leak_detector/leak_detector_impl_unittest.cc
diff --git a/components/metrics/leak_detector/leak_detector_impl_unittest.cc b/components/metrics/leak_detector/leak_detector_impl_unittest.cc
index 5035271fd404b1edfefd458d54e6d5e2ba1a94d6..aa673bf4522941d9a76d31e930a3cecf4e56c7b3 100644
--- a/components/metrics/leak_detector/leak_detector_impl_unittest.cc
+++ b/components/metrics/leak_detector/leak_detector_impl_unittest.cc
@@ -9,12 +9,12 @@
#include <stdint.h>
#include <complex>
+#include <memory>
#include <new>
#include <set>
#include <vector>
#include "base/macros.h"
-#include "base/memory/scoped_ptr.h"
#include "components/metrics/leak_detector/custom_allocator.h"
#include "testing/gtest/include/gtest/gtest.h"
@@ -230,7 +230,7 @@ class LeakDetectorImplTest : public ::testing::Test {
void JuliaSet(bool enable_leaks);
// Instance of the class being tested.
- scoped_ptr<LeakDetectorImpl> detector_;
+ std::unique_ptr<LeakDetectorImpl> detector_;
// Number of pointers allocated and freed so far.
size_t total_num_allocs_;
« no previous file with comments | « components/metrics/leak_detector/leak_detector.h ('k') | components/metrics/metrics_log.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698