imsrv_plat/ximp_core_feature_plugin_api/tsrc/src/t_presenceauthorization/t_presenceauthorization.h
changeset 0 e6b17d312c8b
child 23 482d5cf4c4b4
equal deleted inserted replaced
-1:000000000000 0:e6b17d312c8b
       
     1 /*
       
     2 * Copyright (c) 2006 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef T_PRESENCEAUTHORIZATION_H
       
    19 #define T_PRESENCEAUTHORIZATION_H
       
    20 
       
    21 #include <ceunittestsuiteclass.h>
       
    22 #include <ximpbase.h>
       
    23 #include "prfwteststatuseventlistener.h"
       
    24 #include "prfwtestmessaging.h"
       
    25 
       
    26 class CXIMPTestContextWrapper;
       
    27 class CXIMPTestContextWrapperMgr;
       
    28 class CXIMPTestMessenger;
       
    29 
       
    30 /**
       
    31  * XIMP Framework Eunit tests.
       
    32  *
       
    33  * Tests for XIMP session management services.
       
    34  *
       
    35  * @since S60 v4.0
       
    36  */
       
    37 class T_PresenceAuthorization : public CEUnitTestSuiteClass
       
    38     {
       
    39 
       
    40 public:
       
    41     static T_PresenceAuthorization* NewL();
       
    42     virtual ~T_PresenceAuthorization();
       
    43 
       
    44 
       
    45 private:
       
    46     T_PresenceAuthorization();
       
    47     void ConstructL();
       
    48 
       
    49 private:    // Test case functions
       
    50 
       
    51     void Setup_L();
       
    52     void SetupMultiple_L();
       
    53     void BindL();
       
    54     void BindAllL();
       
    55     void Teardown();
       
    56     void UnbindL();
       
    57     void UnbindAllL();
       
    58 
       
    59     void T_GrantPresenceForPresentity_L();
       
    60     void T_GrantPresenceForPresentityChangeId_L();
       
    61     void T_WithdrawNotGrantedPresenceFromPresentity_L();
       
    62     void T_ErrFromPlg_LeaveOnGrantPresenceForPresentity_L();
       
    63     void T_ErrFromPlg_LeaveOnWithdrawPresenceFromPresentity_L();
       
    64 
       
    65     void T_GrantPresenceForPresentity_Multiple_L();
       
    66     void T_WithdrawNotGrantedPresenceFromPresentity_Multiple_L();
       
    67     
       
    68     void T_GrantPresenceForGroupMembers_L();
       
    69     void T_GrantPresenceForGroupMembersChangeId_L();
       
    70     void T_ErrFromPlg_LeaveOnGrantPresenceForGroupMembers_L();
       
    71     void T_ErrFromPlg_LeaveOnWithdrawPresenceFromGroupMembers_L();
       
    72 
       
    73     void T_GrantPresenceForGroupMembers_Multiple_L();
       
    74     void T_WithdrawNotGrantedPresenceFromGroupMembers_L();
       
    75     void T_WithdrawNotGrantedPresenceFromGroupMembers_Multiple_L();
       
    76 
       
    77     void T_GrantPresenceForEveryone_L();
       
    78     void T_ErrFromPlg_LeaveOnGrantPresenceForEveryone_L();
       
    79     void T_ErrFromPlg_LeaveOnWithdrawPresenceFromEveryone_L();
       
    80 
       
    81     void T_GrantPresenceForEveryone_Multiple_L();
       
    82     void T_WithdrawNotGrantedPresenceFromEveryone_L();
       
    83     void T_WithdrawNotGrantedPresenceFromEveryone_Multiple_L();
       
    84 
       
    85     void T_MakeAndGrantGroup_WithdrawOneID_L();
       
    86 
       
    87 private:    // Test helpers
       
    88 
       
    89     void SetupListenerReqCompleteL( CXIMPTestContextWrapper* aWrapper, TXIMPTestStatusEventTemplate aEventType );
       
    90     void SetupListenerReqCompleteAllowEventsL( CXIMPTestContextWrapper* aWrapper, TXIMPTestStatusEventTemplate aEventTypes );
       
    91 
       
    92 private: // Test data
       
    93 
       
    94     /**
       
    95      * Eunit test case table declaration.
       
    96      */
       
    97     EUNIT_DECLARE_TEST_TABLE;
       
    98 
       
    99     // owned
       
   100     CXIMPTestContextWrapperMgr* iWrapperMgr;
       
   101     };
       
   102 
       
   103 
       
   104 #endif      //  T_PRESENCEAUTHORIZATION_H
       
   105 
       
   106 
       
   107 
       
   108 // end of file
       
   109 
       
   110 
       
   111 
       
   112