videocollection/videocollectionwrapper/tsrc/testvideothumbnaildata_p/inc/testvideothumbnaildata_p.h
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Fri, 17 Sep 2010 08:30:05 +0300
changeset 62 0e1e938beb1a
parent 52 e3cecb93e76a
permissions -rw-r--r--
Revision: 201035 Kit: 201037

/**
* 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 methods in VideoThumbnailData
*
*/

#ifndef __TESTVIDEOTHUMBNAILDATA_P_H__
#define __TESTVIDEOTHUMBNAILDATA_P_H__

// INCLUDES
#include <QtTest/QtTest>

// FORWARD DECLARATIONS
class VideoThumbnailDataTester;
class VideoProxyModelGeneric;
class VideoCollectionWrapper;
class QSignalSpy;

class TestVideoThumbnailData_p : public QObject
{
    Q_OBJECT

    void init();

    void cleanup();
    
    bool checkThumbnailReadyCount(QSignalSpy *spy, int count);

    // test functions for the test framework
private slots:

    void testDestructor();
    void testInitialize();
    void testGetThumbnail();
    void testStartFetchingThumbnail();
    void testStartFetchingThumbnails();
    void testDoBackgroundFetching();
    void testThumbnailReadySlot();
    void testDefaultThumbnail();
    void testRemoveThumbnail();
    void testStartBackgroundFetching();
    void testEnableBackgroundFetching();
    void testBackgroundFetchingEnabled();
    void testFreeThumbnailData();
    void testAllThumbnailsFetchedSlot();
    void testEnableThumbnailCreation();
    void testAboutToQuitSlot();

signals:
    void testSignal();

private:

    VideoThumbnailDataTester *mTestObject;
    VideoProxyModelGeneric *mModel;
    
public:
    VideoCollectionWrapper *mWrapper;
};

#endif  // __TESTVIDEOTHUMBNAILDATA_P_H__

// End of file