Skip to content
Commit b65ee036 authored by Austin Sullivan's avatar Austin Sullivan Committed by Chromium LUCI CQ
Browse files

Clipboard: Add test helper for portable type checks

For portable types, reading from the clipboard involves both a check of
IsFormatAvailable() and ReadAvailableTypes(). This CL adds a helper
which does both of these checks, simplifying the code and reducing the
chances that new code will accidentally only check one of these
methods (see: https://crbug.com/1215137).

For non-portable types, comments have been left to explain why this
helper is not used.

Bug: 1241712, 1215137
Change-Id: I25f03a2d4c2559e688fbf26a06893cde4725d673
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3111332


Reviewed-by: default avatarMarijn Kruisselbrink <mek@chromium.org>
Reviewed-by: default avatarDarwin Huang <huangdarwin@chromium.org>
Commit-Queue: Austin Sullivan <asully@chromium.org>
Cr-Commit-Position: refs/heads/main@{#914517}
parent 97d4fc71
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment