I believe google must have thought about it.
One more requirement I am having like,
I am having list of function pointers which I wanted to assigne mock functions generated but gmock, is it possible? Currently I am getting compilation error. not sure if I am trying it in a correct way. e.g.
Init_func()
{
.......
MOCK_METHOD2(func,int(int a, char c, float f));
int (*foo)(int, char, float);
foo = func;
........
}
Please let me know the correct way if it is not a correct way.