mpengine/tsrc/unittest_mpmediakeyhandler/inc/unittest_mpmediakeyhandler.h
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Fri, 11 Jun 2010 13:36:36 +0300
changeset 32 c163ef0b758d
parent 20 82baf59ce8dd
permissions -rw-r--r--
Revision: 201021 Kit: 2010123

/**
* Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
* All rights reserved.
* This component and the accompanying materials are made available
* under the terms of "Eclipse Public License v1.0"
* which accompanies this distribution, and is available
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
*
* Initial Contributors:
* Nokia Corporation - initial contribution.
*
* Contributors:
*
* Description: Unit test for mpmediakeyhandler
*
*/

#ifndef TESTMPMEDIAKEYHANDLER_H
#define TESTMPMEDIAKEYHANDLER_H

#include <QtTest/QtTest>

class MpMediaKeyHandler;
class MpMediaKeyHandlerPrivate;

class TestMpMediaKeyHandler : public QObject
{
    Q_OBJECT

public:
    
    TestMpMediaKeyHandler();
    virtual ~TestMpMediaKeyHandler();

// from QtTest
public slots:

    void initTestCase();
    void cleanupTestCase();
    void init();
    void cleanup();

// internal
private slots:

    void testConstructor();
    void testDestructor();
    void testConstructorFail();
    void testDestructorFail();
    void testCommandVolumeUpKey();
    void testCommandVolumeDownKey();
    void testCommandPlayKey();
    void testCommandPauseKey();
    void testCommandPlayPauseKey();
    void testCommandStopKey();
    void testCommandFastForwardKeyPress();
    void testCommandFastForwardKeyRelease();
    void testCommandRewindKeyPress();
    void testCommandRewindKeyRelease();
    void testCommandForwardKey();
    void testCommandBackwardKey();
    
    void testPlay();
    void testAudioInputFunction();
    void testSelectAvInputFunction();
    void testSelectDiskFunction();
    void testTuneFunction();

private:
    
    MpMediaKeyHandler           *mTest;
    MpMediaKeyHandlerPrivate    *mTestPrivate;

};

#endif  // TESTMPMEDIAKEYHANDLER_H