
This is a reland of 856342886a
The waterfall reveals that `cpu_instructions` and `cpu_cycles` are
not populated prior to macOS 10.15. This CL updates expectations
accordingly.
Original change's description:
> [battery] Add ResourceCoalitionMacTest.Busy.
>
> This test verifies that CPU instructions, CPU cycles and CPU time
> reported by `GetCoalitionResourceUsage` increase after burning CPU.
> This is a basic expectations for `GetCoalitionResourceUsage` so it
> should be tested from //components/power_metrics/. In an upcoming
> CL, this will allow removing
> //chrome/browser/performance_monitor/resource_coalition_mac_unittest.mm
> without losing tests.
>
> Bug: 1293465
> Change-Id: I7232bd6b67406600b9fc89b7f7f80ad8db47c5f1
> Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3437567
> Reviewed-by: Patrick Monette <pmonette@chromium.org>
> Commit-Queue: Francois Pierre Doray <fdoray@chromium.org>
> Cr-Commit-Position: refs/heads/main@{#967015}
Bug: 1293465
Change-Id: I5c7f1c9e3b95223e582a1d71fac093ea95bd9c03
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3440717
Reviewed-by: Patrick Monette <pmonette@chromium.org>
Commit-Queue: Francois Pierre Doray <fdoray@chromium.org>
Cr-Commit-Position: refs/heads/main@{#967792}