#include "ui/accessibility/ax_range.h"
#include <memory>
#include <string>
#include <vector>
#include "base/memory/raw_ptr.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "ui/accessibility/ax_enums.mojom.h"
#include "ui/accessibility/ax_node.h"
#include "ui/accessibility/ax_node_data.h"
#include "ui/accessibility/ax_node_position.h"
#include "ui/accessibility/ax_tree.h"
#include "ui/accessibility/ax_tree_id.h"
#include "ui/accessibility/ax_tree_update.h"
#include "ui/accessibility/test_ax_node_helper.h"
#include "ui/accessibility/test_ax_tree_update.h"
#include "ui/accessibility/test_single_ax_tree_manager.h"
namespace ui {
TestPositionInstance;
TestPositionRange;
namespace {
constexpr AXNodeID ROOT_ID = …;
constexpr AXNodeID DIV1_ID = …;
constexpr AXNodeID BUTTON_ID = …;
constexpr AXNodeID DIV2_ID = …;
constexpr AXNodeID CHECK_BOX1_ID = …;
constexpr AXNodeID CHECK_BOX2_ID = …;
constexpr AXNodeID TEXT_FIELD_ID = …;
constexpr AXNodeID STATIC_TEXT1_ID = …;
constexpr AXNodeID INLINE_BOX1_ID = …;
constexpr AXNodeID LINE_BREAK1_ID = …;
constexpr AXNodeID INLINE_BOX_LINE_BREAK1_ID = …;
constexpr AXNodeID STATIC_TEXT2_ID = …;
constexpr AXNodeID INLINE_BOX2_ID = …;
constexpr AXNodeID LINE_BREAK2_ID = …;
constexpr AXNodeID INLINE_BOX_LINE_BREAK2_ID = …;
constexpr AXNodeID PARAGRAPH_ID = …;
constexpr AXNodeID STATIC_TEXT3_ID = …;
constexpr AXNodeID INLINE_BOX3_ID = …;
constexpr AXNodeID EMPTY_PARAGRAPH_ID = …;
class TestAXRangeScreenRectDelegate : public AXRangeRectDelegate { … };
class AXRangeTest : public ::testing::Test, public TestSingleAXTreeManager { … };
AXRangeTest::AXRangeTest()
: … { … }
void AXRangeTest::SetUp() { … }
}
TEST_F(AXRangeTest, RangeOfContents) { … }
TEST_F(AXRangeTest, EqualityOperators) { … }
TEST_F(AXRangeTest, AsForwardRange) { … }
TEST_F(AXRangeTest, IsCollapsed) { … }
TEST_F(AXRangeTest, BeginAndEndIterators) { … }
TEST_F(AXRangeTest, LeafTextRangeIteration) { … }
TEST_F(AXRangeTest, GetTextWithContainersInsideListItems) { … }
TEST_F(AXRangeTest, GetTextWithWholeObjects) { … }
TEST_F(AXRangeTest, GetTextWithTextOffsets) { … }
TEST_F(AXRangeTest, GetTextWithEmptyRanges) { … }
TEST_F(AXRangeTest, GetTextAddingNewlineBetweenParagraphs) { … }
TEST_F(AXRangeTest, GetTextWithMaxCount) { … }
TEST_F(AXRangeTest, GetTextWithList) { … }
TEST_F(AXRangeTest, GetRects) { … }
TEST_F(AXRangeTest, GetRectsOffscreen) { … }
}