Skip to content
Snippets Groups Projects

Feature/capture process

Merged Joan Solà Ortega requested to merge feature/capture_process into devel
3 files
+ 21
1
Compare changes
  • Side-by-side
  • Inline
Files
3
@@ -103,6 +103,15 @@ TEST(CaptureBase, addFeatureList)
@@ -103,6 +103,15 @@ TEST(CaptureBase, addFeatureList)
ASSERT_EQ(C->getFeatureList().back(), f_last);
ASSERT_EQ(C->getFeatureList().back(), f_last);
}
}
 
TEST(CaptureBase, process)
 
{
 
SensorBasePtr S(std::make_shared<SensorBase>("DUMMY", nullptr, nullptr, nullptr, 2));
 
CaptureBasePtr C(std::make_shared<CaptureBase>("DUMMY", 1.5, nullptr));
 
ASSERT_DEATH({C->process();},""); // No sensor in the capture should fail
 
C->setSensorPtr(S);
 
ASSERT_TRUE(C->process()); // This should not fail (although it does nothing)
 
}
 
int main(int argc, char **argv)
int main(int argc, char **argv)
{
{
testing::InitGoogleTest(&argc, argv);
testing::InitGoogleTest(&argc, argv);
Loading