summaryrefslogtreecommitdiffstats
path: root/chrome
diff options
context:
space:
mode:
authorpinkerton@google.com <pinkerton@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-12-10 17:16:22 +0000
committerpinkerton@google.com <pinkerton@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-12-10 17:16:22 +0000
commita1b399f94cde622ddd8fd9e090d81badcb6661be (patch)
treecc97b11e04db4a5659e54efd231ff80b0773f224 /chrome
parentd5470c887121198fbef26029e639f561a1c7eba4 (diff)
downloadchromium_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')
-rw-r--r--chrome/chrome.xcodeproj/project.pbxproj2
-rw-r--r--chrome/common/ipc_fuzzing_tests.cc4
2 files changed, 3 insertions, 3 deletions
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