Back to index

lightning-sunbird  0.9+nobinonly
Functions
GetCurrentThread.cpp File Reference
#include <ThreadManagerTests.h>

Go to the source code of this file.

Functions

 TM_OJIAPITest (ThreadManager_GetCurrentThread_2)
 TM_OJIAPITest (ThreadManager_GetCurrentThread_1)

Function Documentation

TM_OJIAPITest ( ThreadManager_GetCurrentThread_2  )

Definition at line 41 of file GetCurrentThread.cpp.

                                                {
       GET_TM_FOR_TEST
       nsresult rc = threadMgr->GetCurrentThread(NULL);
       if (NS_FAILED(rc))
              return TestResult::PASS("Method should fail because no memory is allocated for the result pointer.");
       return TestResult::FAIL("GetCurrentThread", rc);

}

Here is the call graph for this function:

TM_OJIAPITest ( ThreadManager_GetCurrentThread_1  )

Definition at line 50 of file GetCurrentThread.cpp.

                                                {
       GET_TM_FOR_TEST
       PRUint32 *id;

       nsresult rc = threadMgr->GetCurrentThread((nsPluginThread**)&id);
       //printf("Current thread id %d\n", (*id));
       if (NS_SUCCEEDED(rc))
              return TestResult::PASS("Method should work OK.");
       return TestResult::FAIL("GetCurrentThread", rc);

}

Here is the call graph for this function: