DECODER_OPTION_ERROR_CON_IDC
| 465 | |
| 466 | //DECODER_OPTION_ERROR_CON_IDC |
| 467 | void 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 |
| 500 | void DecoderInterfaceTest::TestTraceLevel() { |