videoplayback/videoplaybackview/tsrc/testcontrolscontroller/inc/testcontrolscontroller.h
changeset 52 e3cecb93e76a
child 62 0e1e938beb1a
equal deleted inserted replaced
47:45e72b57a2fd 52:e3cecb93e76a
       
     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:  9 %
       
    19 
       
    20 #ifndef __TESTCONTROLSCONTROLLER_H__
       
    21 #define __TESTCONTROLSCONTROLLER_H__
       
    22 
       
    23 
       
    24 // INCLUDES
       
    25 #include <QtTest/QtTest>
       
    26 #include "videoplaybackcontrol.hrh"
       
    27 
       
    28 // FORWARD DECLARATIONS
       
    29 class VideoBasePlaybackView;
       
    30 class CMPXVideoViewWrapper;
       
    31 class VideoPlaybackControlsController;
       
    32 class VideoPlaybackViewFileDetails;
       
    33 
       
    34 class TestControlsController : 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     void testIsFileDetailsAdded();
       
    75 
       
    76     //
       
    77     // test handleCommand()
       
    78     //
       
    79     void testHandleCommand();
       
    80 
       
    81     //
       
    82     // test handleTappedOnScreen()
       
    83     //
       
    84     void testHandleTappedOnScreen();
       
    85 
       
    86     //
       
    87     // test updateVideoRectDone()
       
    88     //
       
    89     void testUpdateVideoRectDone();
       
    90 
       
    91     //
       
    92     // test isAttachOperation()
       
    93     //
       
    94     void testIsAttachOperation();
       
    95 
       
    96     //
       
    97     // test private slot skipToNextVideoItem()
       
    98     //
       
    99     void testslot_skipToNextVideoItem();
       
   100 
       
   101     //
       
   102     // test private slot skipToPreviousVideoItem()
       
   103     //
       
   104     void testslot_skipToPreviousVideoItem();
       
   105 
       
   106     //
       
   107     // test private slot attachVideo()
       
   108     //
       
   109     void testslot_attachVideo();
       
   110 
       
   111     //
       
   112     // test private slot attachVideo()
       
   113     //
       
   114     void testslot_sendVideo();
       
   115 
       
   116     //
       
   117     // test private slot handleOrientationChanged()
       
   118     //
       
   119     void testslot_handleOrientationChanged();
       
   120 
       
   121     void testslot_handleRNLogoVisibleChanged();
       
   122     void testslot_handleRNLogoTimeout();
       
   123     void testIsRNLogoBitmapVisible();
       
   124 
       
   125 signals:
       
   126     void commandSignal();
       
   127     void commandSignal( Qt::Orientation );
       
   128 
       
   129 private:
       
   130 
       
   131     VideoBasePlaybackView*            mBaseVideoView;
       
   132     CMPXVideoViewWrapper*               mViewWrapper;
       
   133     VideoPlaybackControlsController*	mController;
       
   134     VideoPlaybackViewFileDetails*       mFileDetails;
       
   135 
       
   136 };
       
   137 
       
   138 #endif  // __TESTCONTROLSCONTROLLER_H__
       
   139 
       
   140 // End of file