tsrc/unittest/unittest_statehandler/unittest_statehandler.h
changeset 23 74c9f037fd5d
child 65 ccee5c4b0de4
equal deleted inserted replaced
5:f7f0874bfe7d 23:74c9f037fd5d
       
     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_STATEHANDLER_H__
       
    18 #define __UNITTEST_STATEHANDLER_H__
       
    19 
       
    20 #include <QtTest/QtTest>
       
    21 
       
    22 class GlxStateManager;
       
    23 
       
    24 class TestGlxStateManager : public QObject
       
    25 {
       
    26     Q_OBJECT
       
    27     
       
    28 signals:
       
    29 
       
    30 private slots:
       
    31     /**
       
    32      * called before anything else when test starts
       
    33      */
       
    34     void initTestCase();
       
    35 
       
    36   /**
       
    37      * will be called before each testfunction is executed.
       
    38      *
       
    39      */
       
    40     void init(); 
       
    41     void removeModelTestCase1();
       
    42     void removeModelTestCase2();
       
    43     void createStateTestCase();
       
    44     void createModelTestCase1();
       
    45     void createModelTestCase2();
       
    46     void createGridModelTestCase1();
       
    47     void createGridModelTestCase2();
       
    48     
       
    49     
       
    50     /**
       
    51      * will be called after every testfunction.
       
    52      *
       
    53      */
       
    54     void cleanup();
       
    55     
       
    56     /**
       
    57      * will be called after testing ends
       
    58      *
       
    59      */
       
    60     void cleanupTestCase();
       
    61 
       
    62 private:
       
    63   
       
    64     /**
       
    65      * object under test
       
    66      */  
       
    67     GlxStateManager *mStateManager;
       
    68 };
       
    69 
       
    70 #endif //__UNITTEST_STATEHANDLER_H__