musicservices/tsrc/unittest_musicservices/inc/unittest_musicservices.h
changeset 22 ecf06a08d4d9
equal deleted inserted replaced
20:82baf59ce8dd 22:ecf06a08d4d9
       
     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 MusicServices
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef TESTMUSICSERVICES_H
       
    19 #define TESTMUSICSERVICES_H
       
    20 
       
    21 #include <QtTest/QtTest>
       
    22 
       
    23 /* in our unit test usually this goes on the CPP file, but in this case we need it here to get
       
    24  the observer interface, and also the mpxcollectionopenutility stub before the tested class so 
       
    25  we get the stub instead of the normal mpxcollectionopenutility.*/
       
    26 //#include "stub/inc/mpxcollectionopenutility.h"
       
    27 
       
    28 
       
    29 class MusicServices;
       
    30 
       
    31 
       
    32 class TestMusicServices : public QObject
       
    33 {
       
    34     Q_OBJECT
       
    35 
       
    36 public:
       
    37 
       
    38     TestMusicServices();
       
    39     virtual ~TestMusicServices();
       
    40     
       
    41 public slots:
       
    42 
       
    43     void initTestCase();
       
    44     void cleanupTestCase();
       
    45     void init();
       
    46     void cleanup();
       
    47 
       
    48 private slots:
       
    49 
       
    50     void testConstructor();
       
    51     void testCurrentService();
       
    52     void testSetCurrentService();
       
    53 
       
    54 private:
       
    55 
       
    56     MusicServices  *mTest;
       
    57 
       
    58 };
       
    59 
       
    60 #endif  // TESTmusicservices_H
       
    61 
       
    62 
       
    63 
       
    64