2012-01-23 00:52:05 +00:00
|
|
|
/*!
|
|
|
|
* \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
|
|
|
* -----------------------------------------------------------------------------
|
2012-01-23 00:52:05 +00:00
|
|
|
*
|
2020-12-30 12:35:06 +00:00
|
|
|
* GNSS-SDR is a Global Navigation Satellite System software-defined receiver.
|
2012-01-23 00:52:05 +00:00
|
|
|
* This file is part of GNSS-SDR.
|
|
|
|
*
|
2020-12-30 12:35:06 +00:00
|
|
|
* Copyright (C) 2010-2020 (see AUTHORS file for a list of contributors)
|
2020-02-08 00:20:02 +00:00
|
|
|
* SPDX-License-Identifier: GPL-3.0-or-later
|
2012-01-23 00:52:05 +00:00
|
|
|
*
|
2020-07-28 14:57:15 +00:00
|
|
|
* -----------------------------------------------------------------------------
|
2011-10-01 18:45:20 +00:00
|
|
|
*/
|
|
|
|
|
2012-01-23 00:52:05 +00:00
|
|
|
|
2018-12-09 21:00:09 +00:00
|
|
|
#include "in_memory_configuration.h"
|
2011-10-01 18:45:20 +00:00
|
|
|
#include "pass_through.h"
|
2014-12-21 21:46:57 +00:00
|
|
|
#include <gtest/gtest.h>
|
2011-10-01 18:45:20 +00:00
|
|
|
|
|
|
|
|
2017-06-25 20:53:11 +00:00
|
|
|
TEST(PassThroughTest, Instantiate)
|
2012-01-23 00:52:05 +00:00
|
|
|
{
|
2014-12-21 21:46:57 +00:00
|
|
|
std::shared_ptr<ConfigurationInterface> config = std::make_shared<InMemoryConfiguration>();
|
2012-01-23 00:52:05 +00:00
|
|
|
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);
|
2012-01-23 00:52:05 +00:00
|
|
|
EXPECT_STREQ("gr_complex", signal_conditioner->item_type().c_str());
|
|
|
|
}
|