/******************************************************************************** * Copyright (C) 2019 GSI Helmholtzzentrum fuer Schwerionenforschung GmbH * * * * This software is distributed under the terms of the * * GNU Lesser General Public Licence (LGPL) version 3, * * copied verbatim in the file "LICENSE" * ********************************************************************************/ #include "TopologyFixture.h" #include #include #include namespace { using Topology = fair::mq::test::TopologyFixture; TEST_F(Topology, Construction) { fair::mq::sdk::Topology topo(mDDSTopo, mDDSSession); } TEST_F(Topology, ChangeState) { using fair::mq::sdk::Topology; using fair::mq::sdk::TopologyTransition; Topology topo(mDDSTopo, mDDSSession); fair::mq::tools::Semaphore blocker; topo.ChangeState(TopologyTransition::Stop, [&](Topology::ChangeStateResult result) { LOG(info) << result; blocker.Signal(); }); blocker.Wait(); } } // namespace