#include "chrome/browser/policy/messaging_layer/util/test_response_payload.h"
#include "base/base64.h"
#include "base/strings/strcat.h"
#include "base/values.h"
#include "chrome/browser/policy/messaging_layer/util/reporting_server_connector.h"
#include "components/reporting/util/encrypted_reporting_json_keys.h"
#include "components/reporting/util/status.h"
#include "components/reporting/util/statusor.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace reporting {
ResponseBuilder::ResponseBuilder(const base::Value::Dict& request)
: … { … }
ResponseBuilder::ResponseBuilder(base::Value::Dict&& request)
: … { … }
ResponseBuilder::ResponseBuilder(const ResponseBuilder& other)
: … { … }
ResponseBuilder& ResponseBuilder::SetForceConfirm(bool force_confirm) { … }
ResponseBuilder& ResponseBuilder::SetNull(bool null) { … }
ResponseBuilder& ResponseBuilder::SetRequest(const base::Value::Dict& request) { … }
ResponseBuilder& ResponseBuilder::SetRequest(base::Value::Dict&& request) { … }
ResponseBuilder& ResponseBuilder::SetSuccess(bool success) { … }
StatusOr<base::Value::Dict> ResponseBuilder::Build() const { … }
MakeUploadEncryptedReportAction::MakeUploadEncryptedReportAction(
ResponseBuilder&& response_builder)
: … { … }
void MakeUploadEncryptedReportAction::operator()(
base::Value::Dict request,
std::optional<base::Value::Dict> context,
ReportingServerConnector::ResponseCallback callback) { … }
}