C++ api update and mock QtTest