forked from LadybirdBrowser/ladybird
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
LibTest: Define test expectation macros without copying the input values
Currently, the following test case will actually copy both `a` and `b` when the test macro is expanded: ByteBuffer a = { some large buffer }; ByteBuffer b = { some other buffer }; EXPECT_EQ(a, b); This patch redefines the expectation macros to avoid copying.
- Loading branch information
1 parent
d57d14f
commit f7fcde7
Showing
1 changed file
with
127 additions
and
85 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