Skip to content

Commit

Permalink
Fix test component creation
Browse files Browse the repository at this point in the history
  • Loading branch information
thomas-bc committed Feb 4, 2025
1 parent 78e1aad commit 5a5ba8a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
4 changes: 1 addition & 3 deletions Svc/FrameAccumulator/test/ut/FrameAccumulatorTester.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,11 @@ namespace Svc {
FrameAccumulatorTester ::FrameAccumulatorTester()
: FrameAccumulatorGTestBase("FrameAccumulatorTester", FrameAccumulatorTester::MAX_HISTORY_SIZE),
component("FrameAccumulator") {
component.configure(this->mockDetector, 1, this->mallocator, 2048);
this->initComponents();
this->connectPorts();
component.configure(this->mockDetector, 1, this->mallocator, 2048);
}

FrameAccumulatorTester ::~FrameAccumulatorTester() {}

// ----------------------------------------------------------------------
// Tests
// ----------------------------------------------------------------------
Expand Down
4 changes: 2 additions & 2 deletions Svc/FrameAccumulator/test/ut/FrameAccumulatorTester.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ class FrameAccumulatorTester : public FrameAccumulatorGTestBase {
FrameAccumulatorTester();

//! Destroy object FrameAccumulatorTester
~FrameAccumulatorTester();
~FrameAccumulatorTester() = default;

public:
// ----------------------------------------------------------------------
Expand Down Expand Up @@ -92,7 +92,7 @@ class FrameAccumulatorTester : public FrameAccumulatorGTestBase {
// ----------------------------------------------------------------------

//! The component under test
FrameAccumulator component;
Svc::FrameAccumulator component;

//! MockDetector is used to control the behavior of the component under test
//! by controlling what the FrameDetector will report without needing to craft
Expand Down

0 comments on commit 5a5ba8a

Please sign in to comment.