#include "third_party/blink/renderer/core/html/anchor_element_metrics.h"
#include <optional>
#include "base/test/scoped_feature_list.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "third_party/blink/public/common/features.h"
#include "third_party/blink/public/mojom/loader/navigation_predictor.mojom-blink.h"
#include "third_party/blink/renderer/core/frame/local_frame.h"
#include "third_party/blink/renderer/core/frame/local_frame_view.h"
#include "third_party/blink/renderer/core/html/html_anchor_element.h"
#include "third_party/blink/renderer/core/html/html_iframe_element.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/wtf/text/atomic_string.h"
namespace blink {
class AnchorElementMetricsTest : public SimTest { … };
constexpr int AnchorElementMetricsTest::kViewportWidth;
constexpr int AnchorElementMetricsTest::kViewportHeight;
TEST_F(AnchorElementMetricsTest, ViewportSize) { … }
TEST_F(AnchorElementMetricsTest, IsUrlIncrementedByOne) { … }
TEST_F(AnchorElementMetricsTest, AnchorFeatureImageLink) { … }
TEST_F(AnchorElementMetricsTest, AnchorWithoutTextSibling) { … }
TEST_F(AnchorElementMetricsTest, AnchorWithEmptyTextSibling) { … }
TEST_F(AnchorElementMetricsTest, AnchorWithPreviousTextSibling) { … }
TEST_F(AnchorElementMetricsTest, AnchorWithNextTextSibling) { … }
TEST_F(AnchorElementMetricsTest, AnchorFontSize) { … }
TEST_F(AnchorElementMetricsTest, AnchorFontWeight) { … }
TEST_F(AnchorElementMetricsTest, AnchorFeatureExtract) { … }
TEST_F(AnchorElementMetricsTest, AnchorFeatureInIframe) { … }
}