#include "chrome/browser/policy/messaging_layer/upload/fake_upload_client.h"
#include <optional>
#include <utility>
#include <vector>
#include "base/base64.h"
#include "base/memory/ptr_util.h"
#include "base/values.h"
#include "chrome/browser/policy/messaging_layer/util/reporting_server_connector.h"
#include "chrome/browser/policy/messaging_layer/util/upload_declarations.h"
#include "chrome/browser/policy/messaging_layer/util/upload_response_parser.h"
#include "components/reporting/proto/synced/record.pb.h"
#include "components/reporting/resources/resource_manager.h"
#include "components/reporting/util/encrypted_reporting_json_keys.h"
#include "components/reporting/util/status.h"
namespace reporting {
FakeUploadClient::FakeUploadClient() = default;
FakeUploadClient::~FakeUploadClient() = default;
void FakeUploadClient::Create(CreatedCallback created_cb) { … }
void FakeUploadClient::EnqueueUpload(
bool need_encryption_key,
int config_file_version,
std::vector<EncryptedRecord> records,
ScopedReservation scoped_reservation,
UploadEnqueuedCallback enqueued_cb,
ReportSuccessfulUploadCallback report_upload_success_cb,
EncryptionKeyAttachedCallback encryption_key_attached_cb,
ConfigFileAttachedCallback config_file_attached_cb) { … }
void FakeUploadClient::OnUploadComplete(
ReportSuccessfulUploadCallback report_upload_success_cb,
EncryptionKeyAttachedCallback encryption_key_attached_cb,
ConfigFileAttachedCallback config_file_attached_cb,
StatusOr<UploadResponseParser> response) { … }
}