ref: bb25519f6bf2f75f68f3a087dedf4d74bcbf86b4
parent: e244a5eb912509325f9fc1434b587572c699e76c
parent: 9431ac67eeae8fbc03670d0e11e8a510dcf59115
author: ruil2 <ruil2@cisco.com>
date: Mon Aug 27 05:45:08 EDT 2018
Merge pull request #3002 from mstorsjo/fix-c-abi-test 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,