summaryrefslogtreecommitdiffstats
path: root/ipc/ipc_fuzzing_tests.cc
diff options
context:
space:
mode:
authortedvessenes@gmail.com <tedvessenes@gmail.com@0039d316-1c4b-4281-b951-d872f2087c98>2012-07-11 15:41:43 +0000
committertedvessenes@gmail.com <tedvessenes@gmail.com@0039d316-1c4b-4281-b951-d872f2087c98>2012-07-11 15:41:43 +0000
commit0f2e45ec2650ebd32037ca109f1876ed85ce1fd5 (patch)
tree0e289579bccf4d39273e60010eeed8699fa00bd8 /ipc/ipc_fuzzing_tests.cc
parentb80ffe2725c3d5ca17d21e3743c06689bca46935 (diff)
downloadchromium_src-0f2e45ec2650ebd32037ca109f1876ed85ce1fd5.zip
chromium_src-0f2e45ec2650ebd32037ca109f1876ed85ce1fd5.tar.gz
chromium_src-0f2e45ec2650ebd32037ca109f1876ed85ce1fd5.tar.bz2
Switch to TimeDelta interfaces for process waiting functions in net and ipc.
R=agl@chromium.org BUG=108171 Review URL: https://chromiumcodereview.appspot.com/10692155 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@146124 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ipc/ipc_fuzzing_tests.cc')
-rw-r--r--ipc/ipc_fuzzing_tests.cc9
1 files changed, 6 insertions, 3 deletions
diff --git a/ipc/ipc_fuzzing_tests.cc b/ipc/ipc_fuzzing_tests.cc
index 34394bf..4c3e9c9 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);
}