videoplayback/videoplaybackview/tsrc/testvideodisplayhandler/inc/testvideodisplayhandler.h
changeset 52 e3cecb93e76a
child 55 4bfa887905cf
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 Display Handler
       
    15 * 
       
    16 */
       
    17 
       
    18 #ifndef __TESTVIDEODISPLAYHANDLER_H__
       
    19 #define __TESTVIDEODISPLAYHANDLER_H__
       
    20 
       
    21 
       
    22 // INCLUDES
       
    23 #include <QtTest/QtTest>
       
    24 
       
    25 // forward declaration
       
    26 class CMPXVideoPlaybackDisplayHandler;
       
    27 class MMPXPlaybackUtility;
       
    28 class VideoBasePlaybackView;
       
    29 class CMPXVideoViewWrapper;
       
    30 class VideoPlaybackViewFileDetails;
       
    31 
       
    32 
       
    33 class TestVideoDisplayHandler : public QObject
       
    34 {
       
    35     Q_OBJECT
       
    36 
       
    37     public:
       
    38 
       
    39         /**
       
    40          * will be called before each testfunction is executed.
       
    41          *
       
    42          */
       
    43         void init(); 
       
    44     
       
    45         /**
       
    46          * will be called after every testfunction.
       
    47          *
       
    48          */
       
    49         void cleanup();
       
    50         
       
    51         void setup();
       
    52     
       
    53     // test functions for the test framework         
       
    54     private slots:
       
    55         // the order in which these testXX methods are declared is important
       
    56         // changing this order will affect the test results
       
    57         void testCreateDisplayWindowL();
       
    58         void testRemoveDisplayWindow();
       
    59         void testHandleSurfaceCreatedMessageL();
       
    60         void testHandleSurfaceChangedMessageL();
       
    61         void testHandleVideoRemovedMessageL();
       
    62         void testSetAspectRatioL();
       
    63         void testSetDefaultAspectRatioL();
       
    64         void testUpdateVideoRectL();	
       
    65     
       
    66     
       
    67     private:
       
    68         CMPXVideoPlaybackDisplayHandler*  mDispHdlr;	
       
    69         MMPXPlaybackUtility*              mPlaybackUtility;  
       
    70         VideoBasePlaybackView*            mBaseVideoView;
       
    71         CMPXVideoViewWrapper*             mVideoViewWrapper;
       
    72         VideoPlaybackViewFileDetails*     mFileDetails; 
       
    73 };
       
    74 
       
    75 #endif  // __TESTVIDEODISPLAYHANDLER_H__
       
    76 
       
    77 // End of file
       
    78