mpengine/tsrc/unittest_mpmpxisolatedcollectionhelper/src/unittest_mpmpxisolatedcollectionhelper.cpp
changeset 29 8192e5b5c935
parent 22 ecf06a08d4d9
child 43 0f32e550d9d8
equal deleted inserted replaced
25:3ec52facab4d 29:8192e5b5c935
    13 *
    13 *
    14 * Description: Unit test for CMpMpxIsolatedCollectionHelper
    14 * Description: Unit test for CMpMpxIsolatedCollectionHelper
    15 *
    15 *
    16 */
    16 */
    17 
    17 
    18 #include <hbapplication.h>
       
    19 #include <hbmainwindow.h>
       
    20 
       
    21 #include <mpxmedia.h>
    18 #include <mpxmedia.h>
    22 #include <mpxcollectionplaylist.h>
    19 #include <mpxcollectionplaylist.h>
    23 #include <mpxcollectionpath.h>
    20 #include <mpxcollectionpath.h>
    24 
    21 
    25 #include "unittest_mpmpxisolatedcollectionhelper.h"
    22 #include "unittest_mpmpxisolatedcollectionhelper.h"
    32 /*!
    29 /*!
    33  Make our test case a stand-alone executable that runs all the test functions.
    30  Make our test case a stand-alone executable that runs all the test functions.
    34  */
    31  */
    35 int main(int argc, char *argv[])
    32 int main(int argc, char *argv[])
    36 {
    33 {
    37     HbApplication app(argc, argv);
       
    38     HbMainWindow window;
       
    39 
       
    40     TestCMpMpxIsolatedCollectionHelper tv;
    34     TestCMpMpxIsolatedCollectionHelper tv;
    41 
    35 
    42     char *pass[3];
    36     if ( argc > 1 ) {
    43     pass[0] = argv[0];
    37         return QTest::qExec( &tv, argc, argv);
    44     pass[1] = "-o";
    38     }
    45     pass[2] = "c:\\data\\unittest_mpmpxisolatedcollectionhelper.txt";
    39     else {
       
    40         char *pass[3];
       
    41         pass[0] = argv[0];
       
    42         pass[1] = "-o";
       
    43         pass[2] = "c:\\data\\unittest_mpmpxisolatedcollectionhelper.txt";
    46 
    44 
    47     int res = QTest::qExec(&tv, 3, pass);
    45         return QTest::qExec(&tv, 3, pass);
    48 
    46     }
    49     return res;
       
    50 }
    47 }
    51 
    48 
    52 TestCMpMpxIsolatedCollectionHelper::TestCMpMpxIsolatedCollectionHelper()
    49 TestCMpMpxIsolatedCollectionHelper::TestCMpMpxIsolatedCollectionHelper()
    53     : mTest( 0 ),
    50     : mTest( 0 ),
    54       iEntriesFromoOpenCallback ( 0 ),
    51       iEntriesFromoOpenCallback ( 0 ),