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

Unified Diff: remoting/host/pairing_registry_delegate_linux_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_linux.cc ('k') | remoting/host/pairing_registry_delegate_mac.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/pairing_registry_delegate_linux_unittest.cc
diff --git a/remoting/host/pairing_registry_delegate_linux_unittest.cc b/remoting/host/pairing_registry_delegate_linux_unittest.cc
index 7cc040379488ba66a80c5e4b990582bbdef8331f..9a5f947b3815fc46097c3634e885bb197d800156 100644
--- a/remoting/host/pairing_registry_delegate_linux_unittest.cc
+++ b/remoting/host/pairing_registry_delegate_linux_unittest.cc
@@ -30,7 +30,7 @@ class PairingRegistryDelegateLinuxTest : public testing::Test {
};
TEST_F(PairingRegistryDelegateLinuxTest, SaveAndLoad) {
- scoped_ptr<PairingRegistryDelegateLinux> delegate(
+ std::unique_ptr<PairingRegistryDelegateLinux> delegate(
new PairingRegistryDelegateLinux());
delegate->SetRegistryPathForTesting(temp_registry_);
@@ -59,7 +59,7 @@ TEST_F(PairingRegistryDelegateLinuxTest, SaveAndLoad) {
// Verify that the only value that left 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);
@@ -71,9 +71,9 @@ TEST_F(PairingRegistryDelegateLinuxTest, SaveAndLoad) {
// Verifies that the delegate is stateless by using two different instances.
TEST_F(PairingRegistryDelegateLinuxTest, Stateless) {
- scoped_ptr<PairingRegistryDelegateLinux> save_delegate(
+ std::unique_ptr<PairingRegistryDelegateLinux> save_delegate(
new PairingRegistryDelegateLinux());
- scoped_ptr<PairingRegistryDelegateLinux> load_delegate(
+ std::unique_ptr<PairingRegistryDelegateLinux> load_delegate(
new PairingRegistryDelegateLinux());
save_delegate->SetRegistryPathForTesting(temp_registry_);
load_delegate->SetRegistryPathForTesting(temp_registry_);
« no previous file with comments | « remoting/host/pairing_registry_delegate_linux.cc ('k') | remoting/host/pairing_registry_delegate_mac.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698