m_nntpProtocol = new nsNNTPProtocol(m_url, m_transport); if (m_nntpProtocol == nsnull) {
rv = nsComponentManager::CreateInstance(kNNTPProtocolCID, nsnull, nsINNTPProtocol::GetIID(), getter_AddRefs(m_nntpProtocol)); if (NS_FAILED(rv)) {
nsNntpTestDriver::InitializeProtocol(const char * urlString){    nsresult rv = NS_OK;	// this is called when we don't have a url nor a protocol instance yet...	rv = nsComponentManager::CreateInstance(kNntpUrlCID, nsnull, nsINntpUrl::GetIID(), (void **) &m_url);	if (NS_FAILED(rv) || (m_url == nsnull)) 	{         printf("InitializeProtocol failed\n");        m_protocolInitialized = PR_FALSE;        return rv;    }    m_url->SetSpec(urlString);	m_url->RegisterListener(this);	// now create a protocol instance...	m_nntpProtocol = new nsNNTPProtocol(m_url, m_transport);    if (m_nntpProtocol == nsnull) {        m_protocolInitialized = PR_FALSE;        return NS_ERROR_OUT_OF_MEMORY;    }    else {        m_protocolInitialized = PR_TRUE;        return rv;    }}