#include "content/browser/file_system_access/file_system_access_directory_handle_impl.h"
#include <iterator>
#include <optional>
#include <string>
#include <tuple>
#include "base/files/file_util.h"
#include "base/files/scoped_temp_dir.h"
#include "base/functional/bind.h"
#include "base/memory/raw_ptr.h"
#include "base/memory/scoped_refptr.h"
#include "base/run_loop.h"
#include "base/test/bind.h"
#include "base/test/gmock_callback_support.h"
#include "base/test/task_environment.h"
#include "base/test/test_future.h"
#include "build/build_config.h"
#include "components/services/storage/public/cpp/buckets/bucket_locator.h"
#include "content/browser/file_system_access/features.h"
#include "content/browser/file_system_access/file_system_access_lock_manager.h"
#include "content/browser/file_system_access/fixed_file_system_access_permission_grant.h"
#include "content/browser/file_system_access/mock_file_system_access_permission_context.h"
#include "content/public/test/browser_task_environment.h"
#include "mojo/public/cpp/bindings/self_owned_receiver.h"
#include "storage/browser/quota/quota_manager_proxy.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.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "third_party/blink/public/common/storage_key/storage_key.h"
#include "url/gurl.h"
namespace content {
FileSystemURL;
_;
HandleType;
SensitiveEntryResult;
UserAction;
LockType;
class FileSystemAccessDirectoryHandleImplTest : public testing::Test { … };
TEST_F(FileSystemAccessDirectoryHandleImplTest, IsSafePathComponent) { … }
namespace {
class TestFileSystemAccessDirectoryEntriesListener
: public blink::mojom::FileSystemAccessDirectoryEntriesListener { … };
}
TEST_F(FileSystemAccessDirectoryHandleImplTest, GetEntries) { … }
TEST_F(FileSystemAccessDirectoryHandleImplTest,
GetFile_SensitiveEntryAccessCheck) { … }
TEST_F(FileSystemAccessDirectoryHandleImplTest, GetFile_NoReadAccess) { … }
TEST_F(FileSystemAccessDirectoryHandleImplTest, GetDirectory_NoReadAccess) { … }
TEST_F(FileSystemAccessDirectoryHandleImplTest,
GetEntries_SensitiveEntryAccessCheck) { … }
TEST_F(FileSystemAccessDirectoryHandleImplTest, GetEntries_NoReadAccess) { … }
TEST_F(FileSystemAccessDirectoryHandleImplTest, Remove_NoWriteAccess) { … }
TEST_F(FileSystemAccessDirectoryHandleImplTest, Remove_HasWriteAccess) { … }
TEST_F(FileSystemAccessDirectoryHandleImplTest, RemoveEntry) { … }
TEST_F(FileSystemAccessDirectoryHandleImplTest, GetChildURL_CustomBucket) { … }
}