mpengine/tsrc/unittest_mpsongscanner/inc/unittest_mpsongscanner.h
changeset 37 eb79a7c355bf
equal deleted inserted replaced
36:a0afa279b8fe 37:eb79a7c355bf
       
     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 MpSongScanner
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef TESTMPSONGSCANNER_H
       
    19 #define TESTMPSONGSCANNER_H
       
    20 
       
    21 #include <QtTest/QtTest>
       
    22 
       
    23 class MpSongScanner;
       
    24 class MpMpxHarvesterFrameworkWrapper;
       
    25 
       
    26 class TestMpSongScanner : public QObject
       
    27 {
       
    28     Q_OBJECT
       
    29 
       
    30 public:
       
    31     TestMpSongScanner();
       
    32     virtual ~TestMpSongScanner();
       
    33 
       
    34 public slots:
       
    35     void initTestCase();
       
    36     void cleanupTestCase();
       
    37     void init();
       
    38     void cleanup();
       
    39 
       
    40 private slots:
       
    41     void testConstructor();
       
    42     void testScan();
       
    43     void testIsAutomaticScan();
       
    44     void testCancelScan();
       
    45     void testScanStartedSignal();
       
    46     void testHandleScanEnded();
       
    47     void testScanCountChangedSignal();
       
    48     void testHandleDiskEvent();
       
    49 
       
    50 private:
       
    51     MpSongScanner  *mTest;
       
    52     MpMpxHarvesterFrameworkWrapper *mHarvesterWrapper;
       
    53 
       
    54 };
       
    55 
       
    56 #endif  // TESTMPSONGSCANNER_H
       
    57