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

Unified Diff: remoting/host/pairing_registry_delegate_win_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/pairing_registry_delegate_win.cc ('k') | remoting/host/pam_authorization_factory_posix.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/pairing_registry_delegate_win_unittest.cc
diff --git a/remoting/host/pairing_registry_delegate_win_unittest.cc b/remoting/host/pairing_registry_delegate_win_unittest.cc
index 646bd194524c7c655b084893ff480777d2fe7b89..ab73eccf567245e867a597b724f76b3d0970ba93 100644
--- a/remoting/host/pairing_registry_delegate_win_unittest.cc
+++ b/remoting/host/pairing_registry_delegate_win_unittest.cc
@@ -47,7 +47,7 @@ class PairingRegistryDelegateWinTest : public testing::Test {
};
TEST_F(PairingRegistryDelegateWinTest, SaveAndLoad) {
- scoped_ptr<PairingRegistryDelegateWin> delegate(
+ std::unique_ptr<PairingRegistryDelegateWin> delegate(
new PairingRegistryDelegateWin());
delegate->SetRootKeys(privileged_.Handle(), unprivileged_.Handle());
@@ -76,7 +76,7 @@ TEST_F(PairingRegistryDelegateWinTest, SaveAndLoad) {
// Verify that the only remaining value is |pairing2|.
EXPECT_EQ(delegate->LoadAll()->GetSize(), 1u);
- scoped_ptr<base::ListValue> pairings = delegate->LoadAll();
+ std::unique_ptr<base::ListValue> pairings = delegate->LoadAll();
base::DictionaryValue* json;
EXPECT_TRUE(pairings->GetDictionary(0, &json));
EXPECT_EQ(PairingRegistry::Pairing::CreateFromValue(*json), pairing2);
@@ -88,10 +88,10 @@ TEST_F(PairingRegistryDelegateWinTest, SaveAndLoad) {
// Verifies that the delegate is stateless by using two different instances.
TEST_F(PairingRegistryDelegateWinTest, Stateless) {
- scoped_ptr<PairingRegistryDelegateWin> load_delegate(
+ std::unique_ptr<PairingRegistryDelegateWin> load_delegate(
new PairingRegistryDelegateWin());
load_delegate->SetRootKeys(privileged_.Handle(), unprivileged_.Handle());
- scoped_ptr<PairingRegistryDelegateWin> save_delegate(
+ std::unique_ptr<PairingRegistryDelegateWin> save_delegate(
new PairingRegistryDelegateWin());
save_delegate->SetRootKeys(privileged_.Handle(), unprivileged_.Handle());
@@ -101,7 +101,7 @@ TEST_F(PairingRegistryDelegateWinTest, Stateless) {
}
TEST_F(PairingRegistryDelegateWinTest, Unprivileged) {
- scoped_ptr<PairingRegistryDelegateWin> delegate(
+ std::unique_ptr<PairingRegistryDelegateWin> delegate(
new PairingRegistryDelegateWin());
delegate->SetRootKeys(privileged_.Handle(), unprivileged_.Handle());
« no previous file with comments | « remoting/host/pairing_registry_delegate_win.cc ('k') | remoting/host/pam_authorization_factory_posix.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698