-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update TestSystemPacketBuffer (#4305)
* Update TestSystemPacketBuffer #### Problem Uses of `PacketBuffer` have largely been replaced by `PacketBufferHandle`. The unit test had not kept up. #### Summary of Changes - Added tests for PacketBufferHandle specifically. - Added many checks of reference counts to verify the ownership model. - Some more refactoring into `PacketBufferTest`, friend class of `PacketBuffer` and `PacketBufferHandle`, to use private fields and track buffer allocations. part of #2707 - Figure out a way to express PacketBuffer ownership in the type system * Release buffers more often so that tests work with small pools.
- Loading branch information
1 parent
178b244
commit 530f741
Showing
3 changed files
with
1,042 additions
and
685 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.