#include "content/browser/attribution_reporting/attribution_debug_report.h"
#include <stdint.h>
#include <optional>
#include "base/test/values_test_util.h"
#include "base/time/time.h"
#include "components/attribution_reporting/os_registration.h"
#include "components/attribution_reporting/os_registration_error.mojom.h"
#include "components/attribution_reporting/registrar.h"
#include "components/attribution_reporting/registration_header_error.h"
#include "components/attribution_reporting/source_registration_error.mojom.h"
#include "components/attribution_reporting/suitable_origin.h"
#include "components/attribution_reporting/trigger_registration_error.mojom.h"
#include "content/browser/attribution_reporting/attribution_config.h"
#include "content/browser/attribution_reporting/attribution_input_event.h"
#include "content/browser/attribution_reporting/attribution_test_utils.h"
#include "content/browser/attribution_reporting/attribution_trigger.h"
#include "content/browser/attribution_reporting/create_report_result.h"
#include "content/browser/attribution_reporting/os_registration.h"
#include "content/browser/attribution_reporting/storable_source.h"
#include "content/browser/attribution_reporting/store_source_result.h"
#include "content/browser/attribution_reporting/stored_source.h"
#include "content/public/browser/global_routing_id.h"
#include "net/base/schemeful_site.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "third_party/blink/public/mojom/aggregation_service/aggregatable_report.mojom.h"
#include "url/gurl.h"
namespace content {
namespace {
Message;
OsRegistrationItem;
RegistrationHeaderError;
SuitableOrigin;
constexpr attribution_reporting::Registrar kRegistrar = …;
constexpr base::Time kSourceTime;
constexpr StoredSource::Id kSourceId(1);
AttributionReport DefaultEventLevelReport(
base::Time source_time = base::Time::Now()) { … }
AttributionReport DefaultAggregatableReport() { … }
bool OperationAllowed() { … }
bool OperationProhibited() { … }
TEST(AttributionDebugReportTest, NoDebugReporting_NoReportReturned) { … }
TEST(AttributionDebugReportTest, OperationProhibited_NoReportReturned) { … }
TEST(AttributionDebugReportTest,
SourceDestinationLimitError_ValidReportReturned) { … }
TEST(AttributionDebugReportTest, WithinFencedFrame_NoDebugReport) { … }
TEST(AttributionDebugReportTest, SourceDebugging) { … }
TEST(AttributionDebugReportTest, TriggerDebugging) { … }
TEST(AttributionDebugReportTest, EventLevelAttributionDebugging) { … }
TEST(AttributionDebugReportTest, AggregatableAttributionDebugging) { … }
TEST(AttributionDebugReportTest, OsRegistrationDebugging) { … }
TEST(AttributionDebugReportTest, RegistrationHeaderErrorDebugReports) { … }
}
}