diff options
author | tedvessenes@gmail.com <tedvessenes@gmail.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-03-14 05:53:39 +0000 |
---|---|---|
committer | tedvessenes@gmail.com <tedvessenes@gmail.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-03-14 05:53:39 +0000 |
commit | 2edb72bceb1357d3afc31a539938a2d151008746 (patch) | |
tree | 1eab28d3528b9852161c2fad1dea052853e9e5d9 /content | |
parent | aa24bdd957303147bfc05603d52b059acccfdbc0 (diff) | |
download | chromium_src-2edb72bceb1357d3afc31a539938a2d151008746.zip chromium_src-2edb72bceb1357d3afc31a539938a2d151008746.tar.gz chromium_src-2edb72bceb1357d3afc31a539938a2d151008746.tar.bz2 |
Fix more uses of TimeDelta in content/renderer/p2p.
Apologies; I missed this file in the last patch set.
R=sergeyu@chromium.org
BUG=108171
Review URL: http://codereview.chromium.org/9689052
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@126577 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content')
-rw-r--r-- | content/renderer/p2p/p2p_transport_impl_unittest.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/content/renderer/p2p/p2p_transport_impl_unittest.cc b/content/renderer/p2p/p2p_transport_impl_unittest.cc index 075152f..24d6ddc 100644 --- a/content/renderer/p2p/p2p_transport_impl_unittest.cc +++ b/content/renderer/p2p/p2p_transport_impl_unittest.cc @@ -120,7 +120,7 @@ class UdpChannelTester : public base::RefCountedThreadSafe<UdpChannelTester> { packets_sent_++; message_loop_->PostDelayedTask( FROM_HERE, base::Bind(&UdpChannelTester::DoWrite, this), - kUdpWriteDelayMs); + base::TimeDelta::FromMilliseconds(kUdpWriteDelayMs)); } } @@ -262,7 +262,7 @@ class TcpChannelTester : public base::RefCountedThreadSafe<TcpChannelTester> { send_buffer_->DidConsume(result); message_loop_->PostDelayedTask( FROM_HERE, base::Bind(&TcpChannelTester::DoWrite, this), - kTcpWriteDelayMs); + base::TimeDelta::FromMilliseconds(kTcpWriteDelayMs)); } } @@ -439,7 +439,7 @@ TEST_F(P2PTransportImplTest, SendDataUdp) { &message_loop_, transport1_->GetChannel(), transport2_->GetChannel()); message_loop_.PostDelayedTask(FROM_HERE, MessageLoop::QuitClosure(), - TestTimeouts::action_max_timeout_ms()); + TestTimeouts::action_max_timeout()); channel_tester->Start(); message_loop_.Run(); @@ -484,7 +484,7 @@ TEST_F(P2PTransportImplTest, SendDataTcp) { .RetiresOnSaturation(); message_loop_.PostDelayedTask(FROM_HERE, MessageLoop::QuitClosure(), - TestTimeouts::action_max_timeout_ms()); + TestTimeouts::action_max_timeout()); channel_tester->Init(); message_loop_.Run(); |