chromium/content/browser/blob_storage/file_backed_blob_factory_worker_impl_unittest.cc

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

#include "content/browser/blob_storage/file_backed_blob_factory_worker_impl.h"

#include <memory>

#include "base/functional/callback_helpers.h"
#include "components/file_access/test/mock_scoped_file_access_delegate.h"
#include "content/browser/blob_storage/chrome_blob_storage_context.h"
#include "content/browser/child_process_security_policy_impl.h"
#include "content/public/browser/render_frame_host.h"
#include "content/public/test/browser_task_environment.h"
#include "content/public/test/test_browser_context.h"
#include "mojo/public/cpp/bindings/remote.h"
#include "mojo/public/cpp/system/functions.h"
#include "storage/browser/blob/blob_data_builder.h"
#include "storage/browser/blob/blob_data_handle.h"
#include "storage/browser/blob/blob_storage_constants.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "third_party/blink/public/mojom/blob/data_element.mojom.h"
#include "third_party/blink/public/mojom/blob/file_backed_blob_factory.mojom.h"
#include "url/gurl.h"

#if defined(FILE_PATH_USES_DRIVE_LETTERS)
#define TEST_PATH
#else
#define TEST_PATH(x)
#endif

namespace content {
namespace {
constexpr char kId[] =;
constexpr char kId2[] =;
constexpr char kType[] =;
constexpr uint64_t kOffset =;
constexpr uint64_t kSize =;
constexpr char kUrl[] =;
constexpr char kUrl2[] =;
}  // namespace

class FileBackedBlobFactoryWorkerImplTest : public testing::Test {};

TEST_F(FileBackedBlobFactoryWorkerImplTest, Register_UnreadableFile) {}

TEST_F(FileBackedBlobFactoryWorkerImplTest, Register_ValidFile) {}

TEST_F(FileBackedBlobFactoryWorkerImplTest, Register_ExistingUUID) {}

TEST_F(FileBackedBlobFactoryWorkerImplTest, Register_EmptyUUID) {}

TEST_F(FileBackedBlobFactoryWorkerImplTest,
       Register_ExistingScopedFileAccessDelegate) {}

TEST_F(FileBackedBlobFactoryWorkerImplTest, MultipleBindings) {}

}  // namespace content