updating the stream converter tests. registration now happens in nsConvFactories.cpp

This commit is contained in:
valeski%netscape.com 2000-03-29 23:14:52 +00:00
Родитель a2c0fda387
Коммит 17c882b79a
1 изменённых файлов: 0 добавлений и 13 удалений

Просмотреть файл

@ -60,7 +60,6 @@ static nsIEventQueue* gEventQ = nsnull;
// Test converters include
/////////////////////////////////
#include "Converters.h"
#include "nsMultiMixedConv.h"
// CID setup
static NS_DEFINE_CID(kEventQueueServiceCID, NS_EVENTQUEUESERVICE_CID);
@ -164,11 +163,6 @@ main(int argc, char* argv[])
rv = convFactory1->QueryInterface(NS_GET_IID(nsIFactory), (void**)&convFactSup1);
if (NS_FAILED(rv)) return rv;
// multipart mixed converter registration
nsIFactory *multiMixedFactSup = nsnull;
rv = nsComponentManager::FindFactory(kMultiMixedConverterCID, &multiMixedFactSup);
if (NS_FAILED(rv)) return rv;
// register the TestConverter with the component manager. One progid registration
// per conversion pair (from - to pair).
rv = nsComponentManager::RegisterFactory(kTestConverterCID,
@ -185,13 +179,6 @@ main(int argc, char* argv[])
PR_TRUE);
if (NS_FAILED(rv)) return rv;
rv = nsComponentManager::RegisterFactory(kMultiMixedConverterCID,
"MultiMixedConverter",
NS_ISTREAMCONVERTER_KEY "?from=multipart/x-mixed-replace?to=text/html",
multiMixedFactSup,
PR_TRUE);
if (NS_FAILED(rv)) return rv;
rv = nsComponentManager::RegisterFactory(kTestConverterCID,
"TestConverter",
NS_ISTREAMCONVERTER_KEY "?from=b/foo?to=d/foo",