ref: 9431ac67eeae8fbc03670d0e11e8a510dcf59115
parent: 78376d70e176881c2feeaeab7610d4e5cb36908c
author: Martin Storsjö <martin@martin.st>
date: Mon Jul 30 10:41:57 EDT 2018
Test the FlushFrame function in the C ABI
--- a/test/api/c_interface_test.c
+++ b/test/api/c_interface_test.c
@@ -31,6 +31,7 @@
CHECK (7, p, DecodeParser);
CHECK (8, p, SetOption);
CHECK (9, p, GetOption);
+ CHECK (10, p, FlushFrame);
}
struct bool_test_struct {
--- a/test/api/cpp_interface_test.cpp
+++ b/test/api/cpp_interface_test.cpp
@@ -89,7 +89,7 @@
}
virtual DECODING_STATE EXTAPI FlushFrame (unsigned char** ppDst, SBufferInfo* pDstInfo) {
EXPECT_TRUE (gThis == this);
- return static_cast<DECODING_STATE> (5);
+ return static_cast<DECODING_STATE> (10);
}
virtual DECODING_STATE EXTAPI DecodeFrameEx (const unsigned char* pSrc,
const int iSrcLen, unsigned char* pDst, int iDstStride,