<%include file="__header.mako" /> #ifndef ${ name.upper() }_MOCK #define ${ name.upper() }_MOCK extern "C" { #include "${ name }.h" } #include #include class I${name}_mock { public: I${name}_mock(); ~I${name}_mock(); /* Functions */ % for fn in functions: MOCK_METHOD(${fn['return']}, ${fn['name']}, (${ ", ".join(fn['arguments']) })); % endfor }; using ${name}_mock = ::testing::NiceMock; #endif /* ${ name.upper() }_MOCK */