chromium/storage/browser/file_system/file_system_quota_client_unittest.cc

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

#include <stdint.h>

#include <algorithm>
#include <memory>
#include <vector>

#include "base/files/file_util.h"
#include "base/files/scoped_temp_dir.h"
#include "base/functional/bind.h"
#include "base/run_loop.h"
#include "base/task/single_thread_task_runner.h"
#include "base/test/gmock_expected_support.h"
#include "base/test/task_environment.h"
#include "base/test/test_future.h"
#include "components/services/storage/public/cpp/buckets/bucket_locator.h"
#include "components/services/storage/public/mojom/quota_client.mojom.h"
#include "storage/browser/file_system/file_system_context.h"
#include "storage/browser/file_system/file_system_quota_client.h"
#include "storage/browser/file_system/file_system_usage_cache.h"
#include "storage/browser/file_system/file_system_util.h"
#include "storage/browser/file_system/obfuscated_file_util.h"
#include "storage/browser/quota/quota_manager.h"
#include "storage/browser/quota/quota_manager_proxy.h"
#include "storage/browser/test/async_file_test_helper.h"
#include "storage/browser/test/mock_quota_manager.h"
#include "storage/browser/test/mock_quota_manager_proxy.h"
#include "storage/browser/test/mock_special_storage_policy.h"
#include "storage/browser/test/test_file_system_context.h"
#include "storage/common/file_system/file_system_types.h"
#include "storage/common/file_system/file_system_util.h"
#include "testing/gmock/include/gmock/gmock-matchers.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "third_party/blink/public/common/storage_key/storage_key.h"
#include "third_party/blink/public/mojom/quota/quota_types.mojom.h"
#include "url/gurl.h"
#include "url/origin.h"

StorageKey;
StorageType;

namespace storage {
namespace {

const char kDummyURL1[] =;
const char kDummyURL2[] =;
const char kDummyURL3[] =;

// Declared to shorten the variable names.
const StorageType kTemporary =;

}  // namespace

class FileSystemQuotaClientTest : public testing::Test {};

TEST_F(FileSystemQuotaClientTest, NoFileSystemTest) {}

TEST_F(FileSystemQuotaClientTest, NoFileTest) {}

TEST_F(FileSystemQuotaClientTest, NonDefaultBucket) {}

TEST_F(FileSystemQuotaClientTest, OneFileTest) {}

TEST_F(FileSystemQuotaClientTest, TwoFilesTest) {}

TEST_F(FileSystemQuotaClientTest, EmptyFilesTest) {}

TEST_F(FileSystemQuotaClientTest, SubDirectoryTest) {}

TEST_F(FileSystemQuotaClientTest, MultiTypeTest) {}

TEST_F(FileSystemQuotaClientTest, MultiDomainTest) {}

TEST_F(FileSystemQuotaClientTest, GetUsage_MultipleTasks) {}

TEST_F(FileSystemQuotaClientTest, GetStorageKeysForType) {}

TEST_F(FileSystemQuotaClientTest, DeleteOriginTest) {}

}  // namespace storage