phoneapp/phoneringingtoneplayer/tsrc/ut_cphoneringingtonecontroller/src/ut_cphoneringingtonecontroller.h
changeset 78 baacf668fe89
parent 76 cfea66083b62
equal deleted inserted replaced
76:cfea66083b62 78:baacf668fe89
     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_CPHONERINGINGTONEPLAYER_H__
       
    19 #define __UT_CPHONERINGINGTONEPLAYER_H__
       
    20 
       
    21 // INCLUDES
       
    22 #include <ceunittestsuiteclass.h>
       
    23 #include <eunitdecorators.h>
       
    24 
       
    25 
       
    26 // FORWARD DECLARATIONS
       
    27 
       
    28 class CPhoneRingingToneController;
       
    29 class CSmcMockContext;
       
    30 class CPhoneRingingTone;
       
    31 class CPhoneCenRepProxy;
       
    32 
       
    33 
       
    34 // custom comparison method for matching expected and actual SData items
       
    35 TBool operator==( const CPhoneRingingTone& aData1, const CPhoneRingingTone& aData2 );
       
    36 // CLASS DEFINITION
       
    37 /**
       
    38  * Generated EUnit test suite class.
       
    39  */
       
    40 NONSHARABLE_CLASS( ut_cphoneringingtonecontroller )
       
    41 	: public CEUnitTestSuiteClass
       
    42     {
       
    43     public:  // Constructors and destructor
       
    44 
       
    45         static ut_cphoneringingtonecontroller* NewL();
       
    46         static ut_cphoneringingtonecontroller* NewLC();
       
    47         ~ut_cphoneringingtonecontroller();
       
    48 
       
    49     private: // Constructors
       
    50 
       
    51         ut_cphoneringingtonecontroller();
       
    52         void ConstructL();
       
    53 
       
    54     private: // New methods
       
    55 
       
    56          void SetupL();
       
    57         
       
    58          void Teardown();
       
    59         
       
    60          void T_PlayRingingtoneRinging();
       
    61          
       
    62          void T_PlayRingingtoneSilence();
       
    63          
       
    64          void T_PlayRingingtoneBeepOnce();
       
    65          
       
    66          void T_PlayRingingtoneAscending();
       
    67          
       
    68          void T_PlayRingingtoneRingingOnce();
       
    69          
       
    70          void T_PlayRingingtoneTTS();
       
    71          
       
    72          void T_StopRingingtone();
       
    73         
       
    74 
       
    75     private: // Data
       
    76 
       
    77         CPhoneRingingToneController* iRingingtoneplayer;
       
    78         CPhoneCenRepProxy* iPhoneCenRepProxy; 
       
    79         CSmcMockContext* iMockContext; 
       
    80         
       
    81         EUNIT_DECLARE_TEST_TABLE;
       
    82 
       
    83     };
       
    84 
       
    85 #endif      //  __UT_CPHONERINGINGTONEPLAYER_H__