camerauis/cameraxui/cxengine/tsrc/unit/unittest_cxestate/unittest_cxestate.h
branchRCL_3
changeset 24 bac7acad7cb3
parent 23 61bc0f252b2b
child 25 2c87b2808fd7
equal deleted inserted replaced
23:61bc0f252b2b 24:bac7acad7cb3
     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 #ifndef UNITTEST_CXESTATE_H_
       
    18 #define UNITTEST_CXESTATE_H_
       
    19 
       
    20 #include <QObject>
       
    21 
       
    22 class CxeState;
       
    23 
       
    24 class UnitTestCxeState : public QObject
       
    25 {
       
    26     Q_OBJECT
       
    27 
       
    28 public:
       
    29 
       
    30     UnitTestCxeState();
       
    31     virtual ~UnitTestCxeState();
       
    32 
       
    33 private slots:
       
    34 
       
    35     // before any test cases
       
    36     void initTestCase();
       
    37     // after last test case
       
    38     void cleanupTestCase();
       
    39 
       
    40 
       
    41     void testStateId();
       
    42     void testAllowedNextStates();
       
    43     void testName();
       
    44 
       
    45 private:
       
    46     CxeState *mStateA;
       
    47     CxeState *mStateB;
       
    48     CxeState *mStateC;
       
    49     CxeState *mStateD;
       
    50 
       
    51 };
       
    52 
       
    53 #endif /* UNITTEST_CXESTATE_H_ */