My team and I are looking for a mocking framework for C and C++ on Linux. We have a huge codebase that we want to test, so the most important thing for us is having a mocking framework that will allow us not to change our legacy code in order to write tests. Does anyone know such mocking framework?
We use Typemock's Isolator++, this is the most friendly mocking tool i encountered for C. The mocking abilities is extremely friendly because 100% of your code remains comepletely untouched. This framework allows you to fake every kind of method or class and control the methods behavior. It also integrates with GoogleTest which we use in my team and it works smoothly.