videoplayback/videoplaybackview/tsrc/testmpxvideoviewwrapper/inc/testmpxvideoviewwrapper.h
changeset 52 e3cecb93e76a
equal deleted inserted replaced
47:45e72b57a2fd 52:e3cecb93e76a
       
     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 __TESTMPXVIDEOVIEWWRAPPER_H__
       
    19 #define __TESTMPXVIDEOVIEWWRAPPER_H__
       
    20 
       
    21 
       
    22 // INCLUDES
       
    23 #include <QtTest/QtTest>
       
    24 
       
    25 class CMPXVideoViewWrapper;
       
    26 class VideoBasePlaybackView;
       
    27 
       
    28 class TestMPXVideoViewWrapper : public QObject
       
    29 {
       
    30     Q_OBJECT
       
    31 
       
    32     public:
       
    33 
       
    34         /**
       
    35          * will be called before each testfunction is executed.
       
    36          *
       
    37          */
       
    38         void init();
       
    39 
       
    40         /**
       
    41          * will be called after every testfunction.
       
    42          *
       
    43          */
       
    44         void cleanup();
       
    45 
       
    46     private slots:
       
    47         // the order in which these testXX methods are declared is important
       
    48         // changing this order will affect the test results
       
    49         void testRequestMedia();
       
    50         void testIsLive();
       
    51         void testIsPlaylist();
       
    52         void testHandleCommand();
       
    53         void testHandlePluginError();
       
    54         void testHandlePlaybackMessage();
       
    55         void testSetProperty();
       
    56         void testHandleProperty();
       
    57         void testRetrieveFileNameAndMode();
       
    58         void testActivateClosePlayerActiveObject();
       
    59         void testDoClosePlayer();
       
    60         void testSetAspectRatio();
       
    61         void testClosePlaybackView();
       
    62         void testHandleVolumeCmd();
       
    63         void testHandleShortPressBackward();
       
    64         void testIssueVideoAppForegroundCmd();
       
    65         void testCreateControls();
       
    66         void testIsMultiItemPlaylist();
       
    67         void testUpdateVideoRect();
       
    68         void testUpdateVideoRectDone();
       
    69         void testHandleBufferingState();
       
    70         void testHandleVideoPlaybackMessage();
       
    71         void testHandlePlaybackCommandComplete();
       
    72         void testHandleMedia();
       
    73         void testSurfacedAttached();
       
    74 
       
    75     signals:
       
    76         void commandSignal(int);
       
    77 
       
    78     private:
       
    79         CMPXVideoViewWrapper  *mVideoViewWrapper;
       
    80         VideoBasePlaybackView *mBaseVideoView;
       
    81 };
       
    82 
       
    83 #endif  // __TESTMPXVIDEOVIEWWRAPPER_H__
       
    84 
       
    85 // End of file