videoplayback/videoplaybackview/tsrc/testvideodisplayhandler/inc/testvideodisplayhandler.h
changeset 66 adb51f74b890
parent 55 4bfa887905cf
equal deleted inserted replaced
63:4707a0db12f6 66:adb51f74b890
     1 /**
     1 /**
     2 * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). 
     2 * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
     3 * All rights reserved.
     3 * All rights reserved.
     4 * This component and the accompanying materials are made available
     4 * This component and the accompanying materials are made available
     5 * under the terms of "Eclipse Public License v1.0"
     5 * under the terms of "Eclipse Public License v1.0"
     6 * which accompanies this distribution, and is available
     6 * which accompanies this distribution, and is available
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
    10 * Nokia Corporation - initial contribution.
    10 * Nokia Corporation - initial contribution.
    11 *
    11 *
    12 * Contributors:
    12 * Contributors:
    13 *
    13 *
    14 * Description:   tester for methods in Video Display Handler
    14 * Description:   tester for methods in Video Display Handler
    15 * 
    15 *
    16 */
    16 */
    17 
    17 
    18 #ifndef __TESTVIDEODISPLAYHANDLER_H__
    18 #ifndef __TESTVIDEODISPLAYHANDLER_H__
    19 #define __TESTVIDEODISPLAYHANDLER_H__
    19 #define __TESTVIDEODISPLAYHANDLER_H__
    20 
    20 
    22 // INCLUDES
    22 // INCLUDES
    23 #include <QtTest/QtTest>
    23 #include <QtTest/QtTest>
    24 
    24 
    25 // forward declaration
    25 // forward declaration
    26 class CVideoPlaybackDisplayHandler;
    26 class CVideoPlaybackDisplayHandler;
    27 class MMPXPlaybackUtility;
       
    28 class VideoBasePlaybackView;
    27 class VideoBasePlaybackView;
    29 class CMPXVideoViewWrapper;
    28 class CMPXVideoViewWrapper;
    30 class VideoPlaybackViewFileDetails;
    29 class VideoPlaybackViewFileDetails;
    31 
    30 
    32 
    31 
    38 
    37 
    39         /**
    38         /**
    40          * will be called before each testfunction is executed.
    39          * will be called before each testfunction is executed.
    41          *
    40          *
    42          */
    41          */
    43         void init(); 
    42         void init();
    44     
    43 
    45         /**
    44         /**
    46          * will be called after every testfunction.
    45          * will be called after every testfunction.
    47          *
    46          *
    48          */
    47          */
    49         void cleanup();
    48         void cleanup();
    50         
    49 
    51         void setup();
    50         void setup();
    52     
    51 
    53     // test functions for the test framework         
    52     // test functions for the test framework
    54     private slots:
    53     private slots:
    55         // the order in which these testXX methods are declared is important
    54         // the order in which these testXX methods are declared is important
    56         // changing this order will affect the test results
    55         // changing this order will affect the test results
    57         void testCreateDisplayWindowL();
    56         void testCreateDisplayWindowL();
    58         void testRemoveDisplayWindow();
    57         void testRemoveDisplayWindow();
    59         void testHandleSurfaceCreatedMessageL();
    58         void testHandleSurfaceCreatedMessageL();
    60         void testHandleSurfaceChangedMessageL();
    59         void testHandleSurfaceChangedMessageL();
    61         void testHandleVideoRemovedMessageL();
    60         void testHandleVideoRemovedMessageL();
    62         void testSetAspectRatioL();
    61         void testSetAspectRatioL();
    63         void testSetDefaultAspectRatioL();
    62         void testSetDefaultAspectRatioL();
    64         void testUpdateVideoRectL();	
    63         void testUpdateVideoRectL();
    65     
    64 
    66     
    65 
    67     private:
    66     private:
    68         CVideoPlaybackDisplayHandler*     mDispHdlr;	
    67         CVideoPlaybackDisplayHandler*     mDispHdlr;
    69         MMPXPlaybackUtility*              mPlaybackUtility;  
       
    70         VideoBasePlaybackView*            mBaseVideoView;
    68         VideoBasePlaybackView*            mBaseVideoView;
    71         CMPXVideoViewWrapper*             mVideoViewWrapper;
    69         CMPXVideoViewWrapper*             mVideoViewWrapper;
    72         VideoPlaybackViewFileDetails*     mFileDetails; 
    70         VideoPlaybackViewFileDetails*     mFileDetails;
    73 };
    71 };
    74 
    72 
    75 #endif  // __TESTVIDEODISPLAYHANDLER_H__
    73 #endif  // __TESTVIDEODISPLAYHANDLER_H__
    76 
    74 
    77 // End of file
    75 // End of file