chromium/content/browser/file_system_access/file_system_access_file_modification_host_impl_browsertest.cc

// Copyright 2021 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/files/scoped_temp_dir.h"
#include "base/memory/scoped_refptr.h"
#include "base/test/bind.h"
#include "build/build_config.h"
#include "build/chromeos_buildflags.h"
#include "content/public/browser/browser_context.h"
#include "content/public/browser/browser_task_traits.h"
#include "content/public/browser/browser_thread.h"
#include "content/public/browser/storage_partition.h"
#include "content/public/common/content_switches.h"
#include "content/public/test/browser_test.h"
#include "content/public/test/browser_test_utils.h"
#include "content/public/test/content_browser_test.h"
#include "content/public/test/content_browser_test_utils.h"
#include "content/shell/browser/shell.h"
#include "content/shell/common/shell_switches.h"
#include "net/test/embedded_test_server/embedded_test_server.h"
#include "storage/browser/quota/quota_manager.h"
#include "third_party/blink/public/common/storage_key/storage_key.h"
#include "third_party/blink/public/mojom/quota/quota_types.mojom.h"

namespace content {

// This browser test implements end-to-end tests for
// FileSystemAccessFileModificationHostImpl.
class FileSystemAccessFileModificationHostImplBrowserTest
    : public ContentBrowserTest {};

IN_PROC_BROWSER_TEST_F(FileSystemAccessFileModificationHostImplBrowserTest,
                       QuotaUsageAfterClosing) {}

IN_PROC_BROWSER_TEST_F(FileSystemAccessFileModificationHostImplBrowserTest,
                       QuotaUsageAfterForNonemptyFile) {}

// TODO(crbug.com/40826793): Failing on various builders.
#if BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX) ||                     \
    (BUILDFLAG(IS_CHROMEOS_LACROS) && defined(ADDRESS_SANITIZER) && \
     defined(LEAK_SANITIZER))
#define MAYBE_QuotaUsageOverallocation
#else
#define MAYBE_QuotaUsageOverallocation
#endif
IN_PROC_BROWSER_TEST_F(FileSystemAccessFileModificationHostImplBrowserTest,
                       MAYBE_QuotaUsageOverallocation) {}

IN_PROC_BROWSER_TEST_F(FileSystemAccessFileModificationHostImplBrowserTest,
                       QuotaUsageShrinks) {}

IN_PROC_BROWSER_TEST_F(FileSystemAccessFileModificationHostImplBrowserTest,
                       QuotaUsageWrite) {}

}  // namespace content