stif/TestServer/src/TestModuleContainer.cpp
branchRCL_3
changeset 14 381827f66490
parent 0 a03f92240627
equal deleted inserted replaced
12:7e287c5c61f0 14:381827f66490
  1745         {
  1745         {
  1746         // Print reset module name
  1746         // Print reset module name
  1747         __TRACE( KInit, (  _L("Loaded test module[%S]"), &dllName ) );
  1747         __TRACE( KInit, (  _L("Loaded test module[%S]"), &dllName ) );
  1748         }
  1748         }
  1749 
  1749 
  1750     // Verify the UID
  1750     
  1751     TUid KUidTestModule = TUid::Uid ( 0x101FB3E7 );
       
  1752     TUidType requiredUID( KDynamicLibraryUid, KSharedLibraryUid, KUidTestModule );
       
  1753 
       
  1754     TUidType moduleUID = testModule.Type();    
       
  1755     if ( moduleUID != requiredUID )
       
  1756         {
       
  1757         // New instance can't be created
       
  1758         RDebug::Print( ( _L("STIF TF: Test module has invalid UID. Aborting loading!") ) );
       
  1759         __TRACE ( KError, ( CStifLogger::EError, _L("Test module has invalid UID. Aborting loading!" ) ) );
       
  1760         testModule.Close();
       
  1761         return KErrNotSupported;
       
  1762         }
       
  1763 
  1751 
  1764     CTestInterfaceFactoryTestModule libEntry = NULL;
  1752     CTestInterfaceFactoryTestModule libEntry = NULL;
  1765     
  1753     
  1766 #if defined( __ARMCC__ )
  1754 #if defined( __ARMCC__ )
  1767         {
  1755         {
  1971 
  1959 
  1972 -------------------------------------------------------------------------------
  1960 -------------------------------------------------------------------------------
  1973 */
  1961 */
  1974 void CTestModuleContainer::GetTestCaseTitleL(TDes& aTestCaseTitle)
  1962 void CTestModuleContainer::GetTestCaseTitleL(TDes& aTestCaseTitle)
  1975     {
  1963     {
  1976     iCTestModule->GetTestCaseTitleL(iOperationIntBuffer, aTestCaseTitle); //currently run test case stored in the iOperationIntBuffer variable 
  1964     //currently run test case stored in the iOperationIntBuffer variable
       
  1965     iCTestModule->GetTestCaseTitleL( iOperationIntBuffer, 
       
  1966                                      iCTestExecution->GetConfigFileName(),
       
  1967                                     aTestCaseTitle);  
  1977     }
  1968     }
  1978 
  1969 
  1979 
  1970 
  1980 /*
  1971 /*
  1981 -------------------------------------------------------------------------------
  1972 -------------------------------------------------------------------------------