Is there a clean and easy way to mock non-virtual methods in c++ with gtest ? Despite using the GoogleMock way that force you to re-declare your mocked class.
This feature is essential in my point of view to enable the full potential of BDD, TDD and mocking in c++. I'm using FakeIt currently but I'm still encountering those difficulties :
- Testing code without having to use virtual methods
- Testing legacy code without impacting the current code
Edit : I found Injector++ and isolate++ that seems to be great solutions but not cross-plateform.