History

Readd a test for GetOption in TestInitUninit

In dc2cbe4, the previous test for GetOption that succeeds when the decoder is initialized was removed. Add a GetOption call for a different option, now that DECODER_OPTION_DATAFORMAT is removed.

Martin Storsjö committed 10 years ago

Commit eaf47981 parent b3b083c1 file · +3 −0Browse files

Showing the changes to test/decoder/DecUT_DecExt.cpp (1 of 1 file). Show all

Unified · Split

test/decoder/DecUT_DecExt.cpp+3−0
@@ -206,6 +206,9 @@ void DecoderInterfaceTest::TestInitUninit() { · 205 unmodified lines
206206 Init();
207207 m_sDecParam.bParseOnly = false;
208208 m_pDec->Initialize (&m_sDecParam);
209+ eRet = (CM_RETURN) m_pDec->GetOption (DECODER_OPTION_END_OF_STREAM, &iOutput);
210+ EXPECT_EQ (eRet, cmResultSuccess);
211+ EXPECT_EQ (iOutput, 0);
209212
210213 //Uninitialize, no GetOption can be done
211214 m_pDec->Uninitialize();

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t