chromium/storage/browser/blob/blob_storage_context_mojo_unittest.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 "base/memory/raw_ptr.h"
#include "storage/browser/blob/blob_storage_context.h"

#include <memory>
#include <string>

#include "base/containers/span.h"
#include "base/files/file_util.h"
#include "base/files/scoped_temp_dir.h"
#include "base/functional/callback.h"
#include "base/task/sequenced_task_runner.h"
#include "base/task/task_traits.h"
#include "base/task/thread_pool.h"
#include "base/test/bind.h"
#include "base/test/task_environment.h"
#include "base/test/test_simple_task_runner.h"
#include "base/threading/thread_restrictions.h"
#include "base/time/time.h"
#include "components/services/storage/public/mojom/blob_storage_context.mojom.h"
#include "mojo/public/cpp/base/big_buffer.h"
#include "mojo/public/cpp/bindings/pending_remote.h"
#include "mojo/public/cpp/bindings/remote.h"
#include "mojo/public/cpp/system/data_pipe.h"
#include "mojo/public/cpp/system/data_pipe_drainer.h"
#include "net/base/net_errors.h"
#include "storage/browser/blob/blob_data_builder.h"
#include "storage/browser/blob/blob_impl.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "third_party/blink/public/common/blob/blob_utils.h"
#include "third_party/blink/public/mojom/blob/blob.mojom.h"

namespace storage {
namespace {

class DataPipeReader : public mojo::DataPipeDrainer::Client {};

std::string ReadDataPipe(mojo::ScopedDataPipeConsumerHandle pipe) {}

class BlobStorageContextMojoTest : public testing::Test {};

TEST_F(BlobStorageContextMojoTest, BasicBlobCreation) {}

TEST_F(BlobStorageContextMojoTest, SaveBlobToFile) {}

TEST_F(BlobStorageContextMojoTest, SaveBlobToFileNoDate) {}

TEST_F(BlobStorageContextMojoTest, SaveEmptyBlobToFile) {}

TEST_F(BlobStorageContextMojoTest, FileCopyOptimization) {}

TEST_F(BlobStorageContextMojoTest, FileCopyOptimizationOffsetSize) {}

TEST_F(BlobStorageContextMojoTest, FileCopyEmptyFile) {}

TEST_F(BlobStorageContextMojoTest, InvalidInputFileSize) {}

TEST_F(BlobStorageContextMojoTest, InvalidInputFileTimeModified) {}

TEST_F(BlobStorageContextMojoTest, NoProfileDirectory) {}

TEST_F(BlobStorageContextMojoTest, PathWithReferences) {}

TEST_F(BlobStorageContextMojoTest, InvalidPath) {}

TEST_F(BlobStorageContextMojoTest, SaveBlobToFileNoDirectory) {}

TEST_F(BlobStorageContextMojoTest, SaveOptimizedBlobToFileNoDirectory) {}

TEST_F(BlobStorageContextMojoTest, SaveOptimizedBlobNoFileSize) {}

}  // namespace
}  // namespace storage