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

// Copyright 2018 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_meta_element.h"

#include "testing/gtest/include/gtest/gtest.h"
#include "third_party/blink/renderer/core/css/css_computed_style_declaration.h"
#include "third_party/blink/renderer/core/css/media_query_list.h"
#include "third_party/blink/renderer/core/css/media_query_matcher.h"
#include "third_party/blink/renderer/core/css/style_engine.h"
#include "third_party/blink/renderer/core/dom/document.h"
#include "third_party/blink/renderer/core/dom/node_computed_style.h"
#include "third_party/blink/renderer/core/frame/local_dom_window.h"
#include "third_party/blink/renderer/core/frame/local_frame.h"
#include "third_party/blink/renderer/core/frame/settings.h"
#include "third_party/blink/renderer/core/frame/viewport_data.h"
#include "third_party/blink/renderer/core/html/html_head_element.h"
#include "third_party/blink/renderer/core/style/computed_style.h"
#include "third_party/blink/renderer/core/testing/color_scheme_helper.h"
#include "third_party/blink/renderer/core/testing/mock_policy_container_host.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/heap/garbage_collected.h"
#include "third_party/blink/renderer/platform/testing/runtime_enabled_features_test_helpers.h"
#include "third_party/blink/renderer/platform/testing/unit_test_helpers.h"

namespace blink {

class HTMLMetaElementTest : public PageTestBase,
                            private ScopedDisplayCutoutAPIForTest {};
class HTMLMetaElementSimTest : public SimTest {};

TEST_F(HTMLMetaElementTest, ViewportFit_Auto) {}

TEST_F(HTMLMetaElementTest, ViewportFit_Contain) {}

TEST_F(HTMLMetaElementTest, ViewportFit_Cover) {}

TEST_F(HTMLMetaElementTest, ViewportFit_Invalid) {}

// TODO(https://crbug.com/1430288) remove after data collected (end of '23)
TEST_F(HTMLMetaElementTest, ViewportFit_Auto_NotUseCounted) {}

TEST_F(HTMLMetaElementTest, ViewportFit_Contain_IsUseCounted) {}

// TODO(https://crbug.com/1430288) remove after data collected (end of '23)
TEST_F(HTMLMetaElementTest, ViewportFit_Cover_IsUseCounted) {}

TEST_F(HTMLMetaElementTest, ColorSchemeProcessing_FirstWins) {}

TEST_F(HTMLMetaElementTest, ColorSchemeProcessing_Remove) {}

TEST_F(HTMLMetaElementTest, ColorSchemeProcessing_InsertBefore) {}

TEST_F(HTMLMetaElementTest, ColorSchemeProcessing_AppendChild) {}

TEST_F(HTMLMetaElementTest, ColorSchemeProcessing_SetAttribute) {}

TEST_F(HTMLMetaElementTest, ColorSchemeProcessing_RemoveContentAttribute) {}

TEST_F(HTMLMetaElementTest, ColorSchemeProcessing_RemoveNameAttribute) {}

TEST_F(HTMLMetaElementTest, ColorSchemeParsing) {}

TEST_F(HTMLMetaElementTest, ColorSchemeForcedDarkeningAndMQ) {}

TEST_F(HTMLMetaElementTest, ReferrerPolicyWithoutContent) {}

TEST_F(HTMLMetaElementTest, ReferrerPolicyUpdatesPolicyContainer) {}

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

TEST_F(HTMLMetaElementSimTest, WebMonetizationNotCountedInSubFrame) {}

}  // namespace blink