void set_tools_changed_callback(std::optional<base::RepeatingClosure> cb) {Function names should use `CamelCase()` starting with an uppercase letter. As this is a setter, it should be named `SetToolsChangedCallback`. (Blink Style Guide: Naming - Use 'CamelCase' for all function names; Precede setters with the word “Set”)
To keep this interaction as brief and non-intrusive as possible, please consider responding with one of following options:
**Done** | **Won't fix**: reason | **b/<bug_id>** | **Invalid:** reason
This comment was generated by [Experimental Blink C++ Code Review Agent](http://go/blink-c++-code-review-agent).AI reviews can sometimes be inaccurate; We appreciate your 🙏 feedback 🙏 to help us improve.[File a bug](http://go/blink-c++-code-review-agent-feedback) | [Provide feedback on chat](https://chat.google.com/room/AAQA0zhQHe0?cls=4) | [Opt-out](https://ganpati2.corp.google.com/group/peep-genai-blink-agent-optout.prod)_
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Auto-Submit | +1 |
| Commit-Queue | +1 |
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Code-Review | +1 |
Add hooks that can be used to test WebMCP tools. The APIs list andmaybe mention that it's for live/extension testing since a reader would normally expect it's for e.g. web/WPT tests in which case the question would be why not user something like internals?
void set_tools_changed_callback(std::optional<base::RepeatingClosure> cb) {Function names should use `CamelCase()` starting with an uppercase letter. As this is a setter, it should be named `SetToolsChangedCallback`. (Blink Style Guide: Naming - Use 'CamelCase' for all function names; Precede setters with the word “Set”)
To keep this interaction as brief and non-intrusive as possible, please consider responding with one of following options:
**Done** | **Won't fix**: reason | **b/<bug_id>** | **Invalid:** reasonThis comment was generated by [Experimental Blink C++ Code Review Agent](http://go/blink-c++-code-review-agent).AI reviews can sometimes be inaccurate; We appreciate your 🙏 feedback 🙏 to help us improve.[File a bug](http://go/blink-c++-code-review-agent-feedback) | [Provide feedback on chat](https://chat.google.com/room/AAQA0zhQHe0?cls=4) | [Opt-out](https://ganpati2.corp.google.com/group/peep-genai-blink-agent-optout.prod)_
+1 I think this is a difference between Blink and Chromium
testRunner.dumpAsText();Eh, maybe not worth rewriting but any reason not to use testharness.js? I thought test runner is effectively deprecated?
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Auto-Submit | +1 |
| Commit-Queue | +2 |
Add hooks that can be used to test WebMCP tools. The APIs list andmaybe mention that it's for live/extension testing since a reader would normally expect it's for e.g. web/WPT tests in which case the question would be why not user something like internals?
Done
void set_tools_changed_callback(std::optional<base::RepeatingClosure> cb) {David BokanFunction names should use `CamelCase()` starting with an uppercase letter. As this is a setter, it should be named `SetToolsChangedCallback`. (Blink Style Guide: Naming - Use 'CamelCase' for all function names; Precede setters with the word “Set”)
To keep this interaction as brief and non-intrusive as possible, please consider responding with one of following options:
**Done** | **Won't fix**: reason | **b/<bug_id>** | **Invalid:** reasonThis comment was generated by [Experimental Blink C++ Code Review Agent](http://go/blink-c++-code-review-agent).AI reviews can sometimes be inaccurate; We appreciate your 🙏 feedback 🙏 to help us improve.[File a bug](http://go/blink-c++-code-review-agent-feedback) | [Provide feedback on chat](https://chat.google.com/room/AAQA0zhQHe0?cls=4) | [Opt-out](https://ganpati2.corp.google.com/group/peep-genai-blink-agent-optout.prod)_
+1 I think this is a difference between Blink and Chromium
Done
Eh, maybe not worth rewriting but any reason not to use testharness.js? I thought test runner is effectively deprecated?
I copied from an existing test. :)
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
blink: Add APIs to test WebMCP
Add hooks that can be used to test WebMCP tools. The APIs list and
execute registered tools and also register a callback to invoke when the
set of tools changes.
This allows testing tools from an extension by injecting script.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |