#include "chrome/renderer/accessibility/read_aloud_traversal_utils.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "ui/accessibility/ax_node_position.h"
class ReadAnythingReadAloudTraversalUtilsTest : public testing::Test { … };
ElementsAre;
IsEmpty;
TEST_F(ReadAnythingReadAloudTraversalUtilsTest,
GetNextSentence_ReturnsCorrectIndex) { … }
TEST_F(ReadAnythingReadAloudTraversalUtilsTest,
GetNextSentence_OnlyOneSentence_ReturnsCorrectIndex) { … }
TEST_F(ReadAnythingReadAloudTraversalUtilsTest,
GetNextSentence_NotPDF_DoesNotFilterReturnCharacters) { … }
TEST_F(ReadAnythingReadAloudTraversalUtilsTest,
GetNextSentence_PDF_FiltersReturnCharacters) { … }
TEST_F(ReadAnythingReadAloudTraversalUtilsTest,
GetNextSentence_PDF_DoesNotFilterReturnCharactersAtEndOfSentence) { … }
TEST_F(ReadAnythingReadAloudTraversalUtilsTest,
GetNextWord_ReturnsCorrectIndex) { … }
TEST_F(ReadAnythingReadAloudTraversalUtilsTest,
GetNextWord_OnlyOneWord_ReturnsCorrectIndex) { … }
TEST_F(ReadAnythingReadAloudTraversalUtilsTest,
IsOpeningPunctuation_ReturnsExpected) { … }
testing::Matcher<ReadAloudTextSegment> TextSegmentMatcher(ui::AXNodeID id,
int text_start,
int text_end) { … }
TEST_F(ReadAnythingReadAloudTraversalUtilsTest,
GetSegmentsForRange_OnlyOneNode_ReturnsCorrectSegments) { … }
TEST_F(ReadAnythingReadAloudTraversalUtilsTest,
GetSegmentsForRange_TwoNodes_ReturnsCorrectSegments) { … }
TEST_F(ReadAnythingReadAloudTraversalUtilsTest,
GetSegmentsForRange_ManyNodes_ReturnsCorrectSegments) { … }
TEST_F(ReadAnythingReadAloudTraversalUtilsTest,
GetSegmentsForRange_OutsideRange_ReturnsCorrectSegments) { … }