appfw/apparchitecture/tef/T_AppList.cpp
branchRCL_3
changeset 19 924385140d98
parent 0 2e3d3ce01487
child 20 c2c61fdca848
equal deleted inserted replaced
18:0818dd463d41 19:924385140d98
     1 // Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies).
     1 // Copyright (c) 2005-2010 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".
    21  @internalComponent - Internal Symbian test code
    21  @internalComponent - Internal Symbian test code
    22 */
    22 */
    23 
    23 
    24 #include <apgcli.h>
    24 #include <apgcli.h>
    25 #include "T_AppList.h"
    25 #include "T_AppList.h"
       
    26 #include "T_SisFileInstaller.h"
       
    27 
       
    28 _LIT(KApparcTestAppSisFile, "z:\\apparctest\\apparctestsisfiles\\TApparcTestApp.sis");
       
    29 _LIT(KApparcTestAppComponent, "TApparcTestApp");
       
    30 
       
    31 
    26 
    32 
    27 CTestAppListStep::CTestAppListStep()
    33 CTestAppListStep::CTestAppListStep()
    28 	{
    34 	{
    29 	}
    35 	}
    30 
    36 
    58 	TInt ret = iApaLsSession.GetAppInfo(appInfo,uid);
    64 	TInt ret = iApaLsSession.GetAppInfo(appInfo,uid);
    59 	INFO_PRINTF2(_L(" Call to GetAppInfo returned : %d  "), ret);
    65 	INFO_PRINTF2(_L(" Call to GetAppInfo returned : %d  "), ret);
    60 	TEST(ret==KErrNone);
    66 	TEST(ret==KErrNone);
    61 	}
    67 	}
    62 
    68 
       
    69 TVerdict CTestAppListStep::doTestStepPreambleL()
       
    70     {
       
    71     CSisFileInstaller sisFileInstaller;
       
    72     INFO_PRINTF2(_L("Installing sis file from -> %S"), &KApparcTestAppSisFile);
       
    73     sisFileInstaller.InstallSisAndWaitForAppListUpdateL(KApparcTestAppSisFile);
       
    74 
       
    75     SetTestStepResult(EPass);
       
    76     return TestStepResult();
       
    77     }
       
    78 
       
    79 TVerdict CTestAppListStep::doTestStepPostambleL()
       
    80     {
       
    81     CSisFileInstaller sisFileInstaller;
       
    82     sisFileInstaller.UninstallSisL(KApparcTestAppComponent);
       
    83     
       
    84     return TestStepResult();    
       
    85     }
    63 
    86 
    64 TVerdict CTestAppListStep::doTestStepL()
    87 TVerdict CTestAppListStep::doTestStepL()
    65 	{
    88 	{
    66 	INFO_PRINTF1(_L("Test T_AppList Started"));
    89 	INFO_PRINTF1(_L("Test T_AppList Started"));
    67 	
    90 	
    73 	HEAP_TEST_LS_SESSION(iApaLsSession, 0, DONT_CHECK, TestAppList(), NO_CLEANUP);
    96 	HEAP_TEST_LS_SESSION(iApaLsSession, 0, DONT_CHECK, TestAppList(), NO_CLEANUP);
    74 
    97 
    75 	INFO_PRINTF1(_L("Test Finished"));	
    98 	INFO_PRINTF1(_L("Test Finished"));	
    76 	return TestStepResult();
    99 	return TestStepResult();
    77 	}
   100 	}
       
   101 
       
   102