#include "third_party/blink/renderer/core/annotation/annotation_agent_impl.h"
#include <gtest/gtest.h>
#include "base/containers/span.h"
#include "base/run_loop.h"
#include "base/test/bind.h"
#include "mojo/public/cpp/bindings/receiver.h"
#include "mojo/public/cpp/bindings/remote.h"
#include "third_party/blink/public/mojom/annotation/annotation.mojom-blink.h"
#include "third_party/blink/renderer/bindings/core/v8/v8_font_face_descriptors.h"
#include "third_party/blink/renderer/bindings/core/v8/v8_union_arraybuffer_arraybufferview_string.h"
#include "third_party/blink/renderer/core/annotation/annotation_agent_container_impl.h"
#include "third_party/blink/renderer/core/annotation/annotation_test_utils.h"
#include "third_party/blink/renderer/core/annotation/text_annotation_selector.h"
#include "third_party/blink/renderer/core/css/font_face.h"
#include "third_party/blink/renderer/core/css/font_face_set_document.h"
#include "third_party/blink/renderer/core/display_lock/display_lock_utilities.h"
#include "third_party/blink/renderer/core/editing/iterators/text_iterator.h"
#include "third_party/blink/renderer/core/editing/markers/document_marker_controller.h"
#include "third_party/blink/renderer/core/editing/position.h"
#include "third_party/blink/renderer/core/editing/range_in_flat_tree.h"
#include "third_party/blink/renderer/core/frame/local_dom_window.h"
#include "third_party/blink/renderer/core/frame/root_frame_viewport.h"
#include "third_party/blink/renderer/core/frame/visual_viewport.h"
#include "third_party/blink/renderer/core/geometry/dom_rect.h"
#include "third_party/blink/renderer/core/layout/layout_object.h"
#include "third_party/blink/renderer/core/paint/paint_layer_scrollable_area.h"
#include "third_party/blink/renderer/core/testing/sim/sim_request.h"
#include "third_party/blink/renderer/core/testing/sim/sim_test.h"
#include "third_party/blink/renderer/platform/testing/unit_test_helpers.h"
namespace blink {
class AnnotationAgentImplTest : public SimTest { … };
TEST_F(AnnotationAgentImplTest, AgentType) { … }
TEST_F(AnnotationAgentImplTest, CreatingDoesntBindOrAttach) { … }
TEST_F(AnnotationAgentImplTest, Bind) { … }
TEST_F(AnnotationAgentImplTest, RemoveDisconnectsBindings) { … }
TEST_F(AnnotationAgentImplTest, RemoveClearsState) { … }
TEST_F(AnnotationAgentImplTest, AttachDuringBeginFrame) { … }
TEST_F(AnnotationAgentImplTest, SuccessfulAttachCreatesMarker) { … }
TEST_F(AnnotationAgentImplTest, RemovedAgentRemovesMarkers) { … }
TEST_F(AnnotationAgentImplTest, AgentFailsAttachment) { … }
TEST_F(AnnotationAgentImplTest, AgentFailsAttachmentReportsToHost) { … }
TEST_F(AnnotationAgentImplTest, AttachmentToOverlappingMarkerReportsToHost) { … }
TEST_F(AnnotationAgentImplTest, AttachmentReportsRectsToHost) { … }
TEST_F(AnnotationAgentImplTest, AgentScrollIntoView) { … }
TEST_F(AnnotationAgentImplTest, AgentScrollIntoViewZoomed) { … }
TEST_F(AnnotationAgentImplTest, ScrollIntoViewWithDirtyLayout) { … }
TEST_F(AnnotationAgentImplTest, ScrollIntoViewCollapsedRange) { … }
TEST_F(AnnotationAgentImplTest, OpenDetailsElement) { … }
TEST_F(AnnotationAgentImplTest, OpenHiddenUntilFoundElement) { … }
TEST_F(AnnotationAgentImplTest, ActivatesContentVisibilityAuto) { … }
TEST_F(AnnotationAgentImplTest, TextFinderDoesntMutateDom) { … }
TEST_F(AnnotationAgentImplTest, TextFinderDoesntAddMarkers) { … }
TEST_F(AnnotationAgentImplTest, TextFinderDoesntFindEmptyOverflowHidden) { … }
TEST_F(AnnotationAgentImplTest, TextFinderDoesntFindOpacityZero) { … }
TEST_F(AnnotationAgentImplTest, TextFinderDoesntFindOffscreenFixed) { … }
}