Skip to content

Commit

Permalink
Adds bulk allocator to the test.
Browse files Browse the repository at this point in the history
  • Loading branch information
balazsracz committed Nov 14, 2020
1 parent 2ada534 commit 7fc0ef2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/openlcb/AliasAllocator.cxxtest
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
#include "openlcb/AliasAllocator.hxx"
#include "openlcb/AliasCache.hxx"
#include "openlcb/CanDefs.hxx"
#include "openlcb/BulkAliasAllocator.hxx"

namespace openlcb
{
Expand All @@ -13,6 +14,7 @@ protected:
AsyncAliasAllocatorTest()
: b_(nullptr)
, alias_allocator_(TEST_NODE_ID, ifCan_.get())
, bulkAllocator_(create_bulk_alias_allocator(ifCan_.get()))
{
}

Expand Down Expand Up @@ -50,6 +52,7 @@ protected:

Buffer<AliasInfo> *b_;
AliasAllocator alias_allocator_;
std::unique_ptr<BulkAliasAllocatorInterface> bulkAllocator_;
};

TEST_F(AsyncAliasAllocatorTest, SetupTeardown)
Expand Down

0 comments on commit 7fc0ef2

Please sign in to comment.