Skip to content

Commit

Permalink
Use the factory counter when allocating objects
Browse files Browse the repository at this point in the history
  • Loading branch information
diegoferigo committed Jan 29, 2019
1 parent f90ae60 commit 57c50ef
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/Factory/FactoryUnitTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ TEST_CASE("Load and use plugin", "[Factory][Plugin][Parameter]")

// Allocate a mock::MockBlock object and get its core::Block pointer
blockfactory::core::Block* block = factory->create();
factory->addRef();
REQUIRE(block != nullptr);

// Get the block parameters
Expand All @@ -92,4 +93,5 @@ TEST_CASE("Load and use plugin", "[Factory][Plugin][Parameter]")

// Deallocate the block
factory->destroy(block);
factory->removeRef();
}

0 comments on commit 57c50ef

Please sign in to comment.