:orphan: .. index:: pair: page; GTest TAPI usage scenarios .. _doxid-group__tapi__gtest_tapi-gtest-scenarios: GTest TAPI usage scenarios ========================== Wrap GTest ~~~~~~~~~~ .. ref-code-block:: cpp int main(int argc, char *argv[]) { :ref:`tapi_gtest ` gtest; :ref:`tapi_job_factory_t ` *factory; :ref:`TEST_START `; :ref:`TEST_GET_GTEST_PARAM `(gtest); :ref:`CHECK_RC `(:ref:`tapi_job_factory_rpc_create `(rpcs, &factory)); :ref:`CHECK_RC `(:ref:`tapi_gtest_init `(>est, factory)); :ref:`CHECK_RC `(:ref:`tapi_gtest_start `(>est)); :ref:`CHECK_RC `(:ref:`tapi_gtest_wait `(>est, :ref:`TE_SEC2MS `(10))); :ref:`TEST_SUCCESS `; cleanup: :ref:`CLEANUP_CHECK_RC `(:ref:`tapi_gtest_fini `(>est)); :ref:`tapi_job_factory_destroy `(factory); :ref:`TEST_END `; }