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

Unified Diff: components/rappor/rappor_service_unittest.cc

Issue 1921923002: Convert //components/[o-t]* 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/rappor/rappor_service.cc ('k') | components/rappor/sampler.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/rappor/rappor_service_unittest.cc
diff --git a/components/rappor/rappor_service_unittest.cc b/components/rappor/rappor_service_unittest.cc
index 711722dbde9093d86a82ead3eb5d75fbc2c84090..2c1e8b6ce6802a25044c8e5e6a5093e711794a5d 100644
--- a/components/rappor/rappor_service_unittest.cc
+++ b/components/rappor/rappor_service_unittest.cc
@@ -6,6 +6,8 @@
#include <stddef.h>
#include <stdint.h>
+
+#include <memory>
#include <utility>
#include "base/base64.h"
@@ -121,7 +123,7 @@ TEST(RapporServiceTest, Incognito) {
// Check that Sample objects record correctly.
TEST(RapporServiceTest, RecordSample) {
TestRapporService rappor_service;
- scoped_ptr<Sample> sample =
+ std::unique_ptr<Sample> sample =
rappor_service.CreateSample(SAFEBROWSING_RAPPOR_TYPE);
sample->SetStringField("Url", "example.com");
sample->SetFlagsField("Flags1", 0xbcd, 12);
« no previous file with comments | « components/rappor/rappor_service.cc ('k') | components/rappor/sampler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698