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

Unified Diff: remoting/host/host_config_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/host_config.cc ('k') | remoting/host/host_event_logger.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/host_config_unittest.cc
diff --git a/remoting/host/host_config_unittest.cc b/remoting/host/host_config_unittest.cc
index 6203c7f08aacc456737e3d827fdc594263c24cb2..c082491728917402b01a79938383a6e6ec691486 100644
--- a/remoting/host/host_config_unittest.cc
+++ b/remoting/host/host_config_unittest.cc
@@ -52,7 +52,8 @@ TEST_F(HostConfigTest, Read) {
ASSERT_TRUE(test_dir_.CreateUniqueTempDir());
base::FilePath test_file = test_dir_.path().AppendASCII("read.json");
WriteTestFile(test_file);
- scoped_ptr<base::DictionaryValue> target(HostConfigFromJsonFile(test_file));
+ std::unique_ptr<base::DictionaryValue> target(
+ HostConfigFromJsonFile(test_file));
ASSERT_TRUE(target);
std::string value;
@@ -75,7 +76,8 @@ TEST_F(HostConfigTest, Write) {
base::FilePath test_file = test_dir_.path().AppendASCII("write.json");
WriteTestFile(test_file);
- scoped_ptr<base::DictionaryValue> target(HostConfigFromJsonFile(test_file));
+ std::unique_ptr<base::DictionaryValue> target(
+ HostConfigFromJsonFile(test_file));
ASSERT_TRUE(target);
std::string new_refresh_token_value = "NEW_REFRESH_TOKEN";
@@ -83,7 +85,8 @@ TEST_F(HostConfigTest, Write) {
ASSERT_TRUE(HostConfigToJsonFile(*target, test_file));
// Now read the file again and check that the value has been written.
- scoped_ptr<base::DictionaryValue> reader(HostConfigFromJsonFile(test_file));
+ std::unique_ptr<base::DictionaryValue> reader(
+ HostConfigFromJsonFile(test_file));
ASSERT_TRUE(reader);
std::string value;
« no previous file with comments | « remoting/host/host_config.cc ('k') | remoting/host/host_event_logger.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698