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

Unified Diff: remoting/protocol/authenticator_test_base.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/protocol/authenticator_test_base.h ('k') | remoting/protocol/capture_scheduler.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/protocol/authenticator_test_base.cc
diff --git a/remoting/protocol/authenticator_test_base.cc b/remoting/protocol/authenticator_test_base.cc
index 072b62117152542a44ab5dcbeb30bbe3a72dddf3..d1ad8815589b8648b20bcf5038103a79b1ab09f1 100644
--- a/remoting/protocol/authenticator_test_base.cc
+++ b/remoting/protocol/authenticator_test_base.cc
@@ -84,7 +84,7 @@ void AuthenticatorTestBase::ContinueAuthExchangeWith(Authenticator* sender,
Authenticator* receiver,
bool sender_started,
bool receiver_started) {
- scoped_ptr<buzz::XmlElement> message;
+ std::unique_ptr<buzz::XmlElement> message;
ASSERT_NE(Authenticator::WAITING_MESSAGE, sender->state());
if (sender->state() == Authenticator::ACCEPTED ||
sender->state() == Authenticator::REJECTED) {
@@ -161,14 +161,14 @@ void AuthenticatorTestBase::RunChannelAuth(bool expected_fail) {
void AuthenticatorTestBase::OnHostConnected(
int error,
- scoped_ptr<P2PStreamSocket> socket) {
+ std::unique_ptr<P2PStreamSocket> socket) {
host_callback_.OnDone(error);
host_socket_ = std::move(socket);
}
void AuthenticatorTestBase::OnClientConnected(
int error,
- scoped_ptr<P2PStreamSocket> socket) {
+ std::unique_ptr<P2PStreamSocket> socket) {
client_callback_.OnDone(error);
client_socket_ = std::move(socket);
}
« no previous file with comments | « remoting/protocol/authenticator_test_base.h ('k') | remoting/protocol/capture_scheduler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698