chromium/content/renderer/accessibility/render_accessibility_impl_browsertest.cc

// Copyright 2012 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "content/renderer/accessibility/render_accessibility_impl.h"

#include <memory>
#include <string>
#include <utility>
#include <vector>

#include "base/containers/adapters.h"
#include "base/test/metrics/histogram_tester.h"
#include "base/test/scoped_feature_list.h"
#include "content/public/renderer/plugin_ax_tree_action_target_adapter.h"
#include "content/renderer/accessibility/ax_action_target_factory.h"
#include "content/renderer/accessibility/render_accessibility_impl_test.h"
#include "content/renderer/render_frame_impl.h"
#include "services/metrics/public/cpp/mojo_ukm_recorder.h"
#include "services/metrics/public/mojom/ukm_interface.mojom.h"
#include "third_party/blink/public/web/web_testing_support.h"
#include "third_party/blink/public/web/web_view.h"
#include "ui/accessibility/ax_action_target.h"
#include "ui/accessibility/null_ax_action_target.h"
#include "ui/native_theme/native_theme_features.h"

namespace content {

WebAXObject;
WebDocument;

TEST_F(RenderAccessibilityImplTest, SendFullAccessibilityTreeOnReload) {}

TEST_F(RenderAccessibilityImplTest, HideAccessibilityObject) {}

TEST_F(RenderAccessibilityImplTest, ShowAccessibilityObject) {}

// Tests if the bounds of the fixed positioned node is updated after scrolling.
TEST_F(RenderAccessibilityImplTest, TestBoundsForFixedNodeAfterScroll) {}

// Tests if the bounds are updated when it has multiple fixed nodes.
TEST_F(RenderAccessibilityImplTest, TestBoundsForMultipleFixedNodeAfterScroll) {}

TEST_F(RenderAccessibilityImplTest, TestFocusConsistency) {}

// Web popups don't exist on Android, so this test doesn't have to be run on
// this platform.
#if !BUILDFLAG(IS_ANDROID)
TEST_F(RenderAccessibilityImplTest, TestHitTestPopupDoesNotCrash) {}
#endif  // #if !BUILDFLAG(IS_ANDROID)

TEST_F(RenderAccessibilityImplTest, TestExpandCollapseTreeItem) {}

class MockPluginAccessibilityTreeSource
    : public ui::
          AXTreeSource<const ui::AXNode*, ui::AXTreeData*, ui::AXNodeData>,
      public content::PluginAXTreeActionTargetAdapter {};

TEST_F(RenderAccessibilityImplTest, TestAXActionTargetFromNodeId) {}

TEST_F(RenderAccessibilityImplTest, SendPendingAccessibilityEventsPostLoad) {}

class BlinkAXActionTargetTest : public RenderAccessibilityImplTest {};

TEST_F(BlinkAXActionTargetTest, TestSetRangeValue) {}

TEST_F(BlinkAXActionTargetTest, TestMethods) {}

// URL-keyed metrics recorder implementation that just counts the number
// of times it's been called.
class MockUkmRecorder : public ukm::MojoUkmRecorder {};

// Tests for URL-keyed metrics.
class RenderAccessibilityImplUKMTest : public RenderAccessibilityImplTest {};

TEST_F(RenderAccessibilityImplUKMTest, TestFireUKMs) {}

}  // namespace content