#if defined(UNSAFE_BUFFERS_BUILD)
#pragma allow_unsafe_buffers
#endif
#include "pdf/accessibility.h"
#include <string>
#include "pdf/accessibility_structs.h"
#include "pdf/pdfium/pdfium_engine.h"
#include "pdf/pdfium/pdfium_test_base.h"
#include "pdf/test/test_client.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "ui/gfx/geometry/point.h"
#include "ui/gfx/geometry/rect.h"
#include "ui/gfx/geometry/rect_conversions.h"
#include "ui/gfx/geometry/rect_f.h"
#include "ui/gfx/geometry/vector2d.h"
namespace chrome_pdf {
AccessibilityTest;
float GetExpectedBoundsWidth(bool using_test_fonts, size_t i, float expected) { … }
double GetExpectedCharWidth(bool using_test_fonts, size_t i, double expected) { … }
TEST_P(AccessibilityTest, GetAccessibilityPage) { … }
TEST_P(AccessibilityTest, GetAccessibilityImageInfo) { … }
TEST_P(AccessibilityTest, GetUnderlyingTextRangeForRect) { … }
class ScrollEnabledTestClient : public TestClient { … };
TEST_P(AccessibilityTest, ScrollIntoViewActionHandling) { … }
TEST_P(AccessibilityTest, ScrollToNearestEdge) { … }
TEST_P(AccessibilityTest, ScrollToGlobalPoint) { … }
class NavigationEnabledTestClient : public TestClient { … };
TEST_P(AccessibilityTest, WebLinkClickActionHandling) { … }
TEST_P(AccessibilityTest, InternalLinkClickActionHandling) { … }
TEST_P(AccessibilityTest, GetAccessibilityLinkInfo) { … }
TEST_P(AccessibilityTest, GetAccessibilityHighlightInfo) { … }
TEST_P(AccessibilityTest, GetAccessibilityTextFieldInfo) { … }
TEST_P(AccessibilityTest, SelectionActionHandling) { … }
TEST_P(AccessibilityTest, SetSelectionAndScroll) { … }
INSTANTIATE_TEST_SUITE_P(…);
}