Bug 650429 - Enable TestProtocols with libxul

r=bz
This commit is contained in:
Christian Biesinger 2011-04-28 11:30:30 -07:00
parent 3d424c6d15
commit fc9ad38a0f
2 changed files with 2 additions and 2 deletions

View File

@ -68,6 +68,7 @@ SIMPLE_PROGRAMS = \
TestCookie$(BIN_SUFFIX) \
TestServ$(BIN_SUFFIX) \
ReadNTLM$(BIN_SUFFIX) \
TestProtocols$(BIN_SUFFIX) \
$(NULL)
ifndef MOZ_ENABLE_LIBXUL
@ -78,7 +79,6 @@ SIMPLE_PROGRAMS += \
TestStreamTransport$(BIN_SUFFIX) \
TestStreamChannel$(BIN_SUFFIX) \
TestStreamPump$(BIN_SUFFIX) \
TestProtocols$(BIN_SUFFIX) \
TestIOThreads$(BIN_SUFFIX) \
TestUDPSocketProvider$(BIN_SUFFIX) \
$(NULL)

View File

@ -538,7 +538,7 @@ InputTestConsumer::OnStopRequest(nsIRequest *request, nsISupports* context,
}
LOG(("\tTime to connect: %.3f seconds\n", connectTime));
LOG(("\tTime to read: %.3f seconds.\n", readTime));
LOG(("\tRead: %lld bytes.\n", info->mBytesRead.mValue));
LOG(("\tRead: %lld bytes.\n", info->mBytesRead));
if (info->mBytesRead == PRInt64(0)) {
} else if (readTime > 0.0) {
LOG(("\tThroughput: %.0f bps.\n", (PRFloat64)(info->mBytesRead*PRInt64(8))/readTime));