#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 {
class FileSystemAccessFileModificationHostImplBrowserTest
: public ContentBrowserTest { … };
IN_PROC_BROWSER_TEST_F(FileSystemAccessFileModificationHostImplBrowserTest,
QuotaUsageAfterClosing) { … }
IN_PROC_BROWSER_TEST_F(FileSystemAccessFileModificationHostImplBrowserTest,
QuotaUsageAfterForNonemptyFile) { … }
#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) { … }
}