diff options
author | tedvessenes@gmail.com <tedvessenes@gmail.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-01-13 00:11:01 +0000 |
---|---|---|
committer | tedvessenes@gmail.com <tedvessenes@gmail.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-01-13 00:11:01 +0000 |
commit | b539333a932331e0a13f8418bb88ac6dde696389 (patch) | |
tree | 185db123e60a278bd0aabb3d906a50df63b59535 /ipc | |
parent | 8cae372efd21eb33dff77e25d2b46473ee5258c7 (diff) | |
download | chromium_src-b539333a932331e0a13f8418bb88ac6dde696389.zip chromium_src-b539333a932331e0a13f8418bb88ac6dde696389.tar.gz chromium_src-b539333a932331e0a13f8418bb88ac6dde696389.tar.bz2 |
Convert use of int ms to TimeDelta in files owned by jeremy.
R=jeremy@chromium.org
BUG=108171
TEST=
Review URL: http://codereview.chromium.org/9148039
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@117557 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ipc')
-rw-r--r-- | ipc/ipc_fuzzing_tests.cc | 8 | ||||
-rw-r--r-- | ipc/ipc_logging.cc | 4 | ||||
-rw-r--r-- | ipc/ipc_sync_channel_unittest.cc | 2 | ||||
-rw-r--r-- | ipc/ipc_tests.cc | 4 |
4 files changed, 9 insertions, 9 deletions
diff --git a/ipc/ipc_fuzzing_tests.cc b/ipc/ipc_fuzzing_tests.cc index a45d725..05d177b 100644 --- a/ipc/ipc_fuzzing_tests.cc +++ b/ipc/ipc_fuzzing_tests.cc @@ -1,4 +1,4 @@ -// Copyright (c) 2011 The Chromium Authors. All rights reserved. +// Copyright (c) 2012 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. @@ -267,7 +267,7 @@ TEST_F(IPCFuzzingTest, SanityTest) { &listener); base::ProcessHandle server_process = SpawnChild(FUZZER_SERVER, &chan); ASSERT_TRUE(server_process); - base::PlatformThread::Sleep(1000); + base::PlatformThread::Sleep(base::TimeDelta::FromSeconds(1)); ASSERT_TRUE(chan.Connect()); listener.Init(&chan); @@ -297,7 +297,7 @@ TEST_F(IPCFuzzingTest, MsgBadPayloadShort) { &listener); base::ProcessHandle server_process = SpawnChild(FUZZER_SERVER, &chan); ASSERT_TRUE(server_process); - base::PlatformThread::Sleep(1000); + base::PlatformThread::Sleep(base::TimeDelta::FromSeconds(1)); ASSERT_TRUE(chan.Connect()); listener.Init(&chan); @@ -327,7 +327,7 @@ TEST_F(IPCFuzzingTest, MsgBadPayloadArgs) { &listener); base::ProcessHandle server_process = SpawnChild(FUZZER_SERVER, &chan); ASSERT_TRUE(server_process); - base::PlatformThread::Sleep(1000); + base::PlatformThread::Sleep(base::TimeDelta::FromSeconds(1)); ASSERT_TRUE(chan.Connect()); listener.Init(&chan); diff --git a/ipc/ipc_logging.cc b/ipc/ipc_logging.cc index 9f615bd..d50766c 100644 --- a/ipc/ipc_logging.cc +++ b/ipc/ipc_logging.cc @@ -1,4 +1,4 @@ -// Copyright (c) 2011 The Chromium Authors. All rights reserved. +// Copyright (c) 2012 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. @@ -233,7 +233,7 @@ void Logging::Log(const LogData& data) { queue_invoke_later_pending_ = true; MessageLoop::current()->PostDelayedTask( FROM_HERE, base::Bind(&Logging::OnSendLogs, base::Unretained(this)), - kLogSendDelayMs); + base::TimeDelta::FromMilliseconds(kLogSendDelayMs)); } } } diff --git a/ipc/ipc_sync_channel_unittest.cc b/ipc/ipc_sync_channel_unittest.cc index f396843..81ca560 100644 --- a/ipc/ipc_sync_channel_unittest.cc +++ b/ipc/ipc_sync_channel_unittest.cc @@ -1034,7 +1034,7 @@ namespace { void NestedCallback(Worker* server) { // Sleep a bit so that we wake up after the reply has been received. - base::PlatformThread::Sleep(250); + base::PlatformThread::Sleep(base::TimeDelta::FromMilliseconds(250)); server->SendAnswerToLife(true, base::kNoTimeout, true); } diff --git a/ipc/ipc_tests.cc b/ipc/ipc_tests.cc index 2727681..b6fd38b 100644 --- a/ipc/ipc_tests.cc +++ b/ipc/ipc_tests.cc @@ -1,4 +1,4 @@ -// Copyright (c) 2011 The Chromium Authors. All rights reserved. +// Copyright (c) 2012 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. @@ -501,7 +501,7 @@ TEST_F(IPCChannelTest, Performance) { HANDLE process = SpawnChild(TEST_REFLECTOR, &chan); ASSERT_TRUE(process); - PlatformThread::Sleep(1000); + PlatformThread::Sleep(base::TimeDelta::FromSeconds(1)); PerfTimeLogger logger("IPC_Perf"); |