videoplayback/videoplaybackview/tsrc/testvideoplaybackview/inc/testvideoplaybackview.h
changeset 52 e3cecb93e76a
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 Playback View Plugin
       
    15 *
       
    16 */
       
    17 
       
    18 // Version : %version: 10 %
       
    19 
       
    20 #ifndef __TESTVIDEOPLAYBACKVIEW_H__
       
    21 #define __TESTVIDEOPLAYBACKVIEW_H__
       
    22 
       
    23 
       
    24 // INCLUDES
       
    25 #include <QtTest/QtTest>
       
    26 
       
    27 
       
    28 class VideoPlaybackView;
       
    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 testEventFilter();
       
    64     void testClosePlaybackView();
       
    65     void testHandlePdlStateChange();
       
    66     void testHandlePluginError();
       
    67     void testHandleStoppedStatePrevView();
       
    68     void testHandleStoppedStateNoPrevView();
       
    69     void testHandleBackPrevView();
       
    70     void testHandleBackNoPrevView();
       
    71     void testHandleSoftkeyback();
       
    72     void testHandleDeactivateView();
       
    73     void testDoClosePlayer();
       
    74     void testGestureEvent();
       
    75     void testReactivationAfterPriorTermination();
       
    76     void testHandleAppBackground();
       
    77     void testHandleAppForeground();
       
    78 
       
    79 signals:
       
    80     void commandSignal();
       
    81 
       
    82 private:
       
    83     VideoPlaybackView*  mVideoView;
       
    84 
       
    85 };
       
    86 
       
    87 #endif  // __TESTVIDEOPLAYBACKVIEW_H__
       
    88 
       
    89 // End of file
       
    90