videoplayback/videoplaybackview/tsrc/testuserinputhandler/inc/testuserinputhandler.h
changeset 62 0e1e938beb1a
parent 59 a76e86df7ccd
equal deleted inserted replaced
59:a76e86df7ccd 62:0e1e938beb1a
     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 User Input Handler
    14 * Description:   tester for methods in User Input Handler
    15 * 
    15 *
    16 */
    16 */
    17 
    17 
    18 #ifndef __TESTUSERINPUTHANDLER_H__
    18 #ifndef __TESTUSERINPUTHANDLER_H__
    19 #define __TESTUSERINPUTHANDLER_H__
    19 #define __TESTUSERINPUTHANDLER_H__
    20 
    20 
    21 
    21 
    22 // INCLUDES
    22 // INCLUDES
    23 #include <QtTest/QtTest>
    23 #include <QtTest/QtTest>
    24 
    24 
    25 
    25 
    26 
       
    27 // forward declaration
    26 // forward declaration
    28 class CMPXVideoViewWrapper;
    27 class CMPXVideoViewWrapper;
       
    28 class VideoBasePlaybackView;
    29 class CVideoPlaybackUserInputHandler;
    29 class CVideoPlaybackUserInputHandler;
    30 class VideoBasePlaybackView;
       
    31 
    30 
    32 
    31 
    33 class TestUserInputHandler : public QObject
    32 class TestUserInputHandler : public QObject
    34 {
    33 {
    35     Q_OBJECT
    34     Q_OBJECT
    36 
    35 
    37 public:
    36     public:
       
    37         void init();
       
    38         void cleanup();
       
    39         void setup();
    38 
    40 
    39     void init(); 
    41     // test functions for the test framework
    40     
    42     private slots:
    41     void cleanup();
    43         void testProcessMediaKeyPlay();
    42         
    44         void testProcessMediaKeyPause();
    43     void setup();
    45         void testProcessMediaKeyPlayPause();
    44     
    46         void testProcessMediaKeyStop();
       
    47         void testProcessMediaKeyForward();
       
    48         void testProcessMediaKeyRewind();
       
    49         void testProcessMediaKeyVolumeUp();
       
    50         void testProcessMediaKeyVolumeDown();
       
    51         void testProcessMediaKeyWhenLocked();
       
    52         void testProcessMediaKeyWhenInBackground();
    45 
    53 
    46     // test functions for the test framework         
    54     private:
    47 private slots:
    55         CVideoPlaybackUserInputHandler*     mUserInputHdlr;
    48 
    56         VideoBasePlaybackView*              mBaseVideoView;
    49     void testProcessMediaKeyPlay();
    57         CMPXVideoViewWrapper*               mVideoViewWrapper;
    50 
       
    51     void testProcessMediaKeyPause();
       
    52 
       
    53     void testProcessMediaKeyPlayPause();
       
    54 
       
    55     void testProcessMediaKeyStop();
       
    56 
       
    57     void testProcessMediaKeyForward();
       
    58     
       
    59     void testProcessMediaKeyRewind();
       
    60     
       
    61     void testProcessMediaKeyVolumeUp();
       
    62     
       
    63     void testProcessMediaKeyVolumeDown();
       
    64  
       
    65     void testHandleTVOutEventL();
       
    66 		
       
    67     
       
    68 signals:
       
    69     
       
    70 private:
       
    71     CVideoPlaybackUserInputHandler*     mUserInputHdlr;	
       
    72     VideoBasePlaybackView*              mBaseVideoView;
       
    73     CMPXVideoViewWrapper*               mVideoViewWrapper;
       
    74  
       
    75 };
    58 };
    76 
    59 
    77 
    60 
    78 #endif  // __TESTUSERINPUTHANDLER_H__
    61 #endif  // __TESTUSERINPUTHANDLER_H__
    79 
    62