#include "components/ip_protection/common/ip_protection_config_http.h"
#include <string_view>
#include "base/strings/strcat.h"
#include "base/test/bind.h"
#include "base/test/scoped_feature_list.h"
#include "base/test/task_environment.h"
#include "base/test/test_future.h"
#include "net/base/features.h"
#include "net/traffic_annotation/network_traffic_annotation_test_helper.h"
#include "services/network/public/cpp/resource_request.h"
#include "services/network/public/cpp/weak_wrapper_shared_url_loader_factory.h"
#include "services/network/public/mojom/url_response_head.mojom-shared.h"
#include "services/network/test/test_url_loader_factory.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace ip_protection {
namespace {
const char kProtobufContentType[] = …;
class IpProtectionConfigHttpTest : public testing::Test { … };
TEST_F(IpProtectionConfigHttpTest, DoRequestSendsCorrectRequestInitialData) { … }
TEST_F(IpProtectionConfigHttpTest,
DoRequestSendsCorrectRequestAuthAndSignAndExperimentArm) { … }
TEST_F(IpProtectionConfigHttpTest,
DoRequestFailsToConnectReturnsFailureStatus) { … }
TEST_F(IpProtectionConfigHttpTest,
DoRequestInvalidFinchParametersFailsGracefully) { … }
TEST_F(IpProtectionConfigHttpTest, DoRequestHttpFailureStatus) { … }
}
}