#include "chrome/browser/accessibility/ax_main_node_annotator_controller.h"
#include "base/test/scoped_feature_list.h"
#include "base/test/test_future.h"
#include "build/build_config.h"
#include "build/chromeos_buildflags.h"
#include "chrome/browser/accessibility/accessibility_state_utils.h"
#include "chrome/browser/accessibility/ax_main_node_annotator_controller_factory.h"
#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/screen_ai/screen_ai_install_state.h"
#include "chrome/browser/screen_ai/screen_ai_service_router.h"
#include "chrome/browser/screen_ai/screen_ai_service_router_factory.h"
#include "chrome/browser/ui/browser.h"
#include "chrome/browser/ui/browser_commands.h"
#include "chrome/browser/ui/tabs/tab_strip_model.h"
#include "chrome/common/pref_names.h"
#include "chrome/test/base/in_process_browser_test.h"
#include "chrome/test/base/ui_test_utils.h"
#include "components/prefs/pref_service.h"
#include "content/public/browser/browser_accessibility_state.h"
#include "content/public/test/accessibility_notification_waiter.h"
#include "content/public/test/browser_test.h"
#include "net/dns/mock_host_resolver.h"
#include "services/screen_ai/buildflags/buildflags.h"
#include "services/screen_ai/public/cpp/utilities.h"
#include "ui/accessibility/accessibility_features.h"
#include "ui/accessibility/ax_features.mojom-features.h"
#if BUILDFLAG(IS_CHROMEOS_ASH)
#include "chrome/browser/ash/accessibility/accessibility_manager.h"
#include "chrome/browser/ash/accessibility/speech_monitor.h"
#include "extensions/browser/browsertest_util.h"
#include "extensions/common/constants.h"
#else
#include <optional>
#include "content/public/test/scoped_accessibility_mode_override.h"
#endif
class AXMainNodeAnnotatorControllerBrowserTest : public InProcessBrowserTest { … };
IN_PROC_BROWSER_TEST_F(AXMainNodeAnnotatorControllerBrowserTest,
NewWebContents) { … }
IN_PROC_BROWSER_TEST_F(AXMainNodeAnnotatorControllerBrowserTest,
ExistingWebContents) { … }
IN_PROC_BROWSER_TEST_F(AXMainNodeAnnotatorControllerBrowserTest,
NotEnabledWithoutScreenReader) { … }
IN_PROC_BROWSER_TEST_F(AXMainNodeAnnotatorControllerBrowserTest,
PRE_EnabledByPreference) { … }
IN_PROC_BROWSER_TEST_F(AXMainNodeAnnotatorControllerBrowserTest,
EnabledByPreference) { … }