Skip to content

Commit

Permalink
Updated another MockArena.
Browse files Browse the repository at this point in the history
  • Loading branch information
nolan-veed committed Dec 30, 2023
1 parent 2533ecd commit b2c9872
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/tests/roc_rtcp/test_communicator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -251,6 +251,14 @@ class MockArena : public core::IArena, public core::NonCopyable<> {
ha_.deallocate(ptr);
}

virtual size_t compute_allocated_size(size_t size) const {
return ha_.compute_allocated_size(size);
}

virtual size_t allocated_size(void* ptr) const {
return ha_.allocated_size(ptr);
}

void set_fail(bool fail) {
fail_ = fail;
}
Expand Down

0 comments on commit b2c9872

Please sign in to comment.