Skip to content

Commit

Permalink
Convert use of int ms to TimeDelta in files owned by jeremy.
Browse files Browse the repository at this point in the history
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
  • Loading branch information
tedvessenes@gmail.com committed Jan 13, 2012
1 parent 8cae372 commit b539333
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
8 changes: 4 additions & 4 deletions ipc/ipc_fuzzing_tests.cc
Original file line number Diff line number Diff line change
@@ -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.

Expand Down Expand Up @@ -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);

Expand Down Expand Up @@ -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);

Expand Down Expand Up @@ -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);

Expand Down
4 changes: 2 additions & 2 deletions ipc/ipc_logging.cc
Original file line number Diff line number Diff line change
@@ -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.

Expand Down Expand Up @@ -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));
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion ipc/ipc_sync_channel_unittest.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down
4 changes: 2 additions & 2 deletions ipc/ipc_tests.cc
Original file line number Diff line number Diff line change
@@ -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.

Expand Down Expand Up @@ -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");

Expand Down

0 comments on commit b539333

Please sign in to comment.