Fix CO_TEST_F to use updated googletest API
Summary: The new version of googletest has a different internal API for registering test suites. This diff updates `CO_TEST_` to match the new version of googletest. I created this diff by copying the new version of `GTEST_TEST_` and adding the coroutine `co_TestBody`, just like in the old version of `CO_TEST_`. ~~There is a problem that I'd like reviewer's feedback on: how do we cleanly make the switch over to the new version of `CO_TEST_`? This change is tied to a specific version of googletest.~~ ~~I have 2 ideas so far:~~ ~~(Plan 1) Land this diff stacked on top of D25585021, so that we don't have to manage two versions at once.~~ Not possible (Plan 2) Have two versions of `CO_TEST_` at the same time, but select which one to use based on a preprocessor macro defined in gtest. Reviewed By: yfeldblum Differential Revision: D26365504 fbshipit-source-id: 196c2277c7942163951f5781b334d0bff5c34de8
Showing
Please register or sign in to comment