I am trying to mock function pointers from an external library for unit-testing for now with FFF (Fake Function Framework) but other suggestions are also welcome.