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

Unified Diff: base/metrics/persistent_sample_map_unittest.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/metrics/persistent_sample_map.cc ('k') | base/metrics/sample_map.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/metrics/persistent_sample_map_unittest.cc
diff --git a/base/metrics/persistent_sample_map_unittest.cc b/base/metrics/persistent_sample_map_unittest.cc
index c735f8fd278458011c06c1ca1fc81a951a7efc7d..52c3cef01dca31d44c6b95e00564dc1ab055d3a0 100644
--- a/base/metrics/persistent_sample_map_unittest.cc
+++ b/base/metrics/persistent_sample_map_unittest.cc
@@ -4,7 +4,8 @@
#include "base/metrics/persistent_sample_map.h"
-#include "base/memory/scoped_ptr.h"
+#include <memory>
+
#include "testing/gtest/include/gtest/gtest.h"
namespace base {
@@ -136,7 +137,7 @@ TEST(PersistentSampleMapIteratorTest, IterateTest) {
samples.Accumulate(4, -300);
samples.Accumulate(5, 0);
- scoped_ptr<SampleCountIterator> it = samples.Iterator();
+ std::unique_ptr<SampleCountIterator> it = samples.Iterator();
HistogramBase::Sample min;
HistogramBase::Sample max;
@@ -187,7 +188,7 @@ TEST(PersistentSampleMapIteratorTest, SkipEmptyRanges) {
samples.Subtract(samples2);
- scoped_ptr<SampleCountIterator> it = samples.Iterator();
+ std::unique_ptr<SampleCountIterator> it = samples.Iterator();
EXPECT_FALSE(it->Done());
HistogramBase::Sample min;
@@ -221,7 +222,7 @@ TEST(PersistentSampleMapIteratorDeathTest, IterateDoneTest) {
allocator.Allocate(sizeof(HistogramSamples::Metadata), 0), 0);
PersistentSampleMap samples(1, &allocator, meta);
- scoped_ptr<SampleCountIterator> it = samples.Iterator();
+ std::unique_ptr<SampleCountIterator> it = samples.Iterator();
EXPECT_TRUE(it->Done());
« no previous file with comments | « base/metrics/persistent_sample_map.cc ('k') | base/metrics/sample_map.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698