tsrc/unittest/unittest_imagedecoderwrapper/unittest_imagedecoderwrapper.h
changeset 23 74c9f037fd5d
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 
       
    18 #ifndef __UNITTEST_IMAGEDECODERWRAPPER_H__
       
    19 #define __UNITTEST_IMAGEDECODERWRAPPER_H__
       
    20 
       
    21 #include <QtTest/QtTest>
       
    22 
       
    23 class GlxImageDecoderWrapper;
       
    24 
       
    25 class TestGlxImageDecoderWrapper : public QObject
       
    26 {
       
    27     Q_OBJECT
       
    28     
       
    29 signals:
       
    30 
       
    31 private slots:
       
    32     /**
       
    33      * called before anything else when test starts
       
    34      */
       
    35     void initTestCase();
       
    36 
       
    37   /**
       
    38      * will be called before each testfunction is executed.
       
    39      *
       
    40      */
       
    41     void init(); 
       
    42     
       
    43     /**
       
    44      * will be called after every testfunction.
       
    45      *
       
    46      */
       
    47     void cleanup();
       
    48     
       
    49     /**
       
    50      * will be called after testing ends
       
    51      *
       
    52      */
       
    53     void cleanupTestCase();
       
    54  
       
    55     /**
       
    56      * verifies getPixmap
       
    57      *
       
    58      */
       
    59    void testgetPixmap(); 
       
    60        
       
    61     /**
       
    62      * verifies decodeImage
       
    63      *
       
    64      */
       
    65    void testDecodeImage(); 
       
    66    
       
    67    void testResetDecoder();
       
    68     
       
    69 private:
       
    70   
       
    71     /**
       
    72      * object under test
       
    73      */  
       
    74     GlxImageDecoderWrapper *mTestObject;
       
    75 };
       
    76 
       
    77 #endif //__UNITTEST_IMAGEDECODERWRAPPER_H__