From 84e34b44deef2a332c7f279fd95f940174a665db Mon Sep 17 00:00:00 2001 From: "timeless%mozdev.org" Date: Tue, 8 Apr 2003 22:01:43 +0000 Subject: [PATCH] Bug 199200 Make Networking Tests XP friendly by using the eventqueueservice r=darin git-svn-id: svn://10.0.0.236/trunk@140871 18797224-902f-48f8-a5cc-f745e15eee43 --- .../streamconv/test/TestStreamConv.cpp | 31 ++----------------- 1 file changed, 2 insertions(+), 29 deletions(-) diff --git a/mozilla/netwerk/streamconv/test/TestStreamConv.cpp b/mozilla/netwerk/streamconv/test/TestStreamConv.cpp index f52c52b1b8b..4528c6be200 100644 --- a/mozilla/netwerk/streamconv/test/TestStreamConv.cpp +++ b/mozilla/netwerk/streamconv/test/TestStreamConv.cpp @@ -277,37 +277,10 @@ main(int argc, char* argv[]) // Enter the message pump to allow the URL load to proceed. while ( gKeepRunning ) { -#ifdef XP_WIN - MSG msg; - - if (GetMessage(&msg, NULL, 0, 0)) { - TranslateMessage(&msg); - DispatchMessage(&msg); - } else - gKeepRunning = PR_FALSE; -#else -#ifdef XP_MAC - /* Mac stuff is missing here! */ -#else -#ifdef XP_OS2 - QMSG qmsg; - - if (WinGetMsg(0, &qmsg, 0, 0, 0)) - WinDispatchMsg(0, &qmsg); - else - gKeepRunning = PR_FALSE; -#else -#ifdef XP_UNIX PLEvent *gEvent; - rv = gEventQ->GetEvent(&gEvent); - rv = gEventQ->HandleEvent(gEvent); + gEventQ->WaitForEvent(&gEvent); + gEventQ->HandleEvent(gEvent); /* gKeepRunning = PR_FALSE; */ -#else - /* Other stuff is missing here! */ -#endif /* XP_UNIX */ -#endif /* XP_OS2 */ -#endif /* XP_MAC */ -#endif /* XP_WIN */ } } // this scopes the nsCOMPtrs // no nsCOMPtrs are allowed to be alive when you call NS_ShutdownXPCOM