mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-10 11:55:49 +00:00
Register inet service so that the test works again
This commit is contained in:
parent
511247f78f
commit
2f44ed8ee1
@ -29,7 +29,7 @@
|
||||
#include "nsIInputStream.h"
|
||||
#include "nsIURL.h"
|
||||
#include "nsINetService.h"
|
||||
|
||||
#include "nsRepository.h"
|
||||
#include "nsString.h"
|
||||
|
||||
int urlLoaded;
|
||||
@ -37,6 +37,19 @@ PRBool bTraceEnabled;
|
||||
PRBool bLoadAsync;
|
||||
|
||||
#include "nsIPostToServer.h"
|
||||
#include "nsINetService.h"
|
||||
|
||||
#ifdef XP_PC
|
||||
#define NETLIB_DLL "netlib.dll"
|
||||
#else
|
||||
#ifdef XP_MAC
|
||||
#include "nsMacRepository.h"
|
||||
#else
|
||||
#define NETLIB_DLL "netlib.so"
|
||||
#endif
|
||||
#endif
|
||||
|
||||
static NS_DEFINE_IID(kNetServiceCID, NS_NETSERVICE_CID);
|
||||
|
||||
NS_DEFINE_IID(kIPostToServerIID, NS_IPOSTTOSERVER_IID);
|
||||
|
||||
@ -200,6 +213,8 @@ int main(int argc, char **argv)
|
||||
return 0;
|
||||
}
|
||||
|
||||
nsRepository::RegisterFactory(kNetServiceCID, NETLIB_DLL, PR_FALSE, PR_FALSE);
|
||||
|
||||
bTraceEnabled = PR_FALSE;
|
||||
bLoadAsync = PR_TRUE;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user