Chromium Code Reviews

Unified Diff: base/metrics/histogram_delta_serialization_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.
Jump to:
View side-by-side diff with in-line comments
« no previous file with comments | « base/metrics/histogram_delta_serialization.h ('k') | base/metrics/histogram_samples.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/metrics/histogram_delta_serialization_unittest.cc
diff --git a/base/metrics/histogram_delta_serialization_unittest.cc b/base/metrics/histogram_delta_serialization_unittest.cc
index 93f719826f3e7f207077ef65d1fbc7e84476aae5..80a70096716908312467e4fbcc94dacf859add23 100644
--- a/base/metrics/histogram_delta_serialization_unittest.cc
+++ b/base/metrics/histogram_delta_serialization_unittest.cc
@@ -34,7 +34,7 @@ TEST(HistogramDeltaSerializationTest, DeserializeHistogramAndAddSamples) {
HistogramDeltaSerialization::DeserializeAndAddSamples(deltas);
// The histogram has kIPCSerializationSourceFlag. So samples will be ignored.
- scoped_ptr<HistogramSamples> snapshot(histogram->SnapshotSamples());
+ std::unique_ptr<HistogramSamples> snapshot(histogram->SnapshotSamples());
EXPECT_EQ(1, snapshot->GetCount(1));
EXPECT_EQ(1, snapshot->GetCount(10));
EXPECT_EQ(1, snapshot->GetCount(100));
@@ -44,7 +44,7 @@ TEST(HistogramDeltaSerializationTest, DeserializeHistogramAndAddSamples) {
histogram->ClearFlags(HistogramBase::kIPCSerializationSourceFlag);
HistogramDeltaSerialization::DeserializeAndAddSamples(deltas);
- scoped_ptr<HistogramSamples> snapshot2(histogram->SnapshotSamples());
+ std::unique_ptr<HistogramSamples> snapshot2(histogram->SnapshotSamples());
EXPECT_EQ(2, snapshot2->GetCount(1));
EXPECT_EQ(2, snapshot2->GetCount(10));
EXPECT_EQ(2, snapshot2->GetCount(100));
« no previous file with comments | « base/metrics/histogram_delta_serialization.h ('k') | base/metrics/histogram_samples.h » ('j') | no next file with comments »

Powered by Google App Engine