chromium/components/services/print_compositor/print_compositor_impl_unittest.cc

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

#include <memory>
#include <utility>

#include "base/functional/bind.h"
#include "base/functional/callback.h"
#include "base/run_loop.h"
#include "base/test/gtest_util.h"
#include "base/test/task_environment.h"
#include "components/crash/core/common/crash_key.h"
#include "components/services/print_compositor/print_compositor_impl.h"
#include "components/services/print_compositor/public/cpp/print_service_mojo_types.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"

namespace printing {

struct TestRequestData {};

class MockPrintCompositorImpl : public PrintCompositorImpl {};

// MockCompletionPrintCompositorImpl is used for testing related to
// Prepare/Complete document pipeline.
class MockCompletionPrintCompositorImpl : public PrintCompositorImpl {};

class PrintCompositorImplTest : public testing::Test {};

class PrintCompositorImplCrashKeyTest : public PrintCompositorImplTest {};

TEST_F(PrintCompositorImplTest, IsReadyToComposite) {}

TEST_F(PrintCompositorImplTest, MultiLayerDependency) {}

TEST_F(PrintCompositorImplTest, DependencyLoop) {}

TEST_F(PrintCompositorImplTest, MultiRequestsBasic) {}

TEST_F(PrintCompositorImplTest, MultiRequestsOrder) {}

TEST_F(PrintCompositorImplTest, MultiRequestsDepOrder) {}

TEST_F(PrintCompositorImplTest, NotifyUnavailableSubframe) {}

#if BUILDFLAG(IS_FUCHSIA)
// TODO(crbug.com/40172607): Enable this test once CrashKeys are supported.
#define MAYBE_SetCrashKey
#else
#define MAYBE_SetCrashKey
#endif
TEST_F(PrintCompositorImplCrashKeyTest, MAYBE_SetCrashKey) {}

TEST_F(PrintCompositorImplTest, MultiRequestsBasicFinishDocument) {}

}  // namespace printing