videoplayerapp/videoplayerengine/tsrc/testvideoservices/inc/testvideoservices.h
changeset 52 e3cecb93e76a
parent 15 cf5481c2bc0b
equal deleted inserted replaced
47:45e72b57a2fd 52:e3cecb93e76a
    20 //       to declare testclasses into friends of classes under test etc.
    20 //       to declare testclasses into friends of classes under test etc.
    21 //
    21 //
    22 //      missing test functions:
    22 //      missing test functions:
    23 //      - how to setup construction to fail for testing purposes
    23 //      - how to setup construction to fail for testing purposes
    24 
    24 
       
    25 // Version : %version: %
    25 
    26 
    26 #ifndef __TESTVIDEOSERVICES_H__
    27 #ifndef __TESTVIDEOSERVICES_H__
    27 #define __TESTVIDEOSERVICES_H__
    28 #define __TESTVIDEOSERVICES_H__
    28 
    29 
    29 
    30 
    30 // INCLUDES
    31 // INCLUDES
    31 #include <QtTest/QtTest>
    32 #include <QtTest/QtTest>
    32 
    33 
    33 class VideoServices;
    34 class VideoServices;
    34 class QVideoPlayerEngine;
    35 class VideoPlayerEngine;
    35 
    36 
    36 class TestVideoServices : public QObject
    37 class TestVideoServices : public QObject
    37 	{
    38 {
    38 
    39 
    39     Q_OBJECT
    40     Q_OBJECT
    40 
    41 
    41 public: // Constructor / destructor
    42     public: 
    42 
    43 
    43     /**
    44         /**
    44      * Contructor.
    45          * Contructor.
    45      *
    46          *
    46      */
    47          */
    47 	TestVideoServices();
    48         TestVideoServices();
    48 
    49 
    49     /**
    50         /**
    50      * Destructor.
    51          * Destructor.
    51      *
    52          *
    52      */
    53          */
    53     virtual ~TestVideoServices();
    54         virtual ~TestVideoServices();
    54 
    55 
    55 private slots:
    56     private slots:
    56 
    57 
    57     void init();
    58         void init();
    58     void cleanup();
    59         void cleanup();
    59 
    60 
    60     void testCreateDelete();
    61         void testCreateDelete();
    61     
    62     
    62     void testCreateDeleteEngine();
    63         void testCreateDeleteEngine();
    63     
    64     
    64     void testCurrentService();
    65         void testCurrentService();
    65 
    66 
    66 #if 0
    67 #if 0
    67     void testInitialize();
    68         void testInitialize();
    68     void testInitializeService();
    69         void testInitializeService();
    69 
    70 
    70     void testMultipleInitialize();
    71         void testMultipleInitialize();
    71     void testMultipleInitializeService();
    72         void testMultipleInitializeService();
    72 
    73 
    73     void testHandleCommandPreInit();
    74         void testHandleCommandPreInit();
    74     void testHandleCommandPostInit();
    75         void testHandleCommandPostInit();
    75     void testHandleCommandPreAndPostInit();
    76         void testHandleCommandPreAndPostInit();
    76 
    77 
    77     void testHandleCommandPluginFail();
    78         void testHandleCommandPluginFail();
    78     void testHandleCommandPluginFail1();
    79         void testHandleCommandPluginFail1();
    79     void testHandleCommandPluginFail2();
    80         void testHandleCommandPluginFail2();
    80 
    81 
    81     void testPlayMedia();
    82         void testPlayMedia();
    82     void testSetEmbedded();
    83         void testSetEmbedded();
    83 #endif
    84 #endif
    84     // called after last test case executed
       
    85     void cleanupTestCase();
       
    86 
    85 
    87 signals:
    86         // called after last test case executed
       
    87         void cleanupTestCase();
    88 
    88 
    89 	void aboutToQuit();
    89     signals:
    90 
    90 
    91 private:
    91 	    void aboutToQuit();
    92 
    92 
    93 	VideoServices*       mTestObject;
    93     private:
    94 	QVideoPlayerEngine*  mEngine;
    94 
       
    95 	    VideoServices*       mTestObject;
       
    96 	    VideoPlayerEngine*   mEngine;
    95 };
    97 };
    96 
    98 
    97 #endif  // __TESTVIDEOSERVICES_H__
    99 #endif  // __TESTVIDEOSERVICES_H__
    98 
   100 
    99 // End of file
   101 // End of file