LOG(("\tRead: %d bytes.\n", info->mBytesRead)); if (!info->mBytesRead) {
LOG(("\tRead: %lld bytes.\n", info->mBytesRead.mValue)); if (info->mBytesRead == nsInt64(0)) {
InputTestConsumer::OnStopRequest(nsIRequest *request, nsISupports* context,                                 nsresult aStatus){  LOG(("InputTestConsumer::OnStopRequest [status=%x]\n", aStatus));  URLLoadInfo* info = (URLLoadInfo*)context;  if (info) {    double connectTime;    double readTime;    PRUint32 httpStatus;    PRBool bHTTPURL = PR_FALSE;    info->mTotalTime = PR_Now() - info->mTotalTime;    connectTime = (info->mConnectTime/1000.0)/1000.0;    readTime    = ((info->mTotalTime-info->mConnectTime)/1000.0)/1000.0;    nsCOMPtr<nsIHttpChannel> pHTTPCon(do_QueryInterface(request));    if (pHTTPCon) {        pHTTPCon->GetResponseStatus(&httpStatus);        bHTTPURL = PR_TRUE;    }    LOG(("\nFinished loading: %s  Status Code: %x\n", info->Name(), aStatus));    if (bHTTPURL)        LOG(("\tHTTP Status: %u\n", httpStatus));     if (NS_ERROR_UNKNOWN_HOST == aStatus ||         NS_ERROR_UNKNOWN_PROXY_HOST == aStatus) {         LOG(("\tDNS lookup failed.\n"));     }    LOG(("\tTime to connect: %.3f seconds\n", connectTime));    LOG(("\tTime to read: %.3f seconds.\n", readTime));    LOG(("\tRead: %d bytes.\n", info->mBytesRead));    if (!info->mBytesRead) {    } else if (readTime > 0.0) {      LOG(("\tThroughput: %.0f bps.\n", (info->mBytesRead*8)/readTime));    } else {      LOG(("\tThroughput: REAL FAST!!\n"));    }  } else {    LOG(("\nFinished loading: UNKNOWN URL. Status Code: %x\n", aStatus));  }  FireDecrement();  return NS_OK;}