3 ms·
If you are mocking the library in its entirety, you just define the same classes/functions that they do - virtual or not - and then link to your implementation
by int_19h 4y ago
If you are mocking the library in its entirety, you just define the same classes/functions that they do - virtual or not - and then link to your implementation instead of theirs for the test build.
- ollien 4y agoHeh, that's an interesting strategy. My company primarily works with gmock, and I'm not certain you could do what you describe with gmock, but yeah that would work otherwise.