web-platform-tests / wpt

Test suites for Web platform specs — including WHATWG, W3C, and others
https://web-platform-tests.org/
Other
4.79k stars 2.99k forks source link

compute pressure: Add WebPressureManager to Blink #46934

Closed chromium-wpt-export-bot closed 2 days ago

chromium-wpt-export-bot commented 4 days ago

For now it exposes the same method as the PressureManager Mojo interface in //services, but they will ultimately diverge when the latter starts supporting virtual pressure sources.

Make Blink's FakePressureService inherit from WebPressureManager, not //service's PressureManager. SetBinderForTesting() can only intercept requests from Blink, which means it should be intercepting attempts to connect to the WebPressureManager interface instead.

Bug: 347031400 Change-Id: I19da6513c2e5328780ea0f7ec9bc66e4ce9d9e26 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5660418 Reviewed-by: Arnaud Mandy \arnaud.mandy@intel.com Reviewed-by: Hiroki Nakagawa \nhiroki@chromium.org Reviewed-by: danakj \danakj@chromium.org Reviewed-by: Reilly Grant \reillyg@chromium.org Commit-Queue: Raphael Kubo Da Costa \raphael.kubo.da.costa@intel.com Cr-Commit-Position: refs/heads/main@{#1321579}