chromium/third_party/blink/renderer/core/paint/timing/largest_contentful_paint_calculator_test.cc

// Copyright 2019 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/paint/timing/largest_contentful_paint_calculator.h"

#include "base/test/scoped_feature_list.h"
#include "base/test/simple_test_tick_clock.h"
#include "base/test/trace_event_analyzer.h"
#include "third_party/blink/public/common/features.h"
#include "third_party/blink/renderer/core/frame/web_local_frame_impl.h"
#include "third_party/blink/renderer/core/html/html_image_element.h"
#include "third_party/blink/renderer/core/paint/timing/image_paint_timing_detector.h"
#include "third_party/blink/renderer/core/paint/timing/paint_timing_detector.h"
#include "third_party/blink/renderer/core/paint/timing/paint_timing_test_helper.h"
#include "third_party/blink/renderer/core/paint/timing/text_paint_timing_detector.h"
#include "third_party/blink/renderer/core/testing/core_unit_test_helper.h"
#include "third_party/blink/renderer/platform/graphics/unaccelerated_static_bitmap_image.h"
#include "third_party/skia/include/core/SkImage.h"
#include "third_party/skia/include/core/SkSurface.h"

namespace blink {

namespace {
constexpr const char kTraceCategories[] =;

constexpr const char kLCPCandidate[] =;
}  // namespace

class LargestContentfulPaintCalculatorTest : public RenderingTest {};

TEST_F(LargestContentfulPaintCalculatorTest, SingleImage) {}

TEST_F(LargestContentfulPaintCalculatorTest, SingleText) {}

TEST_F(LargestContentfulPaintCalculatorTest, ImageLargerText) {}

TEST_F(LargestContentfulPaintCalculatorTest, ImageSmallerText) {}

TEST_F(LargestContentfulPaintCalculatorTest, TextLargerImage) {}

TEST_F(LargestContentfulPaintCalculatorTest, TextSmallerImage) {}

TEST_F(LargestContentfulPaintCalculatorTest, LargestImageRemoved) {}

TEST_F(LargestContentfulPaintCalculatorTest, LargestTextRemoved) {}

TEST_F(LargestContentfulPaintCalculatorTest, NoPaint) {}

TEST_F(LargestContentfulPaintCalculatorTest, SingleImageExcludedForEntropy) {}

TEST_F(LargestContentfulPaintCalculatorTest, LargerImageExcludedForEntropy) {}

TEST_F(LargestContentfulPaintCalculatorTest,
       LowEntropyImageNotExcludedAtLowerThreshold) {}

}  // namespace blink