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