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

Unified Diff: remoting/host/json_host_config_unittest.cc

Issue 4192012: Convert implicit scoped_refptr constructor calls to explicit ones, part 1 (Closed) Base URL: http://git.chromium.org/git/chromium.git
Patch Set: fix presubmit Created 10 years, 2 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/heartbeat_sender_unittest.cc ('k') | remoting/host/simple_host_process.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/json_host_config_unittest.cc
diff --git a/remoting/host/json_host_config_unittest.cc b/remoting/host/json_host_config_unittest.cc
index bd1bc14260eefc3deaf9bb65c2d246ad0c29aa93..14ee9bd987e8254a8208a60930eadc5d5339f29b 100644
--- a/remoting/host/json_host_config_unittest.cc
+++ b/remoting/host/json_host_config_unittest.cc
@@ -54,8 +54,8 @@ TEST_F(JsonHostConfigTest, InvalidFile) {
ASSERT_TRUE(test_dir_.CreateUniqueTempDir());
FilePath non_existent_file =
test_dir_.path().AppendASCII("non_existent.json");
- scoped_refptr<JsonHostConfig> target =
- new JsonHostConfig(non_existent_file, message_loop_proxy_.get());
+ scoped_refptr<JsonHostConfig> target(
+ new JsonHostConfig(non_existent_file, message_loop_proxy_.get()));
EXPECT_FALSE(target->Read());
}
@@ -63,8 +63,8 @@ TEST_F(JsonHostConfigTest, Read) {
ASSERT_TRUE(test_dir_.CreateUniqueTempDir());
FilePath test_file = test_dir_.path().AppendASCII("read.json");
WriteTestFile(test_file);
- scoped_refptr<JsonHostConfig> target =
- new JsonHostConfig(test_file, message_loop_proxy_.get());
+ scoped_refptr<JsonHostConfig> target(
+ new JsonHostConfig(test_file, message_loop_proxy_.get()));
ASSERT_TRUE(target->Read());
std::string value;
« no previous file with comments | « remoting/host/heartbeat_sender_unittest.cc ('k') | remoting/host/simple_host_process.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698