chrome/browser/accessibility/accessibility_win_browsertest.cc
// This test verifies that the web content's accessibility tree is a
// descendant of the main browser window's accessibility tree, so that
// tools like AccExplorer32 or AccProbe can be used to examine Chrome's
// accessibility support.
//
// If you made a change and this test now fails, check that the NativeViewHost
// that wraps the tab contents returns the IAccessible implementation
// provided by RenderWidgetHostViewWin in GetNativeViewAccessible().
This test verifies that the web content's accessibility tree is a
descendant of the main browser window's accessibility tree, so that
tools like AccExplorer32 or AccProbe can be used to examine Chrome's
accessibility support.

If you made a change and this test now fails, check that the NativeViewHost
that wraps the tab contents returns the IAccessible implementation
provided by RenderWidgetHostViewWin in GetNativeViewAccessible().
This test verifies that the web content ' s accessibility tree is a descendant of the main browser window ' s accessibility tree so that tools like AccExplorer32 or AccProbe can be used to examine Chrome ' s accessibility support . If you made a change and this test now fails check that the NativeViewHost that wraps the tab contents returns the IAccessible implementation provided by RenderWidgetHostViewWin in GetNativeViewAccessible () .
IN_PROC_BROWSER_TEST_F(AccessibilityWinBrowserTest,
                       ContainsRendererAccessibilityTree) {
  LoadInitialAccessibilityTreeFromHtml(
      "<html><head><title>MyDocument</title></head>"
      "<body>Content</body></html>");
  HWND browser_hwnd = browser()->window()->GetNativeWindow();
  base::win::ScopedComPtr<IAccessible> browser_accessible;
  HRESULT hr = AccessibleObjectFromWindow(
      browser_hwnd,
      OBJID_WINDOW,
      IID_IAccessible,
      reinterpret_cast<void**>(browser_accessible.Receive()));
  ASSERT_EQ(S_OK, hr);
  bool found = false;
  RecursiveFindNodeInAccessibilityTree(
      browser_accessible.get(), ROLE_SYSTEM_DOCUMENT, L"MyDocument", 0, &found);
  ASSERT_EQ(found, true);
}
IN_PROC_BROWSER_TEST_F ( AccessibilityWinBrowserTest , ContainsRendererAccessibilityTree ) { LoadInitialAccessibilityTreeFromHtml ( " " " " ) ; HWND browser_hwnd = browser ( ) -> window ( ) -> GetNativeWindow ( ) ; base :: win :: ScopedComPtr < IAccessible > browser_accessible ; HRESULT hr = AccessibleObjectFromWindow ( browser_hwnd , OBJID_WINDOW , IID_IAccessible , reinterpret_cast < void * * > ( browser_accessible . Receive ( ) ) ) ; ASSERT_EQ ( S_OK , hr ) ; bool found = false ; RecursiveFindNodeInAccessibilityTree ( browser_accessible . get ( ) , ROLE_SYSTEM_DOCUMENT , L" " , 0 , & found ) ; ASSERT_EQ ( found , true ) ; }
This test verifies that the web content's accessibility tree is a
descendant of the main browser window's accessibility tree, so that
tools like AccExplorer32 or AccProbe can be used to examine Chrome's
accessibility support.
This test verifies that the web content ' s accessibility tree is a descendant of the main browser window ' s accessibility tree so that tools like AccExplorer32 or AccProbe can be used to examine Chrome ' s accessibility support .
// Get the accessibility object for the browser window.