mmshplugins/mmshaoplugin/tsrc/ut_aoplugin/src/ut_musclirmonitor.h
branchRCL_3
changeset 23 bc78a40cd63c
parent 0 f0cf47e981f9
equal deleted inserted replaced
22:73a1feb507fb 23:bc78a40cd63c
       
     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:  Monitor that observes the calling line identity restriction
       
    15 *                setting
       
    16 *
       
    17 */
       
    18 
       
    19 
       
    20 
       
    21 #ifndef UT_MUSCLIRMONITORTEST_H
       
    22 #define UT_MUSCLIRMONITORTEST_H
       
    23 
       
    24 #include <etelmm.h>
       
    25 #include <digia/eunit/ceunittestsuiteclass.h>
       
    26 
       
    27 
       
    28 class CMusClirMonitor;
       
    29 class CMusAoPlugin;
       
    30 
       
    31 
       
    32 NONSHARABLE_CLASS( UT_CMusClirMonitor )
       
    33     : public CEUnitTestSuiteClass
       
    34     {
       
    35 
       
    36 public: // constructors and destructor
       
    37 
       
    38     /**
       
    39      * Destructor.
       
    40      */
       
    41     ~UT_CMusClirMonitor();
       
    42 
       
    43     /**
       
    44      * Two-phased constructor. Leaves on failure.
       
    45      * @return The constructed UT_CMusClirMonitor object.
       
    46      */
       
    47     static UT_CMusClirMonitor* NewLC();
       
    48 
       
    49 private:
       
    50 
       
    51     /**
       
    52      * C++ constructor.
       
    53      */
       
    54     UT_CMusClirMonitor();
       
    55 
       
    56     /**
       
    57      * Symbian 2nd-phase constructor.
       
    58      */
       
    59     void ConstructL();
       
    60 
       
    61 public: 
       
    62 
       
    63     void UT_ReadClir();
       
    64     
       
    65     void UT_RunL();
       
    66     
       
    67     void UT_RunLErrorsL();
       
    68 
       
    69     void UT_DoCancel();
       
    70 
       
    71     void UT_RunError();
       
    72     
       
    73     void UT_TranslateResult();
       
    74 
       
    75 private:
       
    76 
       
    77     void SetupL();
       
    78     
       
    79     void Teardown();
       
    80 
       
    81 private: // data
       
    82 
       
    83     // Owned
       
    84     CMusClirMonitor* iMonitor;
       
    85 
       
    86     EUNIT_DECLARE_TEST_TABLE;
       
    87 
       
    88     };
       
    89 
       
    90 #endif // UT_MUSCLIRMONITORTEST_H