mirror of
https://github.com/FairRootGroup/FairMQ.git
synced 2025-10-12 16:21:13 +00:00
47 lines
1.2 KiB
C++
47 lines
1.2 KiB
C++
/********************************************************************************
|
|
* Copyright (C) 2017 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 "TestVersion.h"
|
|
|
|
#include <fairmq/Tools.h>
|
|
|
|
#include <gtest/gtest.h>
|
|
|
|
#include <sstream> // std::stringstream
|
|
#include <thread>
|
|
|
|
namespace
|
|
{
|
|
|
|
using namespace std;
|
|
using namespace fair::mq::test;
|
|
|
|
class DeviceVersion : public ::testing::Test {
|
|
public:
|
|
DeviceVersion()
|
|
{}
|
|
|
|
fair::mq::tools::Version TestDeviceVersion()
|
|
{
|
|
fair::mq::test::TestVersion versionDevice({1, 2, 3});
|
|
versionDevice.ChangeState("END");
|
|
|
|
return versionDevice.GetVersion();
|
|
}
|
|
};
|
|
|
|
TEST_F(DeviceVersion, getter)
|
|
{
|
|
struct fair::mq::tools::Version v{1, 2, 3};
|
|
fair::mq::tools::Version version = TestDeviceVersion();
|
|
|
|
EXPECT_EQ(v, version);
|
|
}
|
|
|
|
} // namespace
|