#include "content/browser/fenced_frame/fenced_frame_reporter.h"
#include <functional>
#include <map>
#include <memory>
#include <optional>
#include <string>
#include <type_traits>
#include <utility>
#include "base/memory/scoped_refptr.h"
#include "base/test/metrics/histogram_tester.h"
#include "base/test/scoped_feature_list.h"
#include "content/browser/attribution_reporting/attribution_manager.h"
#include "content/browser/attribution_reporting/test/mock_attribution_data_host_manager.h"
#include "content/browser/attribution_reporting/test/mock_attribution_manager.h"
#include "content/browser/interest_group/test_interest_group_private_aggregation_manager.h"
#include "content/browser/renderer_host/render_frame_host_impl.h"
#include "content/browser/storage_partition_impl.h"
#include "content/public/browser/browser_context.h"
#include "content/public/test/test_renderer_host.h"
#include "content/services/auction_worklet/public/mojom/private_aggregation_request.mojom.h"
#include "content/test/test_content_browser_client.h"
#include "net/base/isolation_info.h"
#include "net/base/network_isolation_key.h"
#include "net/http/http_request_headers.h"
#include "services/network/public/cpp/data_element.h"
#include "services/network/public/cpp/resource_request.h"
#include "services/network/public/cpp/shared_url_loader_factory.h"
#include "services/network/public/cpp/weak_wrapper_shared_url_loader_factory.h"
#include "services/network/test/test_url_loader_factory.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "third_party/blink/public/common/fenced_frame/fenced_frame_utils.h"
#include "third_party/blink/public/common/fenced_frame/redacted_fenced_frame_config.h"
#include "third_party/blink/public/mojom/aggregation_service/aggregatable_report.mojom.h"
#include "url/gurl.h"
#include "url/origin.h"
namespace content {
namespace {
_;
PrivateAggregationRequests;
const auction_worklet::mojom::PrivateAggregationRequestPtr
kPrivateAggregationRequest = …;
const auction_worklet::mojom::PrivateAggregationRequestPtr
kPrivateAggregationRequest2 = …;
template <typename... Ts>
auto ElementsAreRequests(Ts&... requests) { … }
class InterestGroupEnabledContentBrowserClient
: public TestContentBrowserClient { … };
class FencedFrameReporterTest : public RenderViewHostTestHarness { … };
TEST_F(FencedFrameReporterTest, NoReportNoMap) { … }
TEST_F(FencedFrameReporterTest, NoReportEmptyMap) { … }
TEST_F(FencedFrameReporterTest, NoReportEventTypeNotRegistered) { … }
TEST_F(FencedFrameReporterTest, NoReportBadUrl) { … }
TEST_F(FencedFrameReporterTest, SendReports) { … }
TEST_F(FencedFrameReporterTest, SendFledgeReportsAfterMapsReceived) { … }
TEST_F(FencedFrameReporterTest, SendReportsFledgeBeforeMapsReceived) { … }
TEST_F(FencedFrameReporterTest, SendFledgeReportsBeforeMapsReceivedWithErrors) { … }
TEST_F(FencedFrameReporterTest, CustomDestinationURLNoOrEmptyAllowlist) { … }
TEST_F(FencedFrameReporterTest, CustomDestinationURLNoAdMacroMap) { … }
TEST_F(FencedFrameReporterTest, CustomDestinationURLEmptyAdMacroMap) { … }
TEST_F(FencedFrameReporterTest, CustomDestinationURLCompleteMacroSubstitution) { … }
TEST_F(FencedFrameReporterTest, CustomDestinationURLPartialMacroSubstitution) { … }
TEST_F(FencedFrameReporterTest, CustomDestinationURLNestedMacro) { … }
TEST_F(FencedFrameReporterTest, CustomDestinationHTTPURL) { … }
TEST_F(FencedFrameReporterTest, CustomDestinationInvalidURL) { … }
TEST_F(FencedFrameReporterTest, CustomDestinationInvalidURLAfterMacros) { … }
TEST_F(FencedFrameReporterTest, CustomDestinationURLAllowlist) { … }
TEST_F(FencedFrameReporterTest, SendFledgeReportsNoMapReceived) { … }
TEST_F(FencedFrameReporterTest, FledgeEventsReceivedAfterRequestsReady) { … }
TEST_F(FencedFrameReporterTest, FledgeEventsReceivedBeforeRequestsReady) { … }
TEST_F(FencedFrameReporterTest, FledgeEventsReceivedUnexpectedly) { … }
TEST_F(FencedFrameReporterTest, AttributionManagerShutDown_NoCrash) { … }
TEST_F(FencedFrameReporterTest, SendReportsRecordHistogramsEnum) { … }
TEST_F(FencedFrameReporterTest, SendReportsRecordHistogramsURL) { … }
TEST_F(FencedFrameReporterTest, SendReportsRecordHistogramsAutomaticBeacon) { … }
}
}