tsrc/unittest/unittest_medialistwrapper/unittest_medialistwrapper.h
changeset 71 27f2d7aec52a
parent 26 c499df2dbb33
equal deleted inserted replaced
69:45459746d5e8 71:27f2d7aec52a
    19 
    19 
    20 #include <QtTest/QtTest>
    20 #include <QtTest/QtTest>
    21 
    21 
    22 class GlxMLWrapper;
    22 class GlxMLWrapper;
    23 
    23 
    24 class TestGlxMLWrapper : public QObject
    24 class TestGlxMLWrapper: public QObject
    25 {
    25 {
    26     Q_OBJECT
    26 Q_OBJECT
    27     
    27 
    28 signals:
    28 signals:
    29 
    29 
    30 private slots:
    30 private slots:
    31     /**
    31     /**
    32      * called before anything else when test starts
    32      * called before anything else when test starts
    33      */
    33      */
    34     void initTestCase();
    34     void initTestCase();
    35 
    35 
    36   /**
    36     /**
    37      * will be called before each testfunction is executed.
    37      * will be called before each testfunction is executed.
    38      *
    38      *
    39      */
    39      */
    40     void init(); 
    40     void init();
    41     
    41 
    42     /**
    42     /**
    43      * will be called after every testfunction.
    43      * will be called after every testfunction.
    44      *
    44      *
    45      */
    45      */
    46     void cleanup();
    46     void cleanup();
    47     
    47 
    48     /**
    48     /**
    49      * will be called after testing ends
    49      * will be called after testing ends
    50      *
    50      *
    51      */
    51      */
    52     void cleanupTestCase();
    52     void cleanupTestCase();
    53  
       
    54     
    53     
    55     void testGetItemCount();
       
    56     void testRetrieveItemDateIsNull();
    54     void testRetrieveItemDateIsNull();
    57     void testRetrieveItemIconIsNull();
    55     void testRetrieveItemIconIsNull();
    58     void testSetContextMode();
    56     
    59     void testRetrieveItemIcon();
    57     void testSetContextModeGrid();
       
    58     void testSetContextModeFullScreen();
       
    59     void testSetContextModeList();
       
    60     void testSetContextModeFavorite();
       
    61     void testSetContextModeComment();
       
    62     
       
    63     void testRemoveContextModeGrid();
       
    64     void testRemoveContextModeFullScreen();
       
    65     void testRemoveContextModeList();
       
    66     void testRemoveContextModeFavorite();    
       
    67     void testRemoveContextComment();    
       
    68 
       
    69     void testGetItemCount();    
    60     void testGetFocusIndex();
    70     void testGetFocusIndex();
    61     void testSetFocusIndex();
    71     void testSetFocusIndex();
    62 	void testRetrieveItemUri();
    72     void testSetSelectedIndex();
    63 	void testRetrieveItemUriName();
    73     
    64 	void testRetrieveItemDateIsNotNull();
    74     void testRetrieveListTitle();
    65 	void testRetrieveItemDateIsValid();
    75     void testRetrieveListSubTitle();
    66 	void testRetrieveItemDateValidate();
    76     
       
    77     void testRetrieveListDesc();    
    67     void testGetVisibleWindowIndex();
    78     void testGetVisibleWindowIndex();
    68     void testSetVisibleWindowIndex();
    79     void testSetVisibleWindowIndex();
       
    80     void testRetrieveItemUri();
       
    81     void testRetrieveItemUriName();    
       
    82     void testRetrieveItemSize();
       
    83     void testRetrieveItemIcon();
       
    84     void testRetrieveItemDateIsNotNull();
       
    85     void testRetrieveItemDateIsValid();
       
    86     void testRetrieveItemDateValidate();    
       
    87     void testRetrieveItemTime();
       
    88     void testRetrieveViewTitle();
       
    89     
       
    90     void testIsDrmProtected();
       
    91     void testIsDrmValid();
       
    92     void testSetDrmVaild();
       
    93     
       
    94     void testRetrieveBitmap();
       
    95     void testRetrieveListItemCount();
       
    96     void testIsSystemItem();
       
    97     void testIsCorruptedImage();
       
    98     
    69     void testItemsAdded();
    99     void testItemsAdded();
    70     void testItemsRemoved();
   100     void testItemsRemoved();
    71     void testHandleReceivedIcon();
   101     void testHandleReceivedIcon();
    72     void testHandleIconCorrupt();
   102     void testHandleIconCorrupt();
    73     void testHandleListItemAvailable();
   103     void testHandleListItemAvailable();
    74     // void testRetrieveListTitle();
       
    75     // void testRetrieveListSubTitle();
       
    76     // void testRetrieveItemDimension();
       
    77     // void testHandleGeneralError();
       
    78 
   104 
    79 private:
   105 private:
    80   
   106 
    81     /**
   107     /**
    82      * object under test
   108      * object under test
    83      */  
   109      */
    84     GlxMLWrapper *mTestObject;
   110     GlxMLWrapper *mTestObject;
       
   111     GlxMLWrapper *mListTestObject;
    85 };
   112 };
    86 
   113 
    87 #endif //__UNITTEST_MEDIALISTWRAPPER_H__
   114 #endif //__UNITTEST_MEDIALISTWRAPPER_H__