diff options
author | pinkerton@google.com <pinkerton@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-12-10 17:16:22 +0000 |
---|---|---|
committer | pinkerton@google.com <pinkerton@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-12-10 17:16:22 +0000 |
commit | a1b399f94cde622ddd8fd9e090d81badcb6661be (patch) | |
tree | cc97b11e04db4a5659e54efd231ff80b0773f224 /chrome/common | |
parent | d5470c887121198fbef26029e639f561a1c7eba4 (diff) | |
download | chromium_src-a1b399f94cde622ddd8fd9e090d81badcb6661be.zip chromium_src-a1b399f94cde622ddd8fd9e090d81badcb6661be.tar.gz chromium_src-a1b399f94cde622ddd8fd9e090d81badcb6661be.tar.bz2 |
run ipc unit tests in release mode (was running other unit tests). port code wrapped in NDEBUG to get release mode compiling and running
Review URL: http://codereview.chromium.org/13346
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@6712 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common')
-rw-r--r-- | chrome/common/ipc_fuzzing_tests.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/chrome/common/ipc_fuzzing_tests.cc b/chrome/common/ipc_fuzzing_tests.cc index 9a825c9..cec05fb 100644 --- a/chrome/common/ipc_fuzzing_tests.cc +++ b/chrome/common/ipc_fuzzing_tests.cc @@ -314,7 +314,7 @@ TEST_F(IPCFuzzingTest, SanityTest) { TEST_F(IPCFuzzingTest, MsgBadPayloadShort) { base::ProcessHandle server_process = SpawnChild(FUZZER_SERVER); ASSERT_TRUE(server_process); - ::Sleep(1000); + PlatformThread::Sleep(1000); FuzzerClientListener listener; IPC::Channel chan(kFuzzerChannel, IPC::Channel::MODE_CLIENT, &listener); @@ -331,7 +331,7 @@ TEST_F(IPCFuzzingTest, MsgBadPayloadShort) { chan.Send(msg); EXPECT_TRUE(listener.ExpectMessage(1, MsgClassSI::ID)); - ASSERT_EQ(WAIT_OBJECT_0, ::WaitForSingleObject(server_process, 5000)); + EXPECT_TRUE(base::WaitForSingleProcess(server_process, 5000)); } #endif // NDEBUG |