profilesservices/ProfileEngine/tsrc/public/basic/EngineMdlTest/inc/T_CProfileChangeNotifyHandler.h
changeset 0 8c5d936e5675
equal deleted inserted replaced
-1:000000000000 0:8c5d936e5675
       
     1 /*
       
     2 * Copyright (c) 2007 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:  CProfileChangeNotifyHandler test class.
       
    15 *
       
    16 */
       
    17 
       
    18 ////////////////////////////////////////////////////////////////////////
       
    19 // T_CProfileChangeNotifyHandler.h
       
    20 //
       
    21 
       
    22 // INCLUDES
       
    23 #include <CEUnitTestSuiteClass.h>
       
    24 
       
    25 #include <f32file.h>
       
    26 #include <s32file.h>
       
    27 
       
    28 #include <APGCLI.H>
       
    29 #include <MProfileChangeObserver.h>
       
    30 
       
    31 // FORWARD DECLARATION
       
    32 class CProfileChangeNotifyHandler;
       
    33 class CTestObserver;
       
    34 class MProfileEngineExtended;
       
    35 class MProfileExtended;
       
    36 
       
    37 
       
    38 
       
    39 /**
       
    40  * Test suite for class CProfileChangeNotifyHandler
       
    41  */
       
    42 class T_CProfileChangeNotifyHandler : public CEUnitTestSuiteClass
       
    43     {
       
    44     public:     // Construct / destruct
       
    45         static T_CProfileChangeNotifyHandler* NewLC();
       
    46         ~T_CProfileChangeNotifyHandler();
       
    47 
       
    48     private:
       
    49         void ConstructL();
       
    50 
       
    51     private:    // Assistance methods
       
    52 
       
    53     private:    // test methods
       
    54         // setups
       
    55         void EmptySetupL();
       
    56         void SetupL();
       
    57 
       
    58 
       
    59         // teardowns
       
    60         void EmptyTeardown();
       
    61         void Teardown();
       
    62 
       
    63         // tests
       
    64         void EmptyTestL();
       
    65         void CreateTestL();
       
    66 
       
    67         void HandleNotifyTestL();
       
    68 
       
    69 
       
    70     private:    // Implementation
       
    71 
       
    72         EUNIT_DECLARE_TESTCASE_TABLE;
       
    73 
       
    74     private:    // Data
       
    75         CProfileChangeNotifyHandler* iHandler;
       
    76         CTestObserver* iObserver;
       
    77         MProfileExtended* iProfile;
       
    78         MProfileEngineExtended* iProfileEngine;
       
    79         TInt iOrigRingingVolume;
       
    80         TFileName iOrigRingingTone;
       
    81 
       
    82     };