summaryrefslogtreecommitdiffstats
path: root/remoting/protocol/jingle_chromotocol_connection_unittest.cc
diff options
context:
space:
mode:
authorthakis@chromium.org <thakis@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-11-01 04:16:27 +0000
committerthakis@chromium.org <thakis@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-11-01 04:16:27 +0000
commitad8e04ac88be37d5ccb6c2cf61f52b224dca493c (patch)
tree9bcb878643bdd9e5af6749fff469b2552e569907 /remoting/protocol/jingle_chromotocol_connection_unittest.cc
parent5af8043eb24ad60251d8a4e33192e3e6f59246a3 (diff)
downloadchromium_src-ad8e04ac88be37d5ccb6c2cf61f52b224dca493c.zip
chromium_src-ad8e04ac88be37d5ccb6c2cf61f52b224dca493c.tar.gz
chromium_src-ad8e04ac88be37d5ccb6c2cf61f52b224dca493c.tar.bz2
Convert implicit scoped_refptr constructor calls to explicit ones, part 1
This CL was created automatically by this clang rewriter: http://codereview.appspot.com/2776043/ . I manually fixed a few rough spots of the rewriter output (doh1-3) and fixed all presubmit errors. BUG=28083 TEST=None Review URL: http://codereview.chromium.org/4192012 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@64573 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'remoting/protocol/jingle_chromotocol_connection_unittest.cc')
-rw-r--r--remoting/protocol/jingle_chromotocol_connection_unittest.cc27
1 files changed, 14 insertions, 13 deletions
diff --git a/remoting/protocol/jingle_chromotocol_connection_unittest.cc b/remoting/protocol/jingle_chromotocol_connection_unittest.cc
index d8f12cd..2d0cb8e 100644
--- a/remoting/protocol/jingle_chromotocol_connection_unittest.cc
+++ b/remoting/protocol/jingle_chromotocol_connection_unittest.cc
@@ -118,10 +118,11 @@ class JingleChromotocolConnectionTest : public testing::Test {
&MockServerCallback::OnIncomingConnection));
client_server_ = new JingleChromotocolServer(&thread_);
client_server_->set_allow_local_ips(true);
- client_server_->Init(SessionManagerPair::kClientJid,
- session_manager_pair_->client_session_manager(),
- NewCallback(&client_server_callback_,
- &MockServerCallback::OnIncomingConnection));
+ client_server_->Init(
+ SessionManagerPair::kClientJid,
+ session_manager_pair_->client_session_manager(),
+ NewCallback(&client_server_callback_,
+ &MockServerCallback::OnIncomingConnection));
}
bool InitiateConnection() {
@@ -422,7 +423,7 @@ class UDPChannelTester : public ChannelTesterBase {
return;
}
- scoped_refptr<net::IOBuffer> packet = new net::IOBuffer(kMessageSize);
+ scoped_refptr<net::IOBuffer> packet(new net::IOBuffer(kMessageSize));
memset(packet->data(), 123, kMessageSize);
sent_packets_[packets_sent_] = packet;
// Put index of this packet in the beginning of the packet body.
@@ -551,9 +552,9 @@ TEST_F(JingleChromotocolConnectionTest, Connect) {
TEST_F(JingleChromotocolConnectionTest, TestControlChannel) {
CreateServerPair();
ASSERT_TRUE(InitiateConnection());
- scoped_refptr<TCPChannelTester> tester =
+ scoped_refptr<TCPChannelTester> tester(
new TCPChannelTester(thread_.message_loop(), host_connection_,
- client_connection_);
+ client_connection_));
tester->Start(ChannelTesterBase::CONTROL);
ASSERT_TRUE(tester->WaitFinished());
tester->CheckResults();
@@ -567,9 +568,9 @@ TEST_F(JingleChromotocolConnectionTest, TestControlChannel) {
TEST_F(JingleChromotocolConnectionTest, TestVideoChannel) {
CreateServerPair();
ASSERT_TRUE(InitiateConnection());
- scoped_refptr<TCPChannelTester> tester =
+ scoped_refptr<TCPChannelTester> tester(
new TCPChannelTester(thread_.message_loop(), host_connection_,
- client_connection_);
+ client_connection_));
tester->Start(ChannelTesterBase::VIDEO);
ASSERT_TRUE(tester->WaitFinished());
tester->CheckResults();
@@ -582,9 +583,9 @@ TEST_F(JingleChromotocolConnectionTest, TestVideoChannel) {
TEST_F(JingleChromotocolConnectionTest, TestEventChannel) {
CreateServerPair();
ASSERT_TRUE(InitiateConnection());
- scoped_refptr<TCPChannelTester> tester =
+ scoped_refptr<TCPChannelTester> tester(
new TCPChannelTester(thread_.message_loop(), host_connection_,
- client_connection_);
+ client_connection_));
tester->Start(ChannelTesterBase::EVENT);
ASSERT_TRUE(tester->WaitFinished());
tester->CheckResults();
@@ -597,9 +598,9 @@ TEST_F(JingleChromotocolConnectionTest, TestEventChannel) {
TEST_F(JingleChromotocolConnectionTest, TestVideoRtpChannel) {
CreateServerPair();
ASSERT_TRUE(InitiateConnection());
- scoped_refptr<UDPChannelTester> tester =
+ scoped_refptr<UDPChannelTester> tester(
new UDPChannelTester(thread_.message_loop(), host_connection_,
- client_connection_);
+ client_connection_));
tester->Start(ChannelTesterBase::VIDEO_RTP);
ASSERT_TRUE(tester->WaitFinished());
tester->CheckResults();