Back to index

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

Go to the source code of this file.

Functions

 LCM_OJIAPITest (LCM_ShutdownLiveConnect_1)
 LCM_OJIAPITest (LCM_ShutdownLiveConnect_2)

Function Documentation

LCM_OJIAPITest ( LCM_ShutdownLiveConnect_1  )

Definition at line 40 of file ShutdownLiveConnect.cpp.

                                          { 
       GET_LCM_FOR_TEST
       PRBool *out = nsnull;
       nsresult rc = lcMgr->ShutdownLiveConnect(nsnull, *out);
       if (NS_FAILED(rc))
              return TestResult::PASS("Method should fail because no memory is allocated for the result value (PRBool *out = nsnull;)");
       return TestResult::FAIL("ShutdownLiveConnect", rc);

}

Here is the call graph for this function:

LCM_OJIAPITest ( LCM_ShutdownLiveConnect_2  )

Definition at line 50 of file ShutdownLiveConnect.cpp.

                                           { 
       GET_LCM_FOR_TEST
       PRBool out;
       nsresult rc = lcMgr->ShutdownLiveConnect(nsnull, out);
       if (NS_FAILED(rc))
              return TestResult::PASS("Method should fail because first parameter is incorrect (NULL).");
       return TestResult::FAIL("ShutdownLiveConnect", rc);

}

Here is the call graph for this function: