#include "content/public/test/file_system_chooser_test_helpers.h"
#include "base/memory/raw_ptr.h"
#include "ui/shell_dialogs/selected_file_info.h"
#include "url/gurl.h"
namespace content {
namespace {
class CancellingSelectFileDialog : public ui::SelectFileDialog { … };
class FakeSelectFileDialog : public ui::SelectFileDialog { … };
}
SelectFileDialogParams::SelectFileDialogParams() = default;
SelectFileDialogParams::~SelectFileDialogParams() = default;
CancellingSelectFileDialogFactory::CancellingSelectFileDialogFactory(
SelectFileDialogParams* out_params)
: … { … }
CancellingSelectFileDialogFactory::~CancellingSelectFileDialogFactory() { … }
ui::SelectFileDialog* CancellingSelectFileDialogFactory::Create(
ui::SelectFileDialog::Listener* listener,
std::unique_ptr<ui::SelectFilePolicy> policy) { … }
FakeSelectFileDialogFactory::FakeSelectFileDialogFactory(
std::vector<base::FilePath> result,
SelectFileDialogParams* out_params)
: … { … }
FakeSelectFileDialogFactory::FakeSelectFileDialogFactory(
std::vector<ui::SelectedFileInfo> result,
SelectFileDialogParams* out_params)
: … { … }
FakeSelectFileDialogFactory::~FakeSelectFileDialogFactory() { … }
ui::SelectFileDialog* FakeSelectFileDialogFactory::Create(
ui::SelectFileDialog::Listener* listener,
std::unique_ptr<ui::SelectFilePolicy> policy) { … }
}