Stop using ::testing::internal functions and objects.

Just re-implement them in yiqi::util