#include "chrome/browser/enterprise/connectors/test/fake_files_request_handler.h"
#include "base/functional/bind.h"
#include "base/memory/weak_ptr.h"
namespace enterprise_connectors::test {
FakeFilesRequestHandler::FakeFilesRequestHandler(
FakeFileUploadCallback fake_file_upload_callback,
safe_browsing::BinaryUploadService* upload_service,
Profile* profile,
const AnalysisSettings& analysis_settings,
GURL url,
const std::string& source,
const std::string& destination,
const std::string& user_action_id,
const std::string& tab_title,
const std::string& content_transfer_method,
safe_browsing::DeepScanAccessPoint access_point,
ContentAnalysisRequest::Reason reason,
const std::vector<base::FilePath>& paths,
CompletionCallback callback)
: … { … }
FakeFilesRequestHandler::~FakeFilesRequestHandler() = default;
std::unique_ptr<FilesRequestHandler> FakeFilesRequestHandler::Create(
FakeFileUploadCallback fake_file_upload_callback,
safe_browsing::BinaryUploadService* upload_service,
Profile* profile,
const AnalysisSettings& analysis_settings,
GURL url,
const std::string& source,
const std::string& destination,
const std::string& user_action_id,
const std::string& tab_title,
const std::string& content_transfer_method,
safe_browsing::DeepScanAccessPoint access_point,
ContentAnalysisRequest::Reason reason,
const std::vector<base::FilePath>& paths,
FilesRequestHandler::CompletionCallback callback) { … }
void FakeFilesRequestHandler::UploadFileForDeepScanning(
safe_browsing::BinaryUploadService::Result result,
const base::FilePath& path,
std::unique_ptr<safe_browsing::BinaryUploadService::Request> request) { … }
base::WeakPtr<FakeFilesRequestHandler> FakeFilesRequestHandler::GetWeakPtr() { … }
}