GoogleMock的MOCK_METHOD×最多只支持10个参数
今天用GoogleMock,有个函数有23个参数,写了MOCK_METHOD23之后编译出错: error C2059: syntax error : '__stdcall' ...
原因是MOCK_METHOD×最多只支持10个参数,详见下面的说明:
Issue 117 - googlemock - Can I extend MOCK_METHOD* to make it support more than 10 arguments function? - Google C++ Mocking Framework - Google Project Hosting
原因是MOCK_METHOD×最多只支持10个参数,详见下面的说明:
Issue 117 - googlemock - Can I extend MOCK_METHOD* to make it support more than 10 arguments function? - Google C++ Mocking Framework - Google Project Hosting