// Copyright 2022 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef UI_ACCESSIBILITY_TEST_AX_TREE_UPDATE_H_ #define UI_ACCESSIBILITY_TEST_AX_TREE_UPDATE_H_ #include <set> #include <unordered_map> #include "ui/accessibility/ax_enum_util.h" #include "ui/accessibility/ax_enums.mojom.h" #include "ui/accessibility/ax_tree_update.h" namespace ui { struct AXNodeData; struct AXTreeData; class AXTreeID; // These utility classes, help construct an AXTreeUpdate together with all of // the updated nodes more easily. Only for use in tests for constructing / // updating simple accessibility trees. // Used to construct AXTreeUpdate node. struct TestAXTreeUpdateNode final { … }; // Used to construct an accessible tree from a hierarchical list of nodes // {<node_properties>, {<node_children>}}. For example, // {Role::kRootWebArea, {"text"}} will create the following tree: // kRootWebArea // ++kStaticText "text" class TestAXTreeUpdate final : public AXTreeUpdate { … }; } // namespace ui #endif // UI_ACCESSIBILITY_TEST_AX_TREE_UPDATE_H_