예제 #1
0
//--------------------------------------------------------------------------------------------------
static void* TestThread
(
    void* context
)
{

    LE_INFO("======== Start UnitTest of MDC API ========");

    /* Test configuration */
    TestMdc_Configuration();

    /* Test Connection */
    TestMdc_Connection();

    /* Test handler */
    TestMdc_Handler();

    /* Test default profile */
    TestMdc_DefaultProfile();

    /* Test asynchronous start and stop session */
    TestMdc_StartStopAsync();

    /* Test statistics */
    TestMdc_Stat();

    LE_INFO("======== UnitTest of MDC API ends with SUCCESS ========");

    exit(EXIT_SUCCESS);
    return NULL;
}
예제 #2
0
파일: main.c 프로젝트: tegoo/legato-af
//--------------------------------------------------------------------------------------------------
int main(int argc, char *argv[])
{
    LE_LOG_SESSION = log_RegComponent( "mdc", &LE_LOG_LEVEL_FILTER_PTR);

    arg_SetArgs(argc,argv);

    // pa simu init */
    pa_mdcSimu_Init();

    /* init the le_mdc service */
    le_mdc_Init();

    /* init the pa_simu */
    pa_simSimu_Init();

    LE_INFO("======== Start UnitTest of MDC API ========");

    /* Test configuration */
    TestMdc_Configuration();

    /* Test Connection */
    TestMdc_Connection();

    /* Test handler */
    TestMdc_Handler();

    /* Test default profile */
    TestMdc_DefaultProfile();

    /* Test statistics */
    TestMdc_Stat();

    LE_INFO("======== UnitTest of MDC API ends with SUCCESS ========");

    return 0;
}