appfw/apparchitecture/tef/t_forceregstep.h
branchRCL_3
changeset 62 924385140d98
equal deleted inserted replaced
58:0818dd463d41 62:924385140d98
       
     1 // Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies).
       
     2 // All rights reserved.
       
     3 // This component and the accompanying materials are made available
       
     4 // under the terms of "Eclipse Public License v1.0"
       
     5 // which accompanies this distribution, and is available
       
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     7 //
       
     8 // Initial Contributors:
       
     9 // Nokia Corporation - initial contribution.
       
    10 //
       
    11 // Contributors:
       
    12 //
       
    13 // Description:
       
    14 //
       
    15 
       
    16 /**
       
    17  @file
       
    18  @internalComponent - Internal Symbian test code 
       
    19 */
       
    20 
       
    21 #if (!defined __T_FORCEREG_H__)
       
    22 #define __T_FORCEREG_H__
       
    23 
       
    24 
       
    25 #include <test/testexecutestepbase.h>
       
    26 
       
    27 class RTestableApaLsSession;
       
    28 
       
    29 const TUid KPropertyCategory = {0x101F289C};
       
    30 const TUint KForceRegTestPropertyKey = 1;
       
    31 
       
    32 const TUint KForceRegApp1Executed = 0x1;
       
    33 const TUint KForceRegApp2Executed = 0x2;
       
    34 const TUint KStopForceRegApp2 = 0x10;
       
    35 const TUint KApplistChanged = 0x0100;
       
    36 
       
    37 
       
    38 /*Tests force registration functionality */
       
    39 
       
    40 class CT_ForceRegStep : public CTestStep 
       
    41     {
       
    42 public:
       
    43     CT_ForceRegStep();
       
    44     ~CT_ForceRegStep();
       
    45     virtual TVerdict doTestStepPreambleL();
       
    46     virtual TVerdict doTestStepPostambleL();
       
    47     virtual TVerdict doTestStepL();
       
    48 
       
    49 private:
       
    50     void RunTestCases();   
       
    51     void TestSingleForceRegistration(RTestableApaLsSession &aLs);
       
    52     void TestMultipleForceRegistration(RTestableApaLsSession &aLs);
       
    53     void TestForceRegistrationSecurity(RTestableApaLsSession &aLs);
       
    54     void TestForceRegistrationWhenInstallationFailed(RTestableApaLsSession &aLs);
       
    55     void TestForceRegistrationAndNoClientNotification(RTestableApaLsSession &aLs); 
       
    56     };
       
    57 
       
    58 _LIT(KT_ForceRegStep,"T_ForceReg");
       
    59 
       
    60 #endif