mpengine/tsrc/unittest_mpmpxplaybackframeworkwrapper/inc/unittest_mpmpxplaybackframeworkwrapper.h
changeset 32 c163ef0b758d
child 43 0f32e550d9d8
child 48 af3740e3753f
equal deleted inserted replaced
29:8192e5b5c935 32:c163ef0b758d
       
     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: Unit test for mpmpxplaybackframeworkwrapper
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef TESTMPMPXPLAYBACKFRAMEWORKWRAPPER_H
       
    19 #define TESTMPMPXPLAYBACKFRAMEWORKWRAPPER_H
       
    20 
       
    21 #include <QtTest/QtTest>
       
    22 
       
    23 class MpMpxPlaybackFrameworkWrapper;
       
    24 class MpMpxPlaybackFrameworkWrapperPrivate;
       
    25 class CMPXMedia;
       
    26 class MpPlaybackData;
       
    27 
       
    28 class TestMpMpxPlaybackFrameworkWrapper : public QObject
       
    29 {
       
    30     Q_OBJECT
       
    31 
       
    32 public:
       
    33 
       
    34     TestMpMpxPlaybackFrameworkWrapper();
       
    35     virtual ~TestMpMpxPlaybackFrameworkWrapper();
       
    36     //test utility functions
       
    37     void loadTestData(TInt aPos);
       
    38 
       
    39 public slots:
       
    40 
       
    41     void initTestCase();
       
    42     void cleanupTestCase();
       
    43     void init();
       
    44     void cleanup();
       
    45 
       
    46 private slots:
       
    47 
       
    48     void testConstructor();
       
    49     void testPlaybackData();
       
    50     void testStop();
       
    51     void testPlayPause();
       
    52     void testSkipForward();
       
    53     void testSkipBackward();
       
    54     void testSetPosition();
       
    55     void testSetShuffle();
       
    56     void testSetRepeat();
       
    57     void testHandlePlaybackMessage();
       
    58     void testHandleProperty();
       
    59     void testHandleMedia();
       
    60     void testRetrieveSongDetails();
       
    61     void testUpdateState();
       
    62     void testForceStop();
       
    63     void testSetBalance();
       
    64     void testApplyAudioEffects();
       
    65     void testApplyEqualizer();
       
    66     void testPlay();
       
    67     void testStartSeekForward();
       
    68     void testStopSeeking();
       
    69     void testStartSeekBackward();
       
    70     void testHandleSubPlayerNamesL();
       
    71 
       
    72 private:
       
    73 
       
    74     MpMpxPlaybackFrameworkWrapper           *mTest;
       
    75     MpMpxPlaybackFrameworkWrapperPrivate    *mTestPrivate;
       
    76     CMPXMedia                               *iMediaTestData;
       
    77 
       
    78 };
       
    79 
       
    80 #endif  // TESTMPMPXPLAYBACKFRAMEWORKWRAPPER_H
       
    81 
       
    82 
       
    83 
       
    84