camerasrv_plat/media_recorder_api/tsrc/src/camcTestTop.cpp
changeset 0 9b3e960ffc8a
child 42 605672cc2a86
equal deleted inserted replaced
-1:000000000000 0:9b3e960ffc8a
       
     1 /*
       
     2 * Copyright (c) 2002 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:  Camcorder MMF API Test DLL
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 // INCLUDE FILES
       
    21 
       
    22 
       
    23 #include "CamcTestTop.h"
       
    24 #include "CamcTest_1.h"
       
    25 #include "CamcTest_2.h"
       
    26 #include "CamcTest_3.h"
       
    27 #include "CamcTest_4.h"
       
    28 #include "CamcTest_5.h"
       
    29 #include "CamcTest_6.h"
       
    30 #include "CamcTest_7.h"
       
    31 #include "CamcTest_8.h"
       
    32 #include "CamcTest_9.h"
       
    33 #include "CamcTest_visualcheckdsp.h"
       
    34 #include "CamcTest_visualcheck.h"
       
    35 #include <e32des8.h>
       
    36 
       
    37 
       
    38 // EXTERNAL DATA STRUCTURES
       
    39 
       
    40 // EXTERNAL FUNCTION PROTOTYPES 
       
    41  
       
    42 // CONSTANTS
       
    43 
       
    44 // MACROS
       
    45 
       
    46 // LOCAL CONSTANTS AND MACROS
       
    47 
       
    48 // MODULE DATA STRUCTURES
       
    49 
       
    50 // LOCAL FUNCTION PROTOTYPES
       
    51 
       
    52 // FORWARD DECLARATIONS
       
    53 
       
    54 //////////////////
       
    55 // CppUnit things
       
    56 //////////////////
       
    57 
       
    58 #ifndef EKA2
       
    59 // Starting point of the DLL (Always needed) 
       
    60 GLDEF_C TInt E32Dll(TDllReason)
       
    61     {
       
    62     return(KErrNone);
       
    63     }
       
    64 #endif
       
    65 // Exactly one exported function returning the suite of 
       
    66 // test functions for the test runner in the framework.
       
    67 // (Always needed)
       
    68 //
       
    69 
       
    70 
       
    71 
       
    72 
       
    73 EXPORT_C MTest* CreateTopFct ()
       
    74     {
       
    75     MTest * testSuite = NULL;
       
    76     TRAPD(err, testSuite = CCamcTestTop::suiteL() ) ;
       
    77     if (err)
       
    78         {
       
    79         User::Panic(_L("suiteL has left !"), 99);
       
    80         }
       
    81     return ( testSuite );
       
    82     }
       
    83 
       
    84  
       
    85 CCamcTestTop::~CCamcTestTop()
       
    86     {
       
    87     }
       
    88 
       
    89 
       
    90 MTest* CCamcTestTop::suiteL ()
       
    91     {
       
    92     CTestSuite *suite = CTestSuite::NewL(_L8("Test Suite Container"));
       
    93 
       
    94     suite->addTestL(CCamcTest_1::suiteL());
       
    95     suite->addTestL(CCamcTest_2::suiteL());
       
    96     suite->addTestL(CCamcTest_3::suiteL());
       
    97     suite->addTestL(CCamcTest_4::suiteL());
       
    98     suite->addTestL(CCamcTest_5::suiteL());   
       
    99     suite->addTestL(CCamcTest_6::suiteL());
       
   100     suite->addTestL(CCamcTest_7::suiteL());    
       
   101     suite->addTestL(CCamcTest_8::suiteL());
       
   102     suite->addTestL(CCamcTest_9::suiteL());
       
   103 
       
   104     // Visual checks are flagged out because tests are very long !
       
   105     
       
   106     // Only one of these suite should be selected, depending on 
       
   107     // HW used for the test.
       
   108     // suite->addTestL(CCamcTest_visualcheckdsp::suiteL()); 
       
   109     // suite->addTestL(CCamcTest_visualcheck::suiteL()); 
       
   110 
       
   111     return suite;
       
   112     
       
   113     }
       
   114 
       
   115