appfw/apparchitecture/tef/T_groupNametest_ver2.cpp
branchRCL_3
changeset 63 c2c61fdca848
parent 62 924385140d98
equal deleted inserted replaced
62:924385140d98 63:c2c61fdca848
     1 // Copyright (c) 2005-2010 Nokia Corporation and/or its subsidiary(-ies).
     1 // Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies).
     2 // All rights reserved.
     2 // All rights reserved.
     3 // This component and the accompanying materials are made available
     3 // This component and the accompanying materials are made available
     4 // under the terms of "Eclipse Public License v1.0"
     4 // under the terms of "Eclipse Public License v1.0"
     5 // which accompanies this distribution, and is available
     5 // which accompanies this distribution, and is available
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
    28 #include <apaidpartner.h>
    28 #include <apaidpartner.h>
    29 #endif //SYMBIAN_ENABLE_SPLIT_HEADERS
    29 #endif //SYMBIAN_ENABLE_SPLIT_HEADERS
    30 #include "T_groupNametest_ver2.h"
    30 #include "T_groupNametest_ver2.h"
    31 #include "apparctestserver.h"
    31 #include "apparctestserver.h"
    32 #include <test/testexecutestepbase.h>
    32 #include <test/testexecutestepbase.h>
    33 #include "T_SisFileInstaller.h"
       
    34 
       
    35 _LIT(KGroupNameVer2AppSisFile, "z:\\apparctest\\apparctestsisfiles\\T_groupname_ver2.sis");
       
    36 _LIT(KGroupNameVer2AppComponent, "T_groupname_ver2");
       
    37 
    33 
    38 // CT_GroupNameStep_ver2
    34 // CT_GroupNameStep_ver2
    39 
    35 
    40 
    36 
    41 const TUid KUidTGroupName={0x10208184};
    37 const TUid KUidTGroupName={0x10208184};
    89 			
    85 			
    90 	TEST(info.iCaption == KCaption);
    86 	TEST(info.iCaption == KCaption);
    91 	TEST(info.iShortCaption == KShortCaption);
    87 	TEST(info.iShortCaption == KShortCaption);
    92 	}
    88 	}
    93 
    89 
    94 TVerdict CT_GroupNameStep_ver2::doTestStepPreambleL()
       
    95     {
       
    96     CSisFileInstaller sisFileInstaller;
       
    97     INFO_PRINTF2(_L("Installing sis file from -> %S"), &KGroupNameVer2AppSisFile);
       
    98     sisFileInstaller.InstallSisAndWaitForAppListUpdateL(KGroupNameVer2AppSisFile);
       
    99 
       
   100     SetTestStepResult(EPass);
       
   101     return TestStepResult();
       
   102     }
       
   103 	
       
   104 TVerdict CT_GroupNameStep_ver2::doTestStepPostambleL()
       
   105     {
       
   106     CSisFileInstaller sisFileInstaller;
       
   107     sisFileInstaller.UninstallSisL(KGroupNameVer2AppComponent);
       
   108     
       
   109     return TestStepResult();
       
   110     }
       
   111 
       
   112 
       
   113 /**
    90 /**
   114    @return - TVerdict code
    91    @return - TVerdict code
   115    Override of base class virtual
    92    Override of base class virtual
   116  */
    93  */
   117 TVerdict CT_GroupNameStep_ver2::doTestStepL()
    94 TVerdict CT_GroupNameStep_ver2::doTestStepL()