mirror of
https://github.com/gnss-sdr/gnss-sdr
synced 2024-12-14 12:10:34 +00:00
fix cast error
This commit is contained in:
parent
ece5effa2d
commit
3b728d9c26
@ -352,7 +352,7 @@ TEST(GNSSBlockFactoryTest, InstantiateWrongPvt)
|
|||||||
std::shared_ptr<InMemoryConfiguration> configuration = std::make_shared<InMemoryConfiguration>();
|
std::shared_ptr<InMemoryConfiguration> configuration = std::make_shared<InMemoryConfiguration>();
|
||||||
configuration->set_property("PVT.implementation", "Pepito");
|
configuration->set_property("PVT.implementation", "Pepito");
|
||||||
auto factory = std::make_unique<GNSSBlockFactory>();
|
auto factory = std::make_unique<GNSSBlockFactory>();
|
||||||
auto pvt_ = factory->GetPVT(configuration.get());
|
std::shared_ptr<GNSSBlockInterface> pvt_ = factory->GetPVT(configuration.get());
|
||||||
std::shared_ptr<PvtInterface> pvt = std::dynamic_pointer_cast<PvtInterface>(pvt_);
|
auto pvt = std::dynamic_pointer_cast<PvtInterface>(pvt_);
|
||||||
EXPECT_EQ(nullptr, pvt);
|
EXPECT_EQ(nullptr, pvt);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user