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

Unified Diff: remoting/host/register_support_host_request_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/register_support_host_request.cc ('k') | remoting/host/remoting_me2me_host.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/register_support_host_request_unittest.cc
diff --git a/remoting/host/register_support_host_request_unittest.cc b/remoting/host/register_support_host_request_unittest.cc
index 30420b5f14e6a8b6077665a74688f29442b53810..9bcfb9dba656d088fb6243dd8fa368a7853803be 100644
--- a/remoting/host/register_support_host_request_unittest.cc
+++ b/remoting/host/register_support_host_request_unittest.cc
@@ -83,11 +83,10 @@ TEST_F(RegisterSupportHostRequestTest, Send) {
// |iq_request| is freed by RegisterSupportHostRequest.
int64_t start_time = static_cast<int64_t>(base::Time::Now().ToDoubleT());
- scoped_ptr<RegisterSupportHostRequest> request(
- new RegisterSupportHostRequest(&signal_strategy_, key_pair_,
- kTestBotJid,
- base::Bind(&MockCallback::OnResponse,
- base::Unretained(&callback_))));
+ std::unique_ptr<RegisterSupportHostRequest> request(
+ new RegisterSupportHostRequest(
+ &signal_strategy_, key_pair_, kTestBotJid,
+ base::Bind(&MockCallback::OnResponse, base::Unretained(&callback_))));
XmlElement* sent_iq = nullptr;
EXPECT_CALL(signal_strategy_, GetNextId())
@@ -99,7 +98,7 @@ TEST_F(RegisterSupportHostRequestTest, Send) {
base::RunLoop().RunUntilIdle();
// Verify format of the query.
- scoped_ptr<XmlElement> stanza(sent_iq);
+ std::unique_ptr<XmlElement> stanza(sent_iq);
ASSERT_TRUE(stanza != nullptr);
EXPECT_EQ(stanza->Attr(buzz::QName(std::string(), "to")),
@@ -134,7 +133,7 @@ TEST_F(RegisterSupportHostRequestTest, Send) {
base::TimeDelta::FromSeconds(300),
""));
- scoped_ptr<XmlElement> response(new XmlElement(buzz::QN_IQ));
+ std::unique_ptr<XmlElement> response(new XmlElement(buzz::QN_IQ));
response->AddAttr(QName(std::string(), "from"), kTestBotJid);
response->AddAttr(QName(std::string(), "type"), "result");
response->AddAttr(QName(std::string(), "id"), kStanzaId);
« no previous file with comments | « remoting/host/register_support_host_request.cc ('k') | remoting/host/remoting_me2me_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698