History

Merge pull request #3002 from mstorsjo/fix-c-abi-test

Test the FlushFrame function in the C ABI

ruil2 committed 8 years ago

Commit bb255192 parents e244a5e 9431ac62 files · +2 −1Browse files

Unified · Split

2 files
  1. test/api/c_interface_test.c +1 −0
  2. test/api/cpp_interface_test.cpp +1 −1
test/api/c_interface_test.c+1−0
@@ -31,6 +31,7 @@ void CheckDecoderInterface (ISVCDecoder* p, CheckFunc check) { · 30 unmodified lines
31 CHECK (7, p, DecodeParser);31 CHECK (7, p, DecodeParser);
32 CHECK (8, p, SetOption);32 CHECK (8, p, SetOption);
33 CHECK (9, p, GetOption);33 CHECK (9, p, GetOption);
34 CHECK (10, p, FlushFrame);
34}35}
35 36
36struct bool_test_struct {37struct bool_test_struct {
test/api/cpp_interface_test.cpp+1−1
@@ -89,7 +89,7 @@ struct SVCDecoderImpl : public ISVCDecoder { · 88 unmodified lines
89 }89 }
90 virtual DECODING_STATE EXTAPI FlushFrame (unsigned char** ppDst, SBufferInfo* pDstInfo) {90 virtual DECODING_STATE EXTAPI FlushFrame (unsigned char** ppDst, SBufferInfo* pDstInfo) {
91 EXPECT_TRUE (gThis == this);91 EXPECT_TRUE (gThis == this);
92 return static_cast<DECODING_STATE> (5);92 return static_cast<DECODING_STATE> (10);
93 }93 }
94 virtual DECODING_STATE EXTAPI DecodeFrameEx (const unsigned char* pSrc,94 virtual DECODING_STATE EXTAPI DecodeFrameEx (const unsigned char* pSrc,
95 const int iSrcLen, unsigned char* pDst, int iDstStride,95 const int iSrcLen, unsigned char* pDst, int iDstStride,

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