From a1b399f94cde622ddd8fd9e090d81badcb6661be Mon Sep 17 00:00:00 2001 From: "pinkerton@google.com" Date: Wed, 10 Dec 2008 17:16:22 +0000 Subject: 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 --- chrome/chrome.xcodeproj/project.pbxproj | 2 +- chrome/common/ipc_fuzzing_tests.cc | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'chrome') diff --git a/chrome/chrome.xcodeproj/project.pbxproj b/chrome/chrome.xcodeproj/project.pbxproj index c685800..ff6b45c 100644 --- a/chrome/chrome.xcodeproj/project.pbxproj +++ b/chrome/chrome.xcodeproj/project.pbxproj @@ -3698,7 +3698,7 @@ E4F325990EE837BF002533CE /* Release */ = { isa = XCBuildConfiguration; buildSettings = { - PRODUCT_NAME = run_unit_tests; + PRODUCT_NAME = run_ipc_tests; }; name = Release; }; 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 -- cgit v1.1