videoplayback/hbvideoplaybackview/tsrc/testvideoplaybackview/inc/testvideoplaybackview.h
changeset 40 13331705e488
parent 38 ff53afa8ad05
equal deleted inserted replaced
39:f6d44a0cd476 40:13331705e488
     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 // Version : %version: 6 %
    18 // Version : %version: 7 %
    19 
    19 
    20 #ifndef __TESTVIDEOPLAYBACKVIEW_H__
    20 #ifndef __TESTVIDEOPLAYBACKVIEW_H__
    21 #define __TESTVIDEOPLAYBACKVIEW_H__
    21 #define __TESTVIDEOPLAYBACKVIEW_H__
    22 
    22 
    23 
    23 
    35 
    35 
    36     /**
    36     /**
    37      * will be called before each testfunction is executed.
    37      * will be called before each testfunction is executed.
    38      *
    38      *
    39      */
    39      */
    40     void init(); 
    40     void init();
    41     
    41 
    42     /**
    42     /**
    43      * will be called after every testfunction.
    43      * will be called after every testfunction.
    44      *
    44      *
    45      */
    45      */
    46     void cleanup();
    46     void cleanup();
    47         
    47 
    48     void setup();
    48     void setup();
    49     
    49 
    50 private:
    50 private:
    51     
    51 
    52     void verifyHandlePluginError( TInt error, bool closeView = true );
    52     void verifyHandlePluginError( TInt error, bool closeView = true );
    53     
    53 
    54     // test functions for the test framework         
    54     // test functions for the test framework
    55 private slots:
    55 private slots:
    56 
    56 
    57     // the order in which these testXX methods are declared is important
    57     // the order in which these testXX methods are declared is important
    58     // changing this order will affect the test results
    58     // changing this order will affect the test results
    59     void testHandleActivateView();
    59     void testHandleActivateView();
    60     void testShowDialog();
    60     void testShowDialog();
    61     void testGetWindow();
    61     void testGetWindow();
    62     void testIssuePlayCommand();
    62     void testIssuePlayCommand();
    63     void testEventFilter();
    63     void testEventFilter();
    64     void testClosePlaybackView();
    64     void testClosePlaybackView();
    65     void testMousePressEvent();
       
    66     void testMouseReleaseEvent();
       
    67     void testHandlePdlStateChange();
    65     void testHandlePdlStateChange();
    68     void testHandlePluginError();
    66     void testHandlePluginError();
    69     void testHandleStoppedStatePrevView();
    67     void testHandleStoppedStatePrevView();
    70     void testHandleStoppedStateNoPrevView();
    68     void testHandleStoppedStateNoPrevView();
    71     void testHandleBackPrevView();
    69     void testHandleBackPrevView();
    72     void testHandleBackNoPrevView();
    70     void testHandleBackNoPrevView();
    73     void testHandleSoftkeyback();
    71     void testHandleSoftkeyback();
    74     void testHandleDeactivateView();
    72     void testHandleDeactivateView();
    75     void testDoClosePlayer();
    73     void testDoClosePlayer();
       
    74     void testGestureEvent();
    76 
    75 
    77 signals:
    76 signals:
    78     void commandSignal();
    77     void commandSignal();
    79 
    78 
    80 private:
    79 private:
    81     HbVideoPlaybackView*  mVideoView;
    80     HbVideoPlaybackView*  mVideoView;
    82 
    81 
    83 };
    82 };
    84 
    83 
    85 
       
    86 #endif  // __TESTVIDEOPLAYBACKVIEW_H__
    84 #endif  // __TESTVIDEOPLAYBACKVIEW_H__
    87 
    85 
    88 // End of file
    86 // End of file
    89     
       
    90 
    87 
    91