#include "content/browser/file_system_access/file_system_chooser.h"
#include <string>
#include "base/containers/contains.h"
#include "base/files/file_path.h"
#include "base/functional/callback_helpers.h"
#include "base/ranges/algorithm.h"
#include "base/strings/utf_string_conversions.h"
#include "base/test/bind.h"
#include "base/test/test_future.h"
#include "content/public/test/browser_task_environment.h"
#include "content/public/test/file_system_chooser_test_helpers.h"
#include "content/public/test/web_contents_tester.h"
#include "content/test/test_render_view_host.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "third_party/blink/public/mojom/file_system_access/file_system_access_error.mojom.h"
#include "ui/shell_dialogs/select_file_dialog.h"
#include "ui/shell_dialogs/select_file_dialog_factory.h"
#include "ui/shell_dialogs/select_file_policy.h"
#include "ui/shell_dialogs/selected_file_info.h"
namespace content {
class FileSystemChooserTest : public RenderViewHostImplTestHarness { … };
TEST_F(FileSystemChooserTest, EmptyAccepts) { … }
TEST_F(FileSystemChooserTest, EmptyAcceptsIgnoresIncludeAcceptsAll) { … }
TEST_F(FileSystemChooserTest, AcceptsMimeTypes) { … }
TEST_F(FileSystemChooserTest, AcceptsExtensions) { … }
TEST_F(FileSystemChooserTest, AcceptsExtensionsAndMimeTypes) { … }
TEST_F(FileSystemChooserTest, IgnoreShellIntegratedExtensions) { … }
TEST_F(FileSystemChooserTest, LocalPath) { … }
TEST_F(FileSystemChooserTest, ExternalPath) { … }
TEST_F(FileSystemChooserTest, DescriptionSanitization) { … }
TEST_F(FileSystemChooserTest, DialogCaller) { … }
}