Describe the feature
Provide an automated way to write the declarations for a class like MockOsInterface from OsInterface. I.e., translate a virtual Interface function definition into a gmock Mock class function definition.
This involves writing out the googletest macros like:
Reason for request
Similar to #183, this is to save time writing out the googletest declarations manually when it is a mostly mechanical process.
Timeline
No timeline - not urgent.
Additional information
googletest/googlemock is a popular framework, so there may already be tools that can do this in a generalized way. We should see what existing tools there are before writing our own.
Describe the feature Provide an automated way to write the declarations for a class like
MockOsInterface
fromOsInterface
. I.e., translate a virtualInterface
function definition into a gmockMock
class function definition.This involves writing out the googletest macros like:
OsInterface.h
↓
MockOsInterface.h
Reason for request Similar to #183, this is to save time writing out the googletest declarations manually when it is a mostly mechanical process.
Timeline No timeline - not urgent.
Additional information googletest/googlemock is a popular framework, so there may already be tools that can do this in a generalized way. We should see what existing tools there are before writing our own.