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

Unified Diff: components/web_resource/promo_resource_service_mobile_ntp_unittest.cc

Issue 1917673002: Convert //components/[u-z]* 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
Index: components/web_resource/promo_resource_service_mobile_ntp_unittest.cc
diff --git a/components/web_resource/promo_resource_service_mobile_ntp_unittest.cc b/components/web_resource/promo_resource_service_mobile_ntp_unittest.cc
index 8d4d17778b4b0d2952bea066b3b108c23736c86e..9e9e3cf62d0e368a4615f95ae0e38523685dac33 100644
--- a/components/web_resource/promo_resource_service_mobile_ntp_unittest.cc
+++ b/components/web_resource/promo_resource_service_mobile_ntp_unittest.cc
@@ -4,6 +4,7 @@
#include <stddef.h>
+#include <memory>
#include <vector>
#include "base/json/json_reader.h"
@@ -37,7 +38,7 @@ class PromoResourceServiceMobileNtpTest : public testing::Test {
protected:
TestingPrefServiceSimple local_state_;
// |promo_resource_service_| must be created after |local_state_|.
- scoped_ptr<PromoResourceService> promo_resource_service_;
+ std::unique_ptr<PromoResourceService> promo_resource_service_;
base::MessageLoop loop_;
};
@@ -54,7 +55,7 @@ class NotificationPromoMobileNtpTest {
const std::string& promo_action_type,
const std::string& promo_action_arg0,
const std::string& promo_action_arg1) {
- scoped_ptr<base::Value> value = base::JSONReader::Read(json);
+ std::unique_ptr<base::Value> value = base::JSONReader::Read(json);
ASSERT_TRUE(value);
base::DictionaryValue* dict = NULL;
value.release()->GetAsDictionary(&dict);
@@ -125,7 +126,7 @@ class NotificationPromoMobileNtpTest {
PrefService* local_state_;
NotificationPromoMobileNtp mobile_promo_;
bool received_notification_;
- scoped_ptr<base::DictionaryValue> test_json_;
+ std::unique_ptr<base::DictionaryValue> test_json_;
std::string promo_text_;
std::string promo_text_long_;
« no previous file with comments | « components/web_resource/promo_resource_service.cc ('k') | components/web_resource/promo_resource_service_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698