标签: c++ unit-testing callback
如何为将回调函数作为参数的函数编写单元测试?
unsigned __int32 MyStream::DoThis(callBackFunction in_Function, unsigned __int32 in_Length) { //some code //some code return readStream->DoThis(in_Function, dataLength); }
答案 0 :(得分:1)