ximpfw/tsrc/src/t_sessionmng/t_sessionmng.h
changeset 0 e6b17d312c8b
child 20 eedf17a17c27
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: XIMP Framework Test Code 
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef T_SESSIONMNG_H__
       
    19 #define T_SESSIONMNG_H__
       
    20 
       
    21 #include <ceunittestsuiteclass.h>
       
    22 #include <ximpbase.h>
       
    23 
       
    24 #include "prfwteststatuseventlistener.h"
       
    25 
       
    26 
       
    27 class CXIMPTestContextWrapperMgr;
       
    28 class MXIMPContext;
       
    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_SessionMng : public CEUnitTestSuiteClass
       
    38     {
       
    39 
       
    40 public:
       
    41     static T_SessionMng* NewL();
       
    42     virtual ~T_SessionMng();
       
    43 
       
    44 
       
    45 private:
       
    46     T_SessionMng();
       
    47     void ConstructL();
       
    48 
       
    49 
       
    50 
       
    51 private:    // Test case functions
       
    52 
       
    53     void Teardown();
       
    54     
       
    55     void Setup_L();
       
    56     void Setup_2_L();
       
    57     void Setup_3_L();
       
    58 
       
    59    
       
    60     void T_Simple_Bind_Wait_Unbind_L();
       
    61     void T_Settings_Bind_Wait_Unbind_L();
       
    62     void T_Simple_Bind_Wait_OOM_L();
       
    63 
       
    64     void T_Simple_Bind_Wait_Unbind_WithReqCompleteEventFilter_L();
       
    65     void T_Simple_Bind_Wait_CloseHandle_L();
       
    66     void T_Simple_Bind_Direct_Unbind_L();
       
    67     void T_Simple_Bind_Direct_CloseHandle_L();
       
    68 
       
    69 
       
    70 
       
    71     void T_ErrFromPlg_LeaveOnOpenSession_L();
       
    72     void T_ErrFromPlg_ErrorResultOnOpenSession_L();
       
    73     void T_ErrFromPlg_ErrorResultOnCloseSession_L();
       
    74     
       
    75     void T_ErrFromPlg_InvalidReqIdOnOpenSession_L();
       
    76     void T_Multi_Bind_Unbind_WithWaits_L();    
       
    77     
       
    78 
       
    79 
       
    80 private:    // Test helpers
       
    81 
       
    82     TXIMPRequestId BindContextToDefaultL( MXIMPContext* aContext );
       
    83 
       
    84 
       
    85 
       
    86 
       
    87 
       
    88 private: // Test data
       
    89 
       
    90     /**
       
    91      * Eunit test case table declaration.
       
    92      */
       
    93     EUNIT_DECLARE_TEST_TABLE;
       
    94 
       
    95     /**
       
    96      * Context Wrapper Manager
       
    97      */
       
    98     CXIMPTestContextWrapperMgr* iWrapperMgr;
       
    99 
       
   100     };
       
   101 
       
   102 #endif      //  T_SESSIONMNG_H__
       
   103 
       
   104 
       
   105 
       
   106 // end of file
       
   107 
       
   108 
       
   109 
       
   110