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

Unified Diff: remoting/host/client_session_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
Index: remoting/host/client_session_unittest.cc
diff --git a/remoting/host/client_session_unittest.cc b/remoting/host/client_session_unittest.cc
index 38a9171cf7e64d07e01819d3cb0aff14757deb47..5c1a4f833638c39e0083add9240ac634c27cdebb 100644
--- a/remoting/host/client_session_unittest.cc
+++ b/remoting/host/client_session_unittest.cc
@@ -38,9 +38,10 @@ class ClientSessionTest : public testing::Test {
EXPECT_CALL(*session, jid()).WillRepeatedly(ReturnRef(client_jid_));
EXPECT_CALL(*session, SetStateChangeCallback(_));
+ scoped_ptr<protocol::ConnectionToClient> connection(
+ new protocol::ConnectionToClient(session));
client_session_.reset(new ClientSession(
- &session_event_handler_,
- new protocol::ConnectionToClient(session),
+ &session_event_handler_, connection.Pass(),
&host_event_stub_, &capturer_));
}

Powered by Google App Engine
This is Rietveld 408576698