chromium/third_party/blink/renderer/core/paint/video_painter_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/paint/video_painter.h"

#include <memory>

#include "base/unguessable_token.h"
#include "cc/layers/layer.h"
#include "components/paint_preview/common/paint_preview_tracker.h"
#include "third_party/blink/public/platform/platform.h"
#include "third_party/blink/renderer/core/css/css_default_style_sheets.h"
#include "third_party/blink/renderer/core/frame/frame_test_helpers.h"
#include "third_party/blink/renderer/core/frame/web_local_frame_impl.h"
#include "third_party/blink/renderer/core/html/media/html_media_element.h"
#include "third_party/blink/renderer/core/paint/paint_controller_paint_test.h"
#include "third_party/blink/renderer/platform/heap/thread_state.h"
#include "third_party/blink/renderer/platform/testing/empty_web_media_player.h"
#include "third_party/blink/renderer/platform/testing/task_environment.h"
#include "third_party/blink/renderer/platform/testing/unit_test_helpers.h"

// Integration tests of video painting code (in CAP mode).

namespace blink {
namespace {

void ExtractLinks(const PaintRecord& record,
                  std::vector<std::pair<GURL, SkRect>>* links) {}

size_t CountImagesOfType(const PaintRecord& record, cc::ImageType image_type) {}

class StubWebMediaPlayer : public EmptyWebMediaPlayer {};

class VideoStubLocalFrameClient : public EmptyLocalFrameClient {};

class VideoPainterTest : public PaintControllerPaintTestBase {};

TEST_F(VideoPainterTest, VideoLayerAppearsInLayerTree) {}

class MockWebMediaPlayer : public StubWebMediaPlayer {};

class TestWebFrameClientImpl : public frame_test_helpers::TestWebFrameClient {};

class VideoPaintPreviewTest : public testing::Test,
                              public PaintTestConfigurations {};

INSTANTIATE_PAINT_TEST_SUITE_P();

TEST_P(VideoPaintPreviewTest, URLIsRecordedWhenPaintingPreview) {}

TEST_P(VideoPaintPreviewTest, PosterFlagToggleFrameCapture) {}

TEST_P(VideoPaintPreviewTest, PosterFlagToggleNoPosterFrameCapture) {}

}  // namespace
}  // namespace blink