Set Ready For Review
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Code-Review | +1 |
MockClipboardHostExposesTestOnlyHelpersWithForTestingSuffix) {nit: Do we need an explicit test just for the names. Looks like these are already covered in existing tests.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
MockClipboardHostExposesTestOnlyHelpersWithForTestingSuffix) {nit: Do we need an explicit test just for the names. Looks like these are already covered in existing tests.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Code-Review | +1 |
I think the suffixes are for test-only functions/members in a production source file, and I don't think we need to apply the suffixes to `MockClipboardHost`, which belong to a target with `testonly=true`.
Anyway, this CL is ok.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Commit-Queue | +2 |
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
blink: Add ForTesting suffix to MockClipboardHost test-only members
Per styleguide/c++/c++.md "Tests and Test-only Code", test-only
methods should be suffixed with ForTesting and the backing fields
with _for_testing_. blink::MockClipboardHost mixed
mojo::ClipboardHost overrides (production-shape) with test-only
helpers, counters and hooks that lacked the suffix, including the
ReadTextCallCount / ReadHtmlCallCount /
ReadAvailableFormatsCallCount cluster explicitly called out in the
review of crrev.com/c/7854519.
Rename the 12 public test-only methods and 6 backing fields to the
ForTesting / _for_testing_ form. Update all call sites in
mock_clipboard_host.{h,cc}, clipboard_unittest.cc, and
system_clipboard_test.cc. The Mojo override method names dictated
by mojom::blink::ClipboardHost are kept; only their bodies are
updated to reference the renamed fields.
The pre-existing read_available_formats_hook_for_testing_ field
and SetReadAvailableFormatsHookForTesting method (added by
CL 7854519) are already compliant and are left unchanged. This is
a pure naming/style cleanup; no runtime behavior changes.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |