Autodetecting gtest file and adding syntax for gmock