mirror of
https://github.com/FairRootGroup/FairMQ.git
synced 2025-10-13 16:46:47 +00:00
50 lines
1.5 KiB
C++
50 lines
1.5 KiB
C++
/********************************************************************************
|
|
* 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 "Fixtures.h"
|
|
|
|
#include <DDS/Topology.h>
|
|
#include <DDS/Tools.h>
|
|
|
|
namespace {
|
|
|
|
TEST(DDSEnvironment, Construction)
|
|
{
|
|
fair::mq::test::LoggerConfig cfg;
|
|
|
|
fair::mq::sdk::DDSEnvironment env(CMAKE_CURRENT_BINARY_DIR);
|
|
LOG(debug) << env;
|
|
}
|
|
|
|
TEST(DDSSession, Construction)
|
|
{
|
|
fair::mq::test::LoggerConfig cfg;
|
|
fair::mq::sdk::DDSEnvironment env(CMAKE_CURRENT_BINARY_DIR);
|
|
|
|
fair::mq::sdk::DDSSession session(env);
|
|
session.StopOnDestruction();
|
|
LOG(debug) << session;
|
|
}
|
|
|
|
TEST(DDSSession, Construction2)
|
|
{
|
|
fair::mq::test::LoggerConfig cfg;
|
|
fair::mq::sdk::DDSEnvironment env(CMAKE_CURRENT_BINARY_DIR);
|
|
|
|
auto nativeSession(std::make_shared<dds::tools_api::CSession>());
|
|
nativeSession->create();
|
|
|
|
fair::mq::sdk::DDSSession session(nativeSession, env);
|
|
session.StopOnDestruction();
|
|
LOG(debug) << session;
|
|
|
|
session.RequestCommanderInfo();
|
|
}
|
|
|
|
} // namespace
|