BlinkMemoryMgt: Annotate Blink's platform/testing with the macros of Allocator
As a step to annotate the macros of Allocator for the Onion Soup, this CL annotates some classes of //third_party/blink/renderer/platform/testing with the macros of Allocator. After some analyzes, it was concluded that for the case of HistogramTester, LayerTreeHostEmbedder, ScopedMainThreadOverrider, ScopedSchedulerOverrider classes, they make sense to use USING_FAST_MALLOC because they have been used as a member variable with new() or smart pointers. In FuzzedDataProvider classes, it makes sense to use DISALLOW_NEW because it's used as member variable with a reference type. Lastly, the rest of classes this CL annotates make sense to use STACK_ALLOCATED. Bug: 919389 Change-Id: I1599e8879f39952d9699218a906ec8e7e193b5fa Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1506675Reviewed-by:Kentaro Hara <haraken@chromium.org> Commit-Queue: Gyuyoung Kim <gyuyoung@igalia.com> Cr-Commit-Position: refs/heads/master@{#638463}
Showing
Please register or sign in to comment