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

// Copyright 2015 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_image_element.h"

#include <memory>

#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/platform/web_runtime_features.h"
#include "third_party/blink/renderer/core/dom/document.h"
#include "third_party/blink/renderer/core/execution_context/security_context.h"
#include "third_party/blink/renderer/core/frame/local_frame_view.h"
#include "third_party/blink/renderer/core/frame/settings.h"
#include "third_party/blink/renderer/core/loader/empty_clients.h"
#include "third_party/blink/renderer/core/testing/page_test_base.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 {

namespace {

class TestFrameClient : public EmptyLocalFrameClient {};

}  // namespace

class HTMLImageElementTest : public PageTestBase {};

// Instantiate class constants. Not needed after C++17.
constexpr int HTMLImageElementTest::kViewportWidth;
constexpr int HTMLImageElementTest::kViewportHeight;

TEST_F(HTMLImageElementTest, width) {}

TEST_F(HTMLImageElementTest, sourceSize) {}

TEST_F(HTMLImageElementTest, ImageAdRectangleUpdate) {}

TEST_F(HTMLImageElementTest, ResourceWidthWithPicture) {}

TEST_F(HTMLImageElementTest, ResourceWidthWithPictureContainingScripts) {}

HTMLImageElementSimTest;

TEST_F(HTMLImageElementSimTest, Sharedstoragewritable_SecureContext_Allowed) {}

TEST_F(HTMLImageElementSimTest,
       Sharedstoragewritable_InsecureContext_NotAllowed) {}

class TransparentPlaceholderImageSimTest
    : public SimTest,
      public ::testing::WithParamInterface<bool> {};

INSTANTIATE_TEST_SUITE_P();

TEST_P(TransparentPlaceholderImageSimTest, OnloadTransparentPlaceholderImage) {}

TEST_P(TransparentPlaceholderImageSimTest,
       CurrentSrcForTransparentPlaceholderImage) {}

class HTMLImageElementUseCounterTest : public HTMLImageElementTest {};

TEST_F(HTMLImageElementUseCounterTest, AutoSizesUseCountersNoSizes) {}

TEST_F(HTMLImageElementUseCounterTest, AutoSizesUseCountersNonAutoSizes) {}

TEST_F(HTMLImageElementUseCounterTest, AutoSizesNonLazyUseCounter) {}

TEST_F(HTMLImageElementUseCounterTest, AutoSizesLazyUseCounter) {}

}  // namespace blink