I need to mock objects and change method behavior in c++.
The problem is that Gmock requires my methods to be virtual in order to inherit from them and change the behavior but I am not able to change my methods to virtual.
What I have tried:
I have tried Typemock Isolator++, it can access any kind of method but unfortunately it is commercial .
Other mocking frameworks that I checked also requires each method to be virtual just like Gmock.
Thanks in advance