utilities/mpmediacontroller/tsrc/unittest_mpmediakeyhandler/inc/unittest_mpmediakeyhandler.h
author hgs
Fri, 06 Aug 2010 16:51:36 -0500
changeset 47 4cc1412daed0
permissions -rw-r--r--
201031
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
47
hgs
parents:
diff changeset
     1
/**
hgs
parents:
diff changeset
     2
* Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
hgs
parents:
diff changeset
     3
* All rights reserved.
hgs
parents:
diff changeset
     4
* This component and the accompanying materials are made available
hgs
parents:
diff changeset
     5
* under the terms of "Eclipse Public License v1.0"
hgs
parents:
diff changeset
     6
* which accompanies this distribution, and is available
hgs
parents:
diff changeset
     7
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
hgs
parents:
diff changeset
     8
*
hgs
parents:
diff changeset
     9
* Initial Contributors:
hgs
parents:
diff changeset
    10
* Nokia Corporation - initial contribution.
hgs
parents:
diff changeset
    11
*
hgs
parents:
diff changeset
    12
* Contributors:
hgs
parents:
diff changeset
    13
*
hgs
parents:
diff changeset
    14
* Description: Unit test for mpmediakeyhandler
hgs
parents:
diff changeset
    15
*
hgs
parents:
diff changeset
    16
*/
hgs
parents:
diff changeset
    17
hgs
parents:
diff changeset
    18
#ifndef TESTMPMEDIAKEYHANDLER_H
hgs
parents:
diff changeset
    19
#define TESTMPMEDIAKEYHANDLER_H
hgs
parents:
diff changeset
    20
hgs
parents:
diff changeset
    21
#include <QtTest/QtTest>
hgs
parents:
diff changeset
    22
hgs
parents:
diff changeset
    23
class MpMediaKeyHandler;
hgs
parents:
diff changeset
    24
class MpMediaKeyHandlerPrivate;
hgs
parents:
diff changeset
    25
hgs
parents:
diff changeset
    26
class TestMpMediaKeyHandler : public QObject
hgs
parents:
diff changeset
    27
{
hgs
parents:
diff changeset
    28
    Q_OBJECT
hgs
parents:
diff changeset
    29
hgs
parents:
diff changeset
    30
public:
hgs
parents:
diff changeset
    31
    
hgs
parents:
diff changeset
    32
    TestMpMediaKeyHandler();
hgs
parents:
diff changeset
    33
    virtual ~TestMpMediaKeyHandler();
hgs
parents:
diff changeset
    34
hgs
parents:
diff changeset
    35
// from QtTest
hgs
parents:
diff changeset
    36
public slots:
hgs
parents:
diff changeset
    37
hgs
parents:
diff changeset
    38
    void initTestCase();
hgs
parents:
diff changeset
    39
    void cleanupTestCase();
hgs
parents:
diff changeset
    40
    void init();
hgs
parents:
diff changeset
    41
    void cleanup();
hgs
parents:
diff changeset
    42
hgs
parents:
diff changeset
    43
// internal
hgs
parents:
diff changeset
    44
private slots:
hgs
parents:
diff changeset
    45
hgs
parents:
diff changeset
    46
    void testConstructor();
hgs
parents:
diff changeset
    47
    void testDestructor();
hgs
parents:
diff changeset
    48
    void testCommandPausePlayKey();
hgs
parents:
diff changeset
    49
    void testCommandPlayKey();
hgs
parents:
diff changeset
    50
    void testCommandStopKey();
hgs
parents:
diff changeset
    51
    void testCommandPauseKey();
hgs
parents:
diff changeset
    52
    void testCommandRewindKeyPress();
hgs
parents:
diff changeset
    53
    void testCommandRewindKeyRelease();
hgs
parents:
diff changeset
    54
    void testCommandFastForwardKeyPress();
hgs
parents:
diff changeset
    55
    void testCommandFastForwardKeyRelease();
hgs
parents:
diff changeset
    56
    void testCommandBackwardKey();
hgs
parents:
diff changeset
    57
    void testCommandForwardKey();
hgs
parents:
diff changeset
    58
    void testCommandVolumeUpKey();
hgs
parents:
diff changeset
    59
    void testCommandVolumeDownKey();
hgs
parents:
diff changeset
    60
hgs
parents:
diff changeset
    61
    void testPlay();
hgs
parents:
diff changeset
    62
    void testTuneFunction();
hgs
parents:
diff changeset
    63
    void testSelectDiskFunction();
hgs
parents:
diff changeset
    64
    void testAudioInputFunction();
hgs
parents:
diff changeset
    65
    void testSelectAvInputFunction();
hgs
parents:
diff changeset
    66
hgs
parents:
diff changeset
    67
private:
hgs
parents:
diff changeset
    68
hgs
parents:
diff changeset
    69
    MpMediaKeyHandler           *mTest;
hgs
parents:
diff changeset
    70
    MpMediaKeyHandlerPrivate    *mTestPrivate;
hgs
parents:
diff changeset
    71
hgs
parents:
diff changeset
    72
};
hgs
parents:
diff changeset
    73
hgs
parents:
diff changeset
    74
#endif  // TESTMPMEDIAKEYHANDLER_H
hgs
parents:
diff changeset
    75