#include "services/network/trust_tokens/trust_token_key_commitment_controller.h"
#include <memory>
#include <utility>
#include "base/functional/bind.h"
#include "base/test/bind.h"
#include "base/test/task_environment.h"
#include "net/base/load_flags.h"
#include "net/base/net_errors.h"
#include "net/http/http_request_headers.h"
#include "net/traffic_annotation/network_traffic_annotation_test_helper.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/url_loader_completion_status.h"
#include "services/network/public/mojom/trust_tokens.mojom-forward.h"
#include "services/network/public/mojom/trust_tokens.mojom.h"
#include "services/network/public/mojom/url_loader_factory.mojom.h"
#include "services/network/public/mojom/url_response_head.mojom.h"
#include "services/network/test/test_url_loader_factory.h"
#include "services/network/test/test_utils.h"
#include "services/network/trust_tokens/trust_token_key_commitment_controller.h"
#include "services/network/trust_tokens/trust_token_parameterization.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "url/origin.h"
Optional;
namespace network {
CreateTrustTokenKeyCommitmentRequest;
namespace {
class FixedKeyCommitmentParser
: public TrustTokenKeyCommitmentController::Parser { … };
class FailingKeyCommitmentParser
: public TrustTokenKeyCommitmentController::Parser { … };
GURL IssuerDotComKeyCommitmentPath() { … }
class CommitmentWaiter { … };
}
class TrustTokenKeyCommitmentControllerTest : public ::testing::Test { … };
TEST_F(TrustTokenKeyCommitmentControllerTest, CreatedRequestsBypassCache) { … }
TEST_F(TrustTokenKeyCommitmentControllerTest,
CreatedRequestsAreUncredentialed) { … }
TEST_F(TrustTokenKeyCommitmentControllerTest,
CreatedRequestsCopyUnderlyingRequestsInitiators) { … }
TEST_F(TrustTokenKeyCommitmentControllerTest,
CreatedRequestsSetOriginToProvidedTopLevel) { … }
TEST_F(TrustTokenKeyCommitmentControllerTest, NetworkError) { … }
TEST_F(TrustTokenKeyCommitmentControllerTest, NetworkSuccessParseFailure) { … }
TEST_F(TrustTokenKeyCommitmentControllerTest, Redirect) { … }
TEST_F(TrustTokenKeyCommitmentControllerTest, Success) { … }
}