#include "services/network/shared_storage/shared_storage_test_utils.h"
#include <optional>
#include <string>
#include <utility>
#include <vector>
#include "base/strings/strcat.h"
#include "base/strings/string_util.h"
#include "base/strings/utf_string_conversions.h"
#include "net/test/embedded_test_server/embedded_test_server.h"
#include "services/network/shared_storage/shared_storage_header_utils.h"
#include "url/url_util.h"
namespace network {
size_t SharedStorageRequestCount::Get() { … }
size_t SharedStorageRequestCount::Increment() { … }
void SharedStorageRequestCount::Reset() { … }
size_t SharedStorageRequestCount::count_ = …;
std::string MakeSharedStorageTestPath() { … }
std::string MakeSharedStorageBypassPath() { … }
std::string MakeSharedStorageRedirectPrefix() { … }
SharedStorageResponse::SharedStorageResponse(std::string shared_storage_write)
: … { … }
SharedStorageResponse::SharedStorageResponse(net::HttpStatusCode code,
std::string new_location)
: … { … }
SharedStorageResponse::SharedStorageResponse(std::string shared_storage_write,
net::HttpStatusCode code,
std::string new_location)
: … { … }
SharedStorageResponse::~SharedStorageResponse() = default;
void SharedStorageResponse::SendResponse(
base::WeakPtr<net::test_server::HttpResponseDelegate> delegate) { … }
std::unique_ptr<net::test_server::HttpResponse>
HandleSharedStorageRequestSimple(std::string shared_storage_write,
const net::test_server::HttpRequest& request) { … }
std::unique_ptr<net::test_server::HttpResponse>
HandleSharedStorageRequestMultiple(
std::vector<std::string> shared_storage_write_headers,
const net::test_server::HttpRequest& request) { … }
}