chromium/third_party/blink/renderer/core/html/html_link_element_test.cc

// Copyright 2016 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "third_party/blink/renderer/core/html/html_link_element.h"

#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "third_party/blink/renderer/core/dom/document.h"
#include "third_party/blink/renderer/core/frame/local_frame_view.h"
#include "third_party/blink/renderer/core/html/html_head_element.h"
#include "third_party/blink/renderer/core/testing/page_test_base.h"
#include "third_party/blink/renderer/core/testing/sim/sim_compositor.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 HTMLLinkElementTest : public PageTestBase {};
class HTMLLinkElementSimTest : public SimTest {};

// This tests that we should ignore empty string value
// in href attribute value of the link element.
TEST_F(HTMLLinkElementTest, EmptyHrefAttribute) {}

// This tests whether Web Monetization counter is properly triggered.
TEST_F(HTMLLinkElementTest, WebMonetizationCounter) {}

TEST_F(HTMLLinkElementSimTest, WebMonetizationNotCountedInSubFrame) {}

// This tests whether the Canonical counter is properly triggered.
TEST_F(HTMLLinkElementTest, CanonicalCounter) {}

TEST_F(HTMLLinkElementSimTest, CanonicalNotCountedInSubFrame) {}

// This tests whether `rel=privacy-policy` is properly counted.
TEST_F(HTMLLinkElementTest, PrivacyPolicyCounter) {}

// This tests whether `rel=terms-of-service` is properly counted.
TEST_F(HTMLLinkElementTest, TermsOfServiceCounter) {}

// This tests whether `rel=payment` is properly counted.
TEST_F(HTMLLinkElementTest, PaymentCounter) {}

}  // namespace blink