[SanitizerCommon] Test CombinedAllocator::ForEachChunk() in unit tests.
Previously we weren't testing this function in the unit tests.
Differential D54861
[SanitizerCommon] Test `CombinedAllocator::ForEachChunk()` in unit tests. delcypher on Nov 23 2018, 6:30 AM. Authored by
Details
[SanitizerCommon] Test CombinedAllocator::ForEachChunk() in unit tests. Previously we weren't testing this function in the unit tests.
Diff Detail
Event TimelineComment Actions LGTM, of course (more tests, yay!). The indentation makes this hard to read though. Maybe declare the lambda as a separate variable? Comment Actions The indentation is clang-format's doing. I'm a bit hesitant to put the lambda in a variable because it's only used in one place so putting it inline is the more standard thing to do. Comment Actions @kubamracek I tried assigning the lambda to a local variable. You're right, it is more readable. I've updated this patch with that change. Comment Actions I'm just going to land this. It's a testing only change so it's not going to break anything that actually ships. I can revert it if necessary if there is a problem. |