Back to index

lightning-sunbird  0.9+nobinonly
Classes | Defines | Functions | Variables
TestStreamPump.cpp File Reference
#include "TestCommon.h"
#include "nsIComponentRegistrar.h"
#include "nsIStreamTransportService.h"
#include "nsIAsyncInputStream.h"
#include "nsIProgressEventSink.h"
#include "nsIInterfaceRequestor.h"
#include "nsIInterfaceRequestorUtils.h"
#include "nsIProxyObjectManager.h"
#include "nsIRequest.h"
#include "nsIServiceManager.h"
#include "nsIComponentManager.h"
#include "nsISeekableStream.h"
#include "nsCOMPtr.h"
#include "nsMemory.h"
#include "nsString.h"
#include "nsIFileStreams.h"
#include "nsIStreamListener.h"
#include "nsIEventQueueService.h"
#include "nsIEventQueue.h"
#include "nsILocalFile.h"
#include "nsNetUtil.h"
#include "nsAutoLock.h"
#include "prlog.h"
#include "prprf.h"

Go to the source code of this file.

Classes

class  MyListener

Defines

#define LOG(args)

Functions

static NS_DEFINE_CID (kEventQueueServiceCID, NS_EVENTQUEUESERVICE_CID)
static void *PR_CALLBACK DoneEvent_Handler (PLEvent *ev)
static void PR_CALLBACK DoneEvent_Cleanup (PLEvent *ev)
static void PostDoneEvent ()
 NS_IMPL_ISUPPORTS2 (MyListener, nsIRequestObserver, nsIStreamListener) static nsresult RunTest(nsIFile *file
 asynchronously copy file.

Variables

PRBool gDone = PR_FALSE
nsIEventQueuegEventQ = nsnull
PRInt64 offset

Define Documentation

#define LOG (   args)

Definition at line 72 of file TestStreamPump.cpp.


Function Documentation

static void PR_CALLBACK DoneEvent_Cleanup ( PLEvent ev) [static]

Definition at line 92 of file TestStreamPump.cpp.

{
    delete ev;
}

Here is the caller graph for this function:

static void* PR_CALLBACK DoneEvent_Handler ( PLEvent ev) [static]

Definition at line 85 of file TestStreamPump.cpp.

{
    gDone = PR_TRUE;
    return nsnull;
}

Here is the caller graph for this function:

asynchronously copy file.

static void PostDoneEvent ( ) [static]

Definition at line 98 of file TestStreamPump.cpp.

{
    LOG(("PostDoneEvent\n"));

    PLEvent *ev = new PLEvent();

    PL_InitEvent(ev, nsnull, 
            DoneEvent_Handler,
            DoneEvent_Cleanup);

    gEventQ->PostEvent(ev);
}

Here is the call graph for this function:

Here is the caller graph for this function:


Variable Documentation

Definition at line 79 of file TestStreamPump.cpp.

Definition at line 80 of file TestStreamPump.cpp.

Definition at line 173 of file TestStreamPump.cpp.