chromium/services/network/test/trust_token_test_server_handler_registration.cc

// Copyright 2020 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "services/network/test/trust_token_test_server_handler_registration.h"

#include <memory>
#include <optional>
#include <string_view>

#include "base/base64.h"
#include "base/check.h"
#include "base/containers/contains.h"
#include "base/logging.h"
#include "base/test/bind.h"
#include "net/http/http_request_headers.h"
#include "net/test/embedded_test_server/http_request.h"
#include "net/test/embedded_test_server/http_response.h"
#include "services/network/test/trust_token_request_handler.h"
#include "services/network/trust_tokens/suitable_trust_token_origin.h"

namespace network::test {

namespace {

const char kIssuanceRelativePath[] =;
const char kRedemptionRelativePath[] =;
const char kSignedRequestVerificationRelativePath[] =;

std::unique_ptr<net::test_server::HttpResponse>
MakeTrustTokenFailureResponse() {}

// Constructs and returns an HTTP response bearing the given base64-encoded
// Trust Tokens issuance or redemption protocol response message.
std::unique_ptr<net::test_server::HttpResponse> MakeTrustTokenResponse(
    std::string_view contents) {}

}  // namespace

void RegisterTrustTokenTestHandlers(net::EmbeddedTestServer* test_server,
                                    TrustTokenRequestHandler* handler) {}

}  // namespace network::test