chromium/chrome/browser/paint_preview/services/paint_preview_tab_service_unittest.cc

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

#include "chrome/browser/paint_preview/services/paint_preview_tab_service.h"

#include <memory>
#include <utility>
#include <vector>

#include "base/files/file_enumerator.h"
#include "base/files/file_util.h"
#include "base/files/scoped_temp_dir.h"
#include "base/test/task_environment.h"
#include "chrome/browser/paint_preview/services/paint_preview_tab_service_file_mixin.h"
#include "chrome/test/base/chrome_render_view_host_test_harness.h"
#include "components/paint_preview/common/mojom/paint_preview_recorder.mojom.h"
#include "content/public/browser/render_process_host.h"
#include "content/public/test/navigation_simulator.h"
#include "content/public/test/test_utils.h"
#include "mojo/public/cpp/bindings/associated_receiver.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "third_party/blink/public/common/associated_interfaces/associated_interface_provider.h"

namespace paint_preview {

namespace {

constexpr char kFeatureName[] =;

class MockPaintPreviewRecorder : public mojom::PaintPreviewRecorder {};

std::vector<base::FilePath> ListDir(const base::FilePath& path) {}

}  // namespace

class PaintPreviewTabServiceTest : public ChromeRenderViewHostTestHarness {};

TEST_F(PaintPreviewTabServiceTest, CaptureTab) {}

TEST_F(PaintPreviewTabServiceTest, CaptureTabFailed) {}

TEST_F(PaintPreviewTabServiceTest, CaptureTabTwice) {}

TEST_F(PaintPreviewTabServiceTest, TestUnityAudit) {}

TEST_F(PaintPreviewTabServiceTest, TestDisjointAudit) {}

TEST_F(PaintPreviewTabServiceTest, TestPartialAudit) {}

TEST_F(PaintPreviewTabServiceTest, LoadCache) {}

TEST_F(PaintPreviewTabServiceTest, EarlyDeletion) {}

TEST_F(PaintPreviewTabServiceTest, EarlyAudit) {}

TEST_F(PaintPreviewTabServiceTest, EarlyCapture) {}

TEST_F(PaintPreviewTabServiceTest, CaptureTabAndCleanup) {}

}  // namespace paint_preview