videoplayback/hbvideoplaybackview/tsrc/testvideoplaybackcontrolscontroller/inc/testmpxvideoplaybackcontrolscontroller.h
changeset 44 518105d52e45
parent 42 17f382c040b1
child 49 824471cb468a
equal deleted inserted replaced
42:17f382c040b1 44:518105d52e45
     1 /**
       
     2 * Copyright (c) 2010 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 Controls Controller
       
    15 *
       
    16 */
       
    17 
       
    18 // Version : %version:  6 %
       
    19 
       
    20 #ifndef __TESTMPXVIDEOPLAYBACKCONTROLSCONTROLLER_H__
       
    21 #define __TESTMPXVIDEOPLAYBACKCONTROLSCONTROLLER_H__
       
    22 
       
    23 
       
    24 // INCLUDES
       
    25 #include <QtTest/QtTest>
       
    26 #include "mpxvideoplaybackcontrol.hrh"
       
    27 
       
    28 // FORWARD DECLARATIONS
       
    29 class HbVideoBasePlaybackView;
       
    30 class CMPXVideoViewWrapper;
       
    31 class QMPXVideoPlaybackControlsController;
       
    32 class QMPXVideoPlaybackViewFileDetails;
       
    33 
       
    34 class TestMPXVideoPlaybackControlsController : public QObject
       
    35 {
       
    36     Q_OBJECT
       
    37 
       
    38 public:
       
    39 
       
    40     /**
       
    41      * will be called before each testfunction is executed.
       
    42      *
       
    43      */
       
    44     void init();
       
    45 
       
    46     /**
       
    47      * will be called after every testfunction.
       
    48      *
       
    49      */
       
    50     void cleanup();
       
    51 
       
    52 private:
       
    53 
       
    54     void verifyHandleEventStateChangedResult( int value );
       
    55     void verifyHandleEventTvOutResult( bool tvOutConnected, bool value );
       
    56 
       
    57 private slots:
       
    58 
       
    59     void testAddFileDetails();
       
    60     void testHandleEventSetPosition();
       
    61     void testHandleEventSetDuration();
       
    62     void testHandleEventStateChanged();
       
    63     void testHandleEventSetVolume();
       
    64     void testHandleEventSetAspectRatio();
       
    65     void testHandleEventSetDownloadSize();
       
    66     void testHandleEventDownloadUpdated();
       
    67     void testHandleEventDownloadComplete();
       
    68     void testHandleEventSetDownloadPaused();
       
    69     void testHandleEventClearDownloadPaused();
       
    70     void testHandleEventTvOutConnected();
       
    71     void testHandleEventTvOutDisconnected();
       
    72     void testHandleEventHandleErrors();
       
    73     void testHandleEventShowVolumeControls();
       
    74 
       
    75     //
       
    76     // test handleCommand()
       
    77     //
       
    78     void testHandleCommand();
       
    79 
       
    80     //
       
    81     // test handleTappedOnScreen()
       
    82     //
       
    83     void testHandleTappedOnScreen();
       
    84 
       
    85     //
       
    86     // test updateVideoRectDone()
       
    87     //
       
    88     void testUpdateVideoRectDone();
       
    89 
       
    90     //
       
    91     // test isAttachOperation()
       
    92     //
       
    93     void testIsAttachOperation();
       
    94 
       
    95     //
       
    96     // test private slot skipToNextVideoItem()
       
    97     //
       
    98     void testslot_skipToNextVideoItem();
       
    99 
       
   100     //
       
   101     // test private slot skipToPreviousVideoItem()
       
   102     //
       
   103     void testslot_skipToPreviousVideoItem();    
       
   104     
       
   105     //
       
   106     // test private slot attachVideo()
       
   107     //
       
   108     void testslot_attachVideo();
       
   109 
       
   110     //
       
   111     // test private slot attachVideo()
       
   112     //
       
   113     void testslot_sendVideo();
       
   114 
       
   115     //
       
   116     // test private slot handleOrientationChanged()
       
   117     //
       
   118     void testslot_handleOrientationChanged();
       
   119 
       
   120     void testslot_handleRNLogoVisibleChanged();
       
   121     void testslot_handleRNLogoTimeout();
       
   122     void testIsRNLogoBitmapVisible();
       
   123 
       
   124 signals:
       
   125     void commandSignal();
       
   126     void commandSignal( Qt::Orientation );
       
   127 
       
   128 private:
       
   129 
       
   130     HbVideoBasePlaybackView*			    mBaseVideoView;
       
   131     CMPXVideoViewWrapper*			        mViewWrapper;
       
   132     QMPXVideoPlaybackControlsController*	mController;
       
   133     QMPXVideoPlaybackViewFileDetails*       mFileDetails;
       
   134 
       
   135 };
       
   136 
       
   137 
       
   138 #endif  // __TESTMPXVIDEOPLAYBACKCONTROLSCONTROLLER_H__
       
   139 
       
   140 // End of file
       
   141