appfw/apparchitecture/tef/T_groupNametest.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.h"
    30 #include "T_groupNametest.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(KGroupNameTestAppSisFile, "z:\\apparctest\\apparctestsisfiles\\t_groupname.sis");
       
    36 _LIT(KGroupNameTestAppComponent, "T_groupname");
       
    37 
       
    38 
    33 
    39 // CT_GroupNameStep
    34 // CT_GroupNameStep
    40 
    35 
    41 const TUid KUidTGroupName={0x10208185};
    36 const TUid KUidTGroupName={0x10208185};
    42 
    37 
   102 	
    97 	
   103 	TEST(capability.iGroupName == KGroupname);
    98 	TEST(capability.iGroupName == KGroupname);
   104 
    99 
   105 	}
   100 	}
   106 
   101 
   107 TVerdict CT_GroupNameStep::doTestStepPreambleL()
       
   108     {
       
   109     CSisFileInstaller sisFileInstaller;
       
   110     INFO_PRINTF2(_L("Installing sis file from -> %S"), &KGroupNameTestAppSisFile);
       
   111     sisFileInstaller.InstallSisAndWaitForAppListUpdateL(KGroupNameTestAppSisFile);
       
   112 
       
   113     SetTestStepResult(EPass);
       
   114     return TestStepResult();
       
   115     }
       
   116 TVerdict CT_GroupNameStep::doTestStepPostambleL()
       
   117     {
       
   118     CSisFileInstaller sisFileInstaller;
       
   119     sisFileInstaller.UninstallSisL(KGroupNameTestAppComponent);
       
   120     
       
   121     return TestStepResult();
       
   122     }
       
   123 
       
   124 /**
   102 /**
   125    @return - TVerdict code
   103    @return - TVerdict code
   126    Override of base class virtual
   104    Override of base class virtual
   127  */
   105  */
   128 TVerdict CT_GroupNameStep::doTestStepL()
   106 TVerdict CT_GroupNameStep::doTestStepL()