From 09ec7d51d0175129fc8aecefbd1b2773c729c43b Mon Sep 17 00:00:00 2001 From: "warren%netscape.com" Date: Sat, 13 Nov 1999 06:18:34 +0000 Subject: [PATCH] Fixed QI problem now that comptrs check. --- xpcom/tests/TestPipes.cpp | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/xpcom/tests/TestPipes.cpp b/xpcom/tests/TestPipes.cpp index e22dec134f4a..ffeb64404563 100644 --- a/xpcom/tests/TestPipes.cpp +++ b/xpcom/tests/TestPipes.cpp @@ -287,7 +287,7 @@ TestPipeObserver() if (obs == nsnull) return NS_ERROR_OUT_OF_MEMORY; NS_ADDREF(obs); - printf("TestPipeObserver: OnWrite, OnFull and OnEmpty should be called once each.\n"); + printf("TestPipeObserver: OnWrite and OnFull should be called once, OnEmpty should be called twice.\n"); nsIBufferInputStream* in; nsIBufferOutputStream* out; rv = NS_NewPipe(&in, &out, obs, 20, 20); @@ -391,16 +391,7 @@ protected: PRUint32 mCount; }; -NS_IMPL_ADDREF(nsPump); -NS_IMPL_RELEASE(nsPump); - -NS_IMETHODIMP -nsPump::QueryInterface(REFNSIID aIID, - void** aInstancePtr) -{ - // not used in this test - return NS_ERROR_NOT_IMPLEMENTED; -} +NS_IMPL_ISUPPORTS2(nsPump, nsIPipeObserver, nsIRunnable) nsresult TestChainedPipes()