From fbcf0800f17e1ce00cd84c948bf1036b84e1e580 Mon Sep 17 00:00:00 2001 From: George Wright Date: Mon, 15 Mar 2021 16:13:02 -0700 Subject: [PATCH] Implement AXPlatformNodeBase::GetInstanceCountForTesting (flutter/engine#24999) --- .../accessibility/ax/platform/ax_platform_node_base.cc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/engine/src/flutter/third_party/accessibility/ax/platform/ax_platform_node_base.cc b/engine/src/flutter/third_party/accessibility/ax/platform/ax_platform_node_base.cc index 43a82028dd..329ed3e998 100644 --- a/engine/src/flutter/third_party/accessibility/ax/platform/ax_platform_node_base.cc +++ b/engine/src/flutter/third_party/accessibility/ax/platform/ax_platform_node_base.cc @@ -71,6 +71,11 @@ AXPlatformNode* AXPlatformNodeBase::GetFromUniqueId(int32_t unique_id) { return nullptr; } +// static +size_t AXPlatformNodeBase::GetInstanceCountForTesting() { + return g_unique_id_map.size(); +} + AXPlatformNodeBase::AXPlatformNodeBase() = default; AXPlatformNodeBase::~AXPlatformNodeBase() = default;