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

Unified Diff: remoting/protocol/negotiating_authenticator_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
Index: remoting/protocol/negotiating_authenticator_unittest.cc
diff --git a/remoting/protocol/negotiating_authenticator_unittest.cc b/remoting/protocol/negotiating_authenticator_unittest.cc
index cfa0a869c5e6cf45b283443e806bc5ae1f336d01..a83e80b8c387c970b9cb0480a5d650d8bcbc4d8f 100644
--- a/remoting/protocol/negotiating_authenticator_unittest.cc
+++ b/remoting/protocol/negotiating_authenticator_unittest.cc
@@ -4,6 +4,7 @@
#include "base/bind.h"
#include "base/macros.h"
+#include "base/memory/ptr_util.h"
#include "net/base/net_errors.h"
#include "remoting/base/rsa_key_pair.h"
#include "remoting/protocol/auth_util.h"
@@ -59,7 +60,7 @@ class NegotiatingAuthenticatorTest : public AuthenticatorTestBase {
const std::string& host_secret) {
std::string host_secret_hash =
GetSharedSecretHash(kTestHostId, host_secret);
- scoped_ptr<NegotiatingHostAuthenticator> host =
+ std::unique_ptr<NegotiatingHostAuthenticator> host =
NegotiatingHostAuthenticator::CreateWithSharedSecret(
kHostJid, kClientJid, host_cert_, key_pair_, host_secret_hash,
pairing_registry_);
@@ -95,7 +96,7 @@ class NegotiatingAuthenticatorTest : public AuthenticatorTestBase {
void CreatePairingRegistry(bool with_paired_client) {
pairing_registry_ = new SynchronousPairingRegistry(
- make_scoped_ptr(new MockPairingRegistryDelegate()));
+ base::WrapUnique(new MockPairingRegistryDelegate()));
if (with_paired_client) {
PairingRegistry::Pairing pairing(
base::Time(), kTestClientName, kTestClientId, kTestPairedSecret);
« no previous file with comments | « remoting/protocol/negotiating_authenticator_base.cc ('k') | remoting/protocol/negotiating_client_authenticator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698