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

Unified Diff: ipc/ipc_fuzzing_tests.cc

Issue 9148039: Convert use of int ms to TimeDelta in files owned by jeremy. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Remove static class initialization. Created 8 years, 11 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
« no previous file with comments | « no previous file | ipc/ipc_logging.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ipc/ipc_fuzzing_tests.cc
diff --git a/ipc/ipc_fuzzing_tests.cc b/ipc/ipc_fuzzing_tests.cc
index a45d72599ce57db3be44699fac5009245fb9c748..c9dd4c47f6685201caa9a0599907d338b2189318 100644
--- a/ipc/ipc_fuzzing_tests.cc
+++ b/ipc/ipc_fuzzing_tests.cc
@@ -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);
« no previous file with comments | « no previous file | ipc/ipc_logging.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698