From 1ac8d114366da9505015ff6df4ba4d29f3ce920f Mon Sep 17 00:00:00 2001 From: "gagan%netscape.com" Date: Wed, 8 Mar 2000 00:35:24 +0000 Subject: [PATCH] New event sink changes for the test case. git-svn-id: svn://10.0.0.236/trunk@62359 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/netwerk/test/Makefile.in | 1 - mozilla/netwerk/test/TestProtocols.cpp | 21 +-------------------- 2 files changed, 1 insertion(+), 21 deletions(-) diff --git a/mozilla/netwerk/test/Makefile.in b/mozilla/netwerk/test/Makefile.in index a88afaa3207..4729d522a76 100644 --- a/mozilla/netwerk/test/Makefile.in +++ b/mozilla/netwerk/test/Makefile.in @@ -52,7 +52,6 @@ LOST_SYM_LIBS = -lxpcomds_s -lxpcomio_s -lxptinfo -lmozreg_s endif LIBS = \ - -lmozjs \ -lxpcom \ $(LOST_SYM_LIBS) \ $(NSPR_LIBS) \ diff --git a/mozilla/netwerk/test/TestProtocols.cpp b/mozilla/netwerk/test/TestProtocols.cpp index f6caac747f8..0e703573037 100644 --- a/mozilla/netwerk/test/TestProtocols.cpp +++ b/mozilla/netwerk/test/TestProtocols.cpp @@ -45,7 +45,7 @@ #include "nsIChannel.h" #include "nsIURL.h" #include "nsIHTTPChannel.h" -#include "nsIHttpEventSink.h" +#include "nsIHTTPEventSink.h" #include "nsIInterfaceRequestor.h" #include "nsIDNSService.h" @@ -111,14 +111,9 @@ public: NS_DECL_ISUPPORTS // nsIHTTPEventSink interface... - NS_IMETHOD OnAwaitingInput(nsISupports* i_Context); NS_IMETHOD OnHeadersAvailable(nsISupports* i_Context); - NS_IMETHOD OnProgress(nsISupports* i_Context, - PRUint32 i_Progress, - PRUint32 i_ProgressMax); - // OnRedirect gets fired only if you have set FollowRedirects on the handler! NS_IMETHOD OnRedirect(nsISupports* i_Context, nsIURI* i_NewLocation); @@ -136,13 +131,6 @@ TestHTTPEventSink::~TestHTTPEventSink() NS_IMPL_ISUPPORTS(TestHTTPEventSink,NS_GET_IID(nsIHTTPEventSink)); -NS_IMETHODIMP -TestHTTPEventSink::OnAwaitingInput(nsISupports* context) -{ - printf("\n+++ TestHTTPEventSink::OnAwaitingInput +++\n"); - return NS_OK; -} - NS_IMETHODIMP TestHTTPEventSink::OnHeadersAvailable(nsISupports* context) { @@ -231,13 +219,6 @@ TestHTTPEventSink::OnHeadersAvailable(nsISupports* context) return NS_OK; } -NS_IMETHODIMP -TestHTTPEventSink::OnProgress(nsISupports* context, PRUint32 i_Progress, PRUint32 i_ProgressMax) -{ - printf("\n+++ TestHTTPEventSink::OnProgress +++\n"); - return NS_OK; -} - NS_IMETHODIMP TestHTTPEventSink::OnRedirect(nsISupports* context, nsIURI* i_NewLocation) {