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

Unified Diff: components/autofill/content/browser/wallet/payments_client_unittest.cc

Issue 1859453002: components/autofill: scoped_ptr -> unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Comments addressed 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/autofill/content/browser/wallet/payments_client_unittest.cc
diff --git a/components/autofill/content/browser/wallet/payments_client_unittest.cc b/components/autofill/content/browser/wallet/payments_client_unittest.cc
index de4cbd657d609ec31d6223eb5eb4dbcc5419e880..bb2767922baedfea2b2d878c28e1c7025cca4d2e 100644
--- a/components/autofill/content/browser/wallet/payments_client_unittest.cc
+++ b/components/autofill/content/browser/wallet/payments_client_unittest.cc
@@ -59,7 +59,7 @@ class PaymentsClientTest : public testing::Test, public PaymentsClientDelegate {
void OnDidGetUploadDetails(
AutofillClient::PaymentsRpcResult result,
const base::string16& context_token,
- scoped_ptr<base::DictionaryValue> legal_message) override {
+ std::unique_ptr<base::DictionaryValue> legal_message) override {
result_ = result;
legal_message_ = std::move(legal_message);
}
@@ -124,14 +124,14 @@ class PaymentsClientTest : public testing::Test, public PaymentsClientDelegate {
AutofillClient::PaymentsRpcResult result_;
std::string real_pan_;
- scoped_ptr<base::DictionaryValue> legal_message_;
+ std::unique_ptr<base::DictionaryValue> legal_message_;
content::TestBrowserThreadBundle thread_bundle_;
net::TestURLFetcherFactory factory_;
scoped_refptr<net::TestURLRequestContextGetter> request_context_;
- scoped_ptr<FakeOAuth2TokenService> token_service_;
- scoped_ptr<FakeIdentityProvider> identity_provider_;
- scoped_ptr<PaymentsClient> client_;
+ std::unique_ptr<FakeOAuth2TokenService> token_service_;
+ std::unique_ptr<FakeIdentityProvider> identity_provider_;
+ std::unique_ptr<PaymentsClient> client_;
private:
DISALLOW_COPY_AND_ASSIGN(PaymentsClientTest);

Powered by Google App Engine
This is Rietveld 408576698