1
0
mirror of https://github.com/gnss-sdr/gnss-sdr synced 2024-12-14 20:20:35 +00:00
gnss-sdr/tests/unit-tests/signal-processing-blocks/adapter/pass_through_test.cc

32 lines
1.1 KiB
C++
Raw Normal View History

/*!
* \file pass_through_test.cc
* \brief This file implements tests for the Pass_Through block
* \author Carlos Aviles, 2010. carlos.avilesr(at)googlemail.com
* Carles Fernandez-Prades, 2012. cfernandez(at)cttc.es
*
*
2020-07-28 14:57:15 +00:00
* -----------------------------------------------------------------------------
*
* GNSS-SDR is a Global Navigation Satellite System software-defined receiver.
* This file is part of GNSS-SDR.
*
* Copyright (C) 2010-2020 (see AUTHORS file for a list of contributors)
* SPDX-License-Identifier: GPL-3.0-or-later
*
2020-07-28 14:57:15 +00:00
* -----------------------------------------------------------------------------
*/
#include "in_memory_configuration.h"
#include "pass_through.h"
2014-12-21 21:46:57 +00:00
#include <gtest/gtest.h>
TEST(PassThroughTest, Instantiate)
{
2014-12-21 21:46:57 +00:00
std::shared_ptr<ConfigurationInterface> config = std::make_shared<InMemoryConfiguration>();
config->set_property("Test.item_type", "gr_complex");
2014-12-21 21:46:57 +00:00
std::shared_ptr<Pass_Through> signal_conditioner = std::make_shared<Pass_Through>(config.get(), "Test", 1, 1);
EXPECT_STREQ("gr_complex", signal_conditioner->item_type().c_str());
}