test_custom.cpp 446 B

1234567891011121314151617181920
  1. 
  2. #include "hello_test.h"
  3. TEST_F(HelloTest, customSyncGlobalCommunicator)
  4. {
  5. shared_ptr<Communicator> c = getCommunicator();
  6. transGlobalCommunicator([&](Communicator *comm){
  7. syncCustom(comm);
  8. }, c.get());
  9. }
  10. TEST_F(HelloTest, customASyncGlobalCommunicatorInCoroutine)
  11. {
  12. shared_ptr<Communicator> c = getCommunicator();
  13. transInCoroutineGlobalCommunicator([&](Communicator *comm){
  14. asyncCustom(comm);
  15. }, c.get());
  16. }