#include "chrome/browser/ui/file_system_access/file_system_access_permission_dialog.h"
#include <optional>
#include "base/files/file_path.h"
#include "base/test/bind.h"
#include "chrome/browser/ui/browser.h"
#include "chrome/browser/ui/test/test_browser_dialog.h"
#include "chrome/test/base/browser_with_test_window_test.h"
#include "components/permissions/permission_util.h"
#include "content/public/browser/file_system_access_permission_context.h"
#include "content/public/test/browser_test.h"
#include "url/origin.h"
AccessType;
RequestData;
RequestType;
HandleType;
class FileSystemAccessPermissionDialogTest : public DialogBrowserTest { … };
IN_PROC_BROWSER_TEST_F(FileSystemAccessPermissionDialogTest, InvokeUi_default) { … }
IN_PROC_BROWSER_TEST_F(FileSystemAccessPermissionDialogTest,
InvokeUi_LongFileName) { … }
IN_PROC_BROWSER_TEST_F(FileSystemAccessPermissionDialogTest, InvokeUi_Folder) { … }
IN_PROC_BROWSER_TEST_F(FileSystemAccessPermissionDialogTest,
InvokeUi_LongOrigin) { … }
IN_PROC_BROWSER_TEST_F(FileSystemAccessPermissionDialogTest,
InvokeUi_FileOrigin) { … }
IN_PROC_BROWSER_TEST_F(FileSystemAccessPermissionDialogTest,
InvokeUi_ExtensionOrigin) { … }
IN_PROC_BROWSER_TEST_F(FileSystemAccessPermissionDialogTest,
InvokeUi_FolderRead) { … }
IN_PROC_BROWSER_TEST_F(FileSystemAccessPermissionDialogTest,
InvokeUi_FolderReadWrite) { … }
IN_PROC_BROWSER_TEST_F(FileSystemAccessPermissionDialogTest,
InvokeUi_FileRead) { … }
IN_PROC_BROWSER_TEST_F(FileSystemAccessPermissionDialogTest,
InvokeUi_FileReadWrite) { … }