#include "services/network/attribution/attribution_request_helper.h"
#include <memory>
#include <string>
#include <vector>
#include "base/functional/bind.h"
#include "base/test/bind.h"
#include "base/test/metrics/histogram_tester.h"
#include "base/test/scoped_feature_list.h"
#include "base/test/task_environment.h"
#include "net/http/structured_headers.h"
#include "net/traffic_annotation/network_traffic_annotation_test_helper.h"
#include "net/url_request/redirect_info.h"
#include "net/url_request/url_request.h"
#include "net/url_request/url_request_context.h"
#include "net/url_request/url_request_context_builder.h"
#include "net/url_request/url_request_test_util.h"
#include "services/network/public/cpp/features.h"
#include "services/network/public/cpp/resource_request.h"
#include "services/network/public/mojom/attribution.mojom.h"
#include "services/network/public/mojom/url_response_head.mojom.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "url/gurl.h"
namespace network {
namespace {
AttributionReportingEligibility;
IsEmpty;
constexpr char kAttributionReportingEligible[] = …;
class AttributionRequestHelperTest : public testing::Test { … };
TEST_F(AttributionRequestHelperTest, BeginRedirectAndFinalize_NoOp) { … }
TEST_F(AttributionRequestHelperTest, CreateIfNeeded) { … }
TEST_F(AttributionRequestHelperTest, SetAttributionReportingHeaders) { … }
class AttributionCrossAppWebRequestHelperTest
: public AttributionRequestHelperTest { … };
TEST_F(AttributionCrossAppWebRequestHelperTest,
SetAttributionReportingSupportHeaders) { … }
}
}