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