#include "services/network/shared_storage/shared_storage_test_url_loader_network_observer.h"
#include <deque>
#include <iterator>
#include <memory>
#include <optional>
#include <string>
#include <tuple>
#include <utility>
#include <vector>
#include "base/functional/bind.h"
#include "base/functional/callback.h"
#include "services/network/public/mojom/optional_bool.mojom.h"
#include "services/network/public/mojom/url_loader_network_service_observer.mojom.h"
#include "url/origin.h"
namespace network {
namespace {
std::optional<bool> MojomToAbslOptionalBool(
network::mojom::OptionalBool opt_bool) { … }
std::vector<std::tuple<mojom::SharedStorageOperationType,
std::optional<std::string>,
std::optional<std::string>,
std::optional<bool>>>
MakeOperationTuples(std::vector<mojom::SharedStorageOperationPtr> operations) { … }
}
SharedStorageTestURLLoaderNetworkObserver::
SharedStorageTestURLLoaderNetworkObserver() = default;
SharedStorageTestURLLoaderNetworkObserver::
~SharedStorageTestURLLoaderNetworkObserver() = default;
void SharedStorageTestURLLoaderNetworkObserver::OnSharedStorageHeaderReceived(
const url::Origin& request_origin,
std::vector<mojom::SharedStorageOperationPtr> operations,
OnSharedStorageHeaderReceivedCallback callback) { … }
void SharedStorageTestURLLoaderNetworkObserver::WaitForHeadersReceived(
size_t expected_total) { … }
}