cellular/telephonysettings/xqbindings/psetwrapper/tsrc/ut_psetcallwaitingwrapper/ut_psetcallwaitingwrapper.h
branchRCL_3
changeset 20 987c9837762f
parent 19 7d48bed6ce0c
child 21 0a6dd2dc9970
equal deleted inserted replaced
19:7d48bed6ce0c 20:987c9837762f
     1 /*
       
     2 * Copyright (c) 2009 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 UT_PSETCALLWAITINGWRAPPER_H
       
    19 #define UT_PSETCALLWAITINGWRAPPER_H
       
    20 
       
    21 #include <QtTest/QtTest>
       
    22 #include <mockservice.h>
       
    23 
       
    24 class CPsetContainer;
       
    25 class CPsetCallWaiting;
       
    26 class PSetCallWaitingWrapper;
       
    27 
       
    28 class UT_PSetCallWaitingWrapper : public QObject, public MockService
       
    29 {
       
    30     Q_OBJECT
       
    31 
       
    32 public:    
       
    33     
       
    34     UT_PSetCallWaitingWrapper();
       
    35     ~UT_PSetCallWaitingWrapper();
       
    36     
       
    37 private slots:
       
    38 
       
    39     void init();
       
    40     void cleanup();
       
    41 
       
    42     void t_construction();
       
    43     void t_setCallWaiting();
       
    44     void t_getCallWaitingStatus();
       
    45     void t_cancelProcess();
       
    46     
       
    47     // signal emitting/private implementation tests
       
    48     void t_handleCallWaitingGetStatus();
       
    49     void t_handleCallWaitingChanged();
       
    50     void t_handleCallWaitingRequesting();
       
    51     void t_handleCallWaitingError();
       
    52     void t_setEngineContact();
       
    53     
       
    54     void t_exceptionSafety();
       
    55     
       
    56 private:
       
    57     
       
    58     void SimulateLeaveAtMockMethodCallL();
       
    59     
       
    60 private:
       
    61     
       
    62     int m_numOfLeaveSimulations;
       
    63     CPsetContainer *m_psetContainerMock;
       
    64     CPsetCallWaiting *m_psetCallWaitingMock;
       
    65     PSetCallWaitingWrapper* m_wrapper;
       
    66 };
       
    67 
       
    68 #endif  // UT_PSETCALLWAITINGWRAPPER_H