Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(241)

Unified Diff: ui/accessibility/ax_tree.h

Issue 967583002: Improve AXTree unit tests. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Update automation_apitest.cc Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/accessibility/ax_generated_tree_unittest.cc ('k') | ui/accessibility/tree_generator.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/accessibility/ax_tree.h
diff --git a/ui/accessibility/ax_tree.h b/ui/accessibility/ax_tree.h
index 3027125e36e594c4f4f8636b1512b45db4c02604..5f7230796c96c53b8c8cf5981ff4c07dc674bc36 100644
--- a/ui/accessibility/ax_tree.h
+++ b/ui/accessibility/ax_tree.h
@@ -108,6 +108,8 @@ class AX_EXPORT AXTree {
// for testing and debugging.
const std::string& error() const { return error_; }
+ int size() { return static_cast<int>(id_map_.size()); }
+
private:
AXNode* CreateNode(AXNode* parent, int32 id, int32 index_in_parent);
« no previous file with comments | « ui/accessibility/ax_generated_tree_unittest.cc ('k') | ui/accessibility/tree_generator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698