This commit is contained in:
jband%netscape.com 1999-06-29 21:34:50 +00:00
Родитель fee8b8f942
Коммит 4ce4016bd1
4 изменённых файлов: 44 добавлений и 9 удалений

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

@ -922,6 +922,13 @@ int main()
JSBool success = JS_TRUE;
MySecMan* sm = new MySecMan();
if(!sm)
{
success = JS_FALSE;
printf("failed to create SecurityManager!\n");
goto sm_test_done;
}
rval = JSVAL_FALSE;
JS_SetProperty(jscontext, glob, "failed", &rval);
printf("Individual SecurityManager tests...\n");

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

@ -192,9 +192,17 @@ xpctest::ConstructChild(nsISupports *aOuter, REFNSIID aIID, void **aResult)
nsresult rv;
NS_ASSERTION(aOuter == nsnull, "no aggregation");
xpctestChild* obj = new xpctestChild();
rv = obj->QueryInterface(aIID, aResult);
NS_ASSERTION(NS_SUCCEEDED(rv), "unable to find correct interface");
NS_RELEASE(obj);
if(obj)
{
rv = obj->QueryInterface(aIID, aResult);
NS_ASSERTION(NS_SUCCEEDED(rv), "unable to find correct interface");
NS_RELEASE(obj);
}
else
{
*aResult = nsnull;
rv = NS_ERROR_OUT_OF_MEMORY;
}
return rv;
}
/***************************************************************************/

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

@ -288,8 +288,18 @@ xpctest::ConstructEcho(nsISupports *aOuter, REFNSIID aIID, void **aResult)
nsresult rv;
NS_ASSERTION(aOuter == nsnull, "no aggregation");
xpctestEcho* obj = new xpctestEcho();
rv = obj->QueryInterface(aIID, aResult);
NS_ASSERTION(NS_SUCCEEDED(rv), "unable to find correct interface");
NS_RELEASE(obj);
if(obj)
{
rv = obj->QueryInterface(aIID, aResult);
NS_ASSERTION(NS_SUCCEEDED(rv), "unable to find correct interface");
NS_RELEASE(obj);
}
else
{
*aResult = nsnull;
rv = NS_ERROR_OUT_OF_MEMORY;
}
return rv;
}

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

@ -112,9 +112,19 @@ xpctest::ConstructNoisy(nsISupports *aOuter, REFNSIID aIID, void **aResult)
nsresult rv;
NS_ASSERTION(aOuter == nsnull, "no aggregation");
xpctestNoisy* obj = new xpctestNoisy();
rv = obj->QueryInterface(aIID, aResult);
NS_ASSERTION(NS_SUCCEEDED(rv), "unable to find correct interface");
NS_RELEASE(obj);
if(obj)
{
rv = obj->QueryInterface(aIID, aResult);
NS_ASSERTION(NS_SUCCEEDED(rv), "unable to find correct interface");
NS_RELEASE(obj);
}
else
{
*aResult = nsnull;
rv = NS_ERROR_OUT_OF_MEMORY;
}
return rv;
}
/***************************************************************************/