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

Unified Diff: remoting/host/server_log_entry_unittest.cc

Issue 9720019: Use scoped_ptr<> to pass ownership in more places. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 9 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/server_log_entry.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/server_log_entry_unittest.cc
diff --git a/remoting/host/server_log_entry_unittest.cc b/remoting/host/server_log_entry_unittest.cc
index 55c676c8348a850410d3ce4fbd5239c378b655bc..5cd94ee990436a625d3e20a70b35dddb29fe2b57 100644
--- a/remoting/host/server_log_entry_unittest.cc
+++ b/remoting/host/server_log_entry_unittest.cc
@@ -63,7 +63,7 @@ class ServerLogEntryTest : public testing::Test {
TEST_F(ServerLogEntryTest, MakeSessionStateChange) {
scoped_ptr<ServerLogEntry> entry(
ServerLogEntry::MakeSessionStateChange(true));
- scoped_ptr<XmlElement> stanza(entry->ToStanza());
+ scoped_ptr<XmlElement> stanza = entry->ToStanza();
std::string error;
std::map<std::string, std::string> key_value_pairs;
key_value_pairs["role"] = "host";
@@ -78,7 +78,7 @@ TEST_F(ServerLogEntryTest, AddHostFields) {
scoped_ptr<ServerLogEntry> entry(
ServerLogEntry::MakeSessionStateChange(true));
entry->AddHostFields();
- scoped_ptr<XmlElement> stanza(entry->ToStanza());
+ scoped_ptr<XmlElement> stanza = entry->ToStanza();
std::string error;
std::map<std::string, std::string> key_value_pairs;
key_value_pairs["role"] = "host";
@@ -106,7 +106,7 @@ TEST_F(ServerLogEntryTest, AddModeField1) {
scoped_ptr<ServerLogEntry> entry(
ServerLogEntry::MakeSessionStateChange(true));
entry->AddModeField(ServerLogEntry::IT2ME);
- scoped_ptr<XmlElement> stanza(entry->ToStanza());
+ scoped_ptr<XmlElement> stanza = entry->ToStanza();
std::string error;
std::map<std::string, std::string> key_value_pairs;
key_value_pairs["role"] = "host";
@@ -122,7 +122,7 @@ TEST_F(ServerLogEntryTest, AddModeField2) {
scoped_ptr<ServerLogEntry> entry(
ServerLogEntry::MakeSessionStateChange(true));
entry->AddModeField(ServerLogEntry::ME2ME);
- scoped_ptr<XmlElement> stanza(entry->ToStanza());
+ scoped_ptr<XmlElement> stanza = entry->ToStanza();
std::string error;
std::map<std::string, std::string> key_value_pairs;
key_value_pairs["role"] = "host";
« no previous file with comments | « remoting/host/server_log_entry.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698