videoplayback/videoplaybackview/tsrc/testmpxvideoviewwrapper/inc/testmpxvideoviewwrapper.h
changeset 50 21fe8338c6bf
parent 44 518105d52e45
child 66 adb51f74b890
equal deleted inserted replaced
49:824471cb468a 50:21fe8338c6bf
     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 Playback View Plugin
    14 * Description:   tester for methods in Video Playback View Plugin
    15 * 
    15 *
    16 */
    16 */
    17 
    17 
    18 #ifndef __TESTMPXVIDEOVIEWWRAPPER_H__
    18 #ifndef __TESTMPXVIDEOVIEWWRAPPER_H__
    19 #define __TESTMPXVIDEOVIEWWRAPPER_H__
    19 #define __TESTMPXVIDEOVIEWWRAPPER_H__
    20 
    20 
    33 
    33 
    34         /**
    34         /**
    35          * will be called before each testfunction is executed.
    35          * will be called before each testfunction is executed.
    36          *
    36          *
    37          */
    37          */
    38         void init(); 
    38         void init();
    39     
    39 
    40         /**
    40         /**
    41          * will be called after every testfunction.
    41          * will be called after every testfunction.
    42          *
    42          *
    43          */
    43          */
    44         void cleanup();
    44         void cleanup();
    45     
    45 
    46     private slots:
    46     private slots:
    47         // the order in which these testXX methods are declared is important
    47         // the order in which these testXX methods are declared is important
    48         // changing this order will affect the test results
    48         // changing this order will affect the test results
    49         void testRequestMedia();
    49         void testRequestMedia();
    50         void testIsLive();
    50         void testIsLive();
    56         void testHandleProperty();
    56         void testHandleProperty();
    57         void testRetrieveFileNameAndMode();
    57         void testRetrieveFileNameAndMode();
    58         void testActivateClosePlayerActiveObject();
    58         void testActivateClosePlayerActiveObject();
    59         void testDoClosePlayer();
    59         void testDoClosePlayer();
    60         void testSetAspectRatio();
    60         void testSetAspectRatio();
    61         void testIsAppInFront();
       
    62         void testClosePlaybackView();
    61         void testClosePlaybackView();
    63         void testHandleVolumeCmd();
    62         void testHandleVolumeCmd();
    64         void testHandleShortPressBackward();
    63         void testHandleShortPressBackward();
    65         void testIssueVideoAppForegroundCmd();
    64         void testIssueVideoAppForegroundCmd();
    66         void testCreateControls();
    65         void testCreateControls();
    69         void testUpdateVideoRectDone();
    68         void testUpdateVideoRectDone();
    70         void testHandleBufferingState();
    69         void testHandleBufferingState();
    71         void testHandleVideoPlaybackMessage();
    70         void testHandleVideoPlaybackMessage();
    72         void testHandlePlaybackCommandComplete();
    71         void testHandlePlaybackCommandComplete();
    73         void testHandleMedia();
    72         void testHandleMedia();
       
    73         void testSurfacedAttached();
    74 
    74 
    75     signals:
    75     signals:
    76         void commandSignal(int);
    76         void commandSignal(int);
    77     
    77 
    78     private:
    78     private:
    79         CMPXVideoViewWrapper  *mVideoViewWrapper;
    79         CMPXVideoViewWrapper  *mVideoViewWrapper;
    80         VideoBasePlaybackView *mBaseVideoView; 
    80         VideoBasePlaybackView *mBaseVideoView;
    81 };
    81 };
    82 
    82 
    83 #endif  // __TESTMPXVIDEOVIEWWRAPPER_H__
    83 #endif  // __TESTMPXVIDEOVIEWWRAPPER_H__
    84 
    84 
    85 // End of file
    85 // End of file