mirror of
https://github.com/gnss-sdr/gnss-sdr
synced 2024-12-15 04:30:33 +00:00
Fix block invocation
This commit is contained in:
parent
1538bcc7d7
commit
48f66a0060
@ -227,7 +227,7 @@ TEST_F(FirFilterTest, ConnectAndRunGrcomplex)
|
||||
ASSERT_NO_THROW({
|
||||
filter->connect(top_block);
|
||||
|
||||
boost::shared_ptr<FileSignalSource> source(new FileSignalSource(config2.get(), "Test_Source", 1, 1, queue));
|
||||
boost::shared_ptr<FileSignalSource> source(new FileSignalSource(config2.get(), "Test_Source", 0, 1, queue));
|
||||
source->connect(top_block);
|
||||
|
||||
boost::shared_ptr<gr::block> null_sink = gr::blocks::null_sink::make(item_size);
|
||||
@ -268,7 +268,7 @@ TEST_F(FirFilterTest, ConnectAndRunCshorts)
|
||||
ASSERT_NO_THROW({
|
||||
filter->connect(top_block);
|
||||
|
||||
boost::shared_ptr<FileSignalSource> source(new FileSignalSource(config2.get(), "Test_Source", 1, 1, queue));
|
||||
boost::shared_ptr<FileSignalSource> source(new FileSignalSource(config2.get(), "Test_Source", 0, 1, queue));
|
||||
source->connect(top_block);
|
||||
|
||||
interleaved_short_to_complex_short_sptr ishort_to_cshort_ = make_interleaved_short_to_complex_short();
|
||||
@ -312,7 +312,7 @@ TEST_F(FirFilterTest, ConnectAndRunCbytes)
|
||||
ASSERT_NO_THROW({
|
||||
filter->connect(top_block);
|
||||
|
||||
boost::shared_ptr<FileSignalSource> source(new FileSignalSource(config2.get(), "Test_Source", 1, 1, queue));
|
||||
boost::shared_ptr<FileSignalSource> source(new FileSignalSource(config2.get(), "Test_Source", 0, 1, queue));
|
||||
source->connect(top_block);
|
||||
|
||||
interleaved_byte_to_complex_byte_sptr ibyte_to_cbyte_ = make_interleaved_byte_to_complex_byte();
|
||||
@ -356,7 +356,7 @@ TEST_F(FirFilterTest, ConnectAndRunCbyteGrcomplex)
|
||||
ASSERT_NO_THROW({
|
||||
filter->connect(top_block);
|
||||
|
||||
boost::shared_ptr<FileSignalSource> source(new FileSignalSource(config2.get(), "Test_Source", 1, 1, queue));
|
||||
boost::shared_ptr<FileSignalSource> source(new FileSignalSource(config2.get(), "Test_Source", 0, 1, queue));
|
||||
source->connect(top_block);
|
||||
|
||||
interleaved_byte_to_complex_byte_sptr ibyte_to_cbyte_ = make_interleaved_byte_to_complex_byte();
|
||||
|
@ -150,7 +150,7 @@ TEST_F(NotchFilterLiteTest, ConnectAndRunGrcomplex)
|
||||
ASSERT_NO_THROW({
|
||||
filter->connect(top_block);
|
||||
|
||||
boost::shared_ptr<FileSignalSource> source(new FileSignalSource(config2.get(), "Test_Source", 1, 1, queue));
|
||||
boost::shared_ptr<FileSignalSource> source(new FileSignalSource(config2.get(), "Test_Source", 0, 1, queue));
|
||||
source->connect(top_block);
|
||||
|
||||
boost::shared_ptr<gr::block> null_sink = gr::blocks::null_sink::make(item_size);
|
||||
|
@ -150,7 +150,7 @@ TEST_F(NotchFilterTest, ConnectAndRunGrcomplex)
|
||||
ASSERT_NO_THROW({
|
||||
filter->connect(top_block);
|
||||
|
||||
boost::shared_ptr<FileSignalSource> source(new FileSignalSource(config2.get(), "Test_Source", 1, 1, queue));
|
||||
boost::shared_ptr<FileSignalSource> source(new FileSignalSource(config2.get(), "Test_Source", 0, 1, queue));
|
||||
source->connect(top_block);
|
||||
|
||||
boost::shared_ptr<gr::block> null_sink = gr::blocks::null_sink::make(item_size);
|
||||
|
@ -149,7 +149,7 @@ TEST_F(PulseBlankingFilterTest, ConnectAndRunGrcomplex)
|
||||
ASSERT_NO_THROW({
|
||||
filter->connect(top_block);
|
||||
|
||||
boost::shared_ptr<FileSignalSource> source(new FileSignalSource(config2.get(), "Test_Source", 1, 1, queue));
|
||||
boost::shared_ptr<FileSignalSource> source(new FileSignalSource(config2.get(), "Test_Source", 0, 1, queue));
|
||||
source->connect(top_block);
|
||||
|
||||
boost::shared_ptr<gr::block> null_sink = gr::blocks::null_sink::make(item_size);
|
||||
|
@ -50,7 +50,7 @@ TEST(FileSignalSource, Instantiate)
|
||||
config->set_property("Test.item_type", "gr_complex");
|
||||
config->set_property("Test.repeat", "false");
|
||||
|
||||
std::unique_ptr<FileSignalSource> signal_source(new FileSignalSource(config.get(), "Test", 1, 1, queue));
|
||||
std::unique_ptr<FileSignalSource> signal_source(new FileSignalSource(config.get(), "Test", 0, 1, queue));
|
||||
|
||||
EXPECT_STREQ("gr_complex", signal_source->item_type().c_str());
|
||||
EXPECT_TRUE(signal_source->repeat() == false);
|
||||
@ -67,5 +67,5 @@ TEST(FileSignalSource, InstantiateFileNotExists)
|
||||
config->set_property("Test.item_type", "gr_complex");
|
||||
config->set_property("Test.repeat", "false");
|
||||
|
||||
EXPECT_THROW({ auto uptr = std::make_shared<FileSignalSource>(config.get(), "Test", 1, 1, queue); }, std::exception);
|
||||
EXPECT_THROW({ auto uptr = std::make_shared<FileSignalSource>(config.get(), "Test", 0, 1, queue); }, std::exception);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user