videoplayback/videoplaybackviewplugin/tsrc/testvideoplaybackviewplugin/inc/testvideoplaybackviewplugin.h
changeset 44 518105d52e45
child 58 d2b028fd1f7d
equal deleted inserted replaced
42:17f382c040b1 44:518105d52e45
       
     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:   tester for methods in Video Playback View Plugin
       
    15 * 
       
    16 */
       
    17 
       
    18 #ifndef __TESTVIDEOPLAYBACKVIEWPLUGIN_H__
       
    19 #define __TESTVIDEOPLAYBACKVIEWPLUGIN_H__
       
    20 
       
    21 
       
    22 // INCLUDES
       
    23 #include <QtTest/QtTest>
       
    24 
       
    25 class VideoPlaybackViewPlugin;
       
    26 class MpxViewPlugin;
       
    27 
       
    28 
       
    29 class TestVideoPlaybackViewPlugin : public QObject
       
    30 {
       
    31     Q_OBJECT
       
    32 
       
    33     public:
       
    34 
       
    35         /**
       
    36          * will be called before each testfunction is executed.
       
    37          *
       
    38          */
       
    39         void init(); 
       
    40     
       
    41         /**
       
    42          * will be called after every testfunction.
       
    43          *
       
    44          */
       
    45         void cleanup();
       
    46     
       
    47     // test functions for the test framework
       
    48     private slots:
       
    49 
       
    50         // the order in which these testXX methods are declared is important
       
    51         // changing this order will affect the test results
       
    52         void testCreateView();
       
    53         void testActivateView();
       
    54         void testGetView();
       
    55         void testDeactivateView();
       
    56         void testDestroyView();
       
    57     
       
    58     signals:
       
    59         void commandSignal(int);
       
    60 
       
    61     private:    
       
    62         MpxViewPlugin* mVidPBPlugin;    
       
    63 };
       
    64 
       
    65 
       
    66 #endif  // __TESTVIDEOPLAYBACKVIEWPLUGIN_H__
       
    67 
       
    68 // End of file