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

Unified Diff: base/test/histogram_tester_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/test/histogram_tester.cc ('k') | base/test/launcher/test_launcher.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/test/histogram_tester_unittest.cc
diff --git a/base/test/histogram_tester_unittest.cc b/base/test/histogram_tester_unittest.cc
index 21b81703c648c28d317dde656f83d7c191bd6081..c4d49af942f783a571b270a591c5b2faaee85e03 100644
--- a/base/test/histogram_tester_unittest.cc
+++ b/base/test/histogram_tester_unittest.cc
@@ -4,7 +4,8 @@
#include "base/test/histogram_tester.h"
-#include "base/memory/scoped_ptr.h"
+#include <memory>
+
#include "base/metrics/histogram_macros.h"
#include "base/metrics/histogram_samples.h"
#include "testing/gmock/include/gmock/gmock.h"
@@ -40,7 +41,7 @@ TEST_F(HistogramTesterTest, Scope) {
UMA_HISTOGRAM_BOOLEAN(kHistogram1, true);
// Verify that one histogram is recorded.
- scoped_ptr<HistogramSamples> samples(
+ std::unique_ptr<HistogramSamples> samples(
tester.GetHistogramSamplesSinceCreation(kHistogram1));
EXPECT_TRUE(samples);
EXPECT_EQ(1, samples->TotalCount());
@@ -54,7 +55,7 @@ TEST_F(HistogramTesterTest, GetHistogramSamplesSinceCreationNotNull) {
HistogramTester tester;
// Verify that the returned samples are empty but not null.
- scoped_ptr<HistogramSamples> samples(
+ std::unique_ptr<HistogramSamples> samples(
tester.GetHistogramSamplesSinceCreation(kHistogram1));
EXPECT_TRUE(samples);
tester.ExpectTotalCount(kHistogram, 0);
« no previous file with comments | « base/test/histogram_tester.cc ('k') | base/test/launcher/test_launcher.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698