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

Unified Diff: ipc/ipc_fuzzing_tests.cc

Issue 10692155: Switch to TimeDelta interfaces for process waiting functions in net and ipc. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 8 years, 5 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 | « ipc/ipc_channel_posix_unittest.cc ('k') | ipc/ipc_send_fds_test.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 34394bf8ec0e87e4dd551ef5068bfa49b55f6f2f..4c3e9c9673f072c584ff1738c0a417cea3022157 100644
--- a/ipc/ipc_fuzzing_tests.cc
+++ b/ipc/ipc_fuzzing_tests.cc
@@ -282,7 +282,8 @@ TEST_F(IPCFuzzingTest, SanityTest) {
chan.Send(msg);
EXPECT_TRUE(listener.ExpectMessage(value, MsgClassSI::ID));
- EXPECT_TRUE(base::WaitForSingleProcess(server_process, 5000));
+ EXPECT_TRUE(base::WaitForSingleProcess(
+ server_process, base::TimeDelta::FromSeconds(5)));
base::CloseProcessHandle(server_process);
}
@@ -312,7 +313,8 @@ TEST_F(IPCFuzzingTest, MsgBadPayloadShort) {
chan.Send(msg);
EXPECT_TRUE(listener.ExpectMessage(1, MsgClassSI::ID));
- EXPECT_TRUE(base::WaitForSingleProcess(server_process, 5000));
+ EXPECT_TRUE(base::WaitForSingleProcess(
+ server_process, base::TimeDelta::FromSeconds(5)));
base::CloseProcessHandle(server_process);
}
#endif
@@ -347,7 +349,8 @@ TEST_F(IPCFuzzingTest, MsgBadPayloadArgs) {
chan.Send(msg);
EXPECT_TRUE(listener.ExpectMessage(3, MsgClassIS::ID));
- EXPECT_TRUE(base::WaitForSingleProcess(server_process, 5000));
+ EXPECT_TRUE(base::WaitForSingleProcess(
+ server_process, base::TimeDelta::FromSeconds(5)));
base::CloseProcessHandle(server_process);
}
« no previous file with comments | « ipc/ipc_channel_posix_unittest.cc ('k') | ipc/ipc_send_fds_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698