MCPcopy Create free account
hub / github.com/cisco/openh264 / TestErrorConIdc

Method TestErrorConIdc

test/decoder/DecUT_DecExt.cpp:467–497  ·  view source on GitHub ↗

DECODER_OPTION_ERROR_CON_IDC

Source from the content-addressed store, hash-verified

465
466//DECODER_OPTION_ERROR_CON_IDC
467void DecoderInterfaceTest::TestErrorConIdc() {
468 int iTmp, iOut;
469 CM_RETURN eRet;
470 int32_t iRet = ERR_NONE;
471
472 iRet = Init();
473 ASSERT_EQ (iRet, ERR_NONE);
474
475 //Test GetOption
476 //invalid input
477 eRet = (CM_RETURN) m_pDec->GetOption (DECODER_OPTION_ERROR_CON_IDC, NULL);
478 EXPECT_EQ (eRet, cmInitParaError);
479
480 //Test GetOption
481 //valid input
482 eRet = (CM_RETURN) m_pDec->GetOption (DECODER_OPTION_ERROR_CON_IDC, &iOut);
483 EXPECT_EQ (eRet, cmResultSuccess);
484
485 //Test SetOption
486 iTmp = rand() & 7;
487 eRet = (CM_RETURN) m_pDec->SetOption (DECODER_OPTION_ERROR_CON_IDC, &iTmp);
488 EXPECT_EQ (eRet, cmResultSuccess);
489
490 //Test GetOption
491 eRet = (CM_RETURN) m_pDec->GetOption (DECODER_OPTION_ERROR_CON_IDC, &iOut);
492 EXPECT_EQ (eRet, cmResultSuccess);
493 EXPECT_EQ (iTmp, iOut);
494
495 Uninit();
496
497}
498
499//DECODER_OPTION_TRACE_LEVEL
500void DecoderInterfaceTest::TestTraceLevel() {

Callers

nothing calls this directly

Calls 3

UninitFunction · 0.85
GetOptionMethod · 0.45
SetOptionMethod · 0.45

Tested by

no test coverage detected