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

Unified Diff: remoting/host/gcd_rest_client_unittest.cc

Issue 1864213002: Convert //remoting to use std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Mac IWYU 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 | « remoting/host/gcd_rest_client.cc ('k') | remoting/host/gcd_state_updater.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/gcd_rest_client_unittest.cc
diff --git a/remoting/host/gcd_rest_client_unittest.cc b/remoting/host/gcd_rest_client_unittest.cc
index cfdbd9e6f6e3dfc7015cdcc6199530f78c6f2670..5b9df79223190469241883628151b072e131e7b7 100644
--- a/remoting/host/gcd_rest_client_unittest.cc
+++ b/remoting/host/gcd_rest_client_unittest.cc
@@ -4,6 +4,7 @@
#include "remoting/host/gcd_rest_client.h"
+#include "base/memory/ptr_util.h"
#include "base/run_loop.h"
#include "base/test/simple_test_clock.h"
#include "base/values.h"
@@ -25,8 +26,9 @@ class GcdRestClientTest : public testing::Test {
last_result_ = result;
}
- scoped_ptr<base::DictionaryValue> MakePatchDetails(int id) {
- scoped_ptr<base::DictionaryValue> patch_details(new base::DictionaryValue);
+ std::unique_ptr<base::DictionaryValue> MakePatchDetails(int id) {
+ std::unique_ptr<base::DictionaryValue> patch_details(
+ new base::DictionaryValue);
patch_details->SetInteger("id", id);
return patch_details;
}
@@ -37,13 +39,13 @@ class GcdRestClientTest : public testing::Test {
}
client_.reset(new GcdRestClient("http://gcd_base_url", "<gcd_device_id>",
nullptr, token_getter));
- client_->SetClockForTest(make_scoped_ptr(new base::SimpleTestClock));
+ client_->SetClockForTest(base::WrapUnique(new base::SimpleTestClock));
}
protected:
net::TestURLFetcherFactory url_fetcher_factory_;
FakeOAuthTokenGetter default_token_getter_;
- scoped_ptr<GcdRestClient> client_;
+ std::unique_ptr<GcdRestClient> client_;
int counter_ = 0;
GcdRestClient::Result last_result_ = GcdRestClient::OTHER_ERROR;
« no previous file with comments | « remoting/host/gcd_rest_client.cc ('k') | remoting/host/gcd_state_updater.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698