videocollection/videocollectionwrapper/tsrc/testvideoproxymodelcontent/inc/testvideoproxymodelcontent.h
changeset 58 d2b028fd1f7d
equal deleted inserted replaced
55:4bfa887905cf 58:d2b028fd1f7d
       
     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:   tester for methods in VideoProxyModelContent
       
    15 * 
       
    16 */
       
    17 
       
    18 #ifndef __TESTVIDEOPROXYMODELCONTENT_H__
       
    19 #define __TESTVIDEOPROXYMODELCONTENT_H__
       
    20 
       
    21 
       
    22 // INCLUDES
       
    23 #include <QtTest/QtTest>
       
    24 #include <mpxitemid.h>
       
    25 
       
    26 class FilterProxyTester;
       
    27 
       
    28 class TestVideoProxyModelContent : public QObject
       
    29 {
       
    30     Q_OBJECT
       
    31 
       
    32     // test functions for the test framework
       
    33     
       
    34 signals:
       
    35     
       
    36 private slots:
       
    37 
       
    38     /**
       
    39      * will be called before each testfunction is executed.
       
    40      *
       
    41      */
       
    42     void init(); 
       
    43     
       
    44     /**
       
    45      * will be called after every testfunction.
       
    46      *
       
    47      */
       
    48     void cleanup();
       
    49 
       
    50     /**
       
    51      * Tests connectSignals
       
    52      */
       
    53     void testConnectSignals();
       
    54     
       
    55     /**
       
    56      * Tests disconnectSignals
       
    57      */
       
    58     void testDisconnectSignals();
       
    59     
       
    60     /**
       
    61      * Tests filterAcceptsRow
       
    62      */
       
    63     void testFilterAcceptsRow();
       
    64     
       
    65     /**
       
    66      * Tests getOpenItem
       
    67      */
       
    68     void testGetOpenItem();
       
    69     
       
    70     /**
       
    71      * Tests albumChangedSlot
       
    72      */
       
    73     void testAlbumChangedSlot();
       
    74 
       
    75 private:
       
    76 
       
    77     /**
       
    78      * tester object inherited from the actual test object
       
    79      * implemented to be able to call protected objects
       
    80      */
       
    81     FilterProxyTester *mTestObject;
       
    82     
       
    83 };
       
    84 
       
    85 #endif  // __TESTVIDEOPROXYMODELCONTENT_H__
       
    86 
       
    87 // End of file