file.h
int func(int);
file.cpp
static int call();
static void print(int x);
int func(int) {
int val = call();
print(val);
}
Here static functions are declared and defined in the same file file.cpp. I have not included definition of static functions here. Now using GMock I need to mock or test all the functions defined in .h and .cpp.