#ifndef CONTENT_PUBLIC_TEST_SHARED_STORAGE_TEST_UTILS_H_
#define CONTENT_PUBLIC_TEST_SHARED_STORAGE_TEST_UTILS_H_
#include <stddef.h>
#include <string>
#include "base/memory/weak_ptr.h"
#include "base/strings/string_split.h"
#include "components/services/storage/shared_storage/shared_storage_manager.h"
#include "content/browser/private_aggregation/private_aggregation_host.h"
#include "services/network/public/mojom/optional_bool.mojom.h"
#include "services/network/public/mojom/url_loader_network_service_observer.mojom.h"
#include "third_party/abseil-cpp/absl/types/variant.h"
#include "url/origin.h"
class GURL;
namespace content {
class RenderFrameHost;
class SharedStorageWorkletHostManager;
class StoragePartition;
class TestSharedStorageHeaderObserver;
FencedFrameNavigationTarget;
OperationResult;
OperationType;
OperationPtr;
SharedStorageWorkletHostManager*
GetSharedStorageWorkletHostManagerForStoragePartition(
StoragePartition* storage_partition);
std::string GetSharedStorageDisabledMessage();
std::string GetSharedStorageSelectURLDisabledMessage();
std::string GetSharedStorageAddModuleDisabledMessage();
size_t GetAttachedSharedStorageWorkletHostsCount(
StoragePartition* storage_partition);
size_t GetKeepAliveSharedStorageWorkletHostsCount(
StoragePartition* storage_partition);
RenderFrameHost* CreateFencedFrame(RenderFrameHost* root,
const FencedFrameNavigationTarget& target);
[[nodiscard]] network::mojom::OptionalBool AbslToMojomOptionalBool(
std::optional<bool> opt_bool);
struct SharedStorageWriteOperationAndResult { … };
bool operator==(const SharedStorageWriteOperationAndResult& a,
const SharedStorageWriteOperationAndResult& b);
PrivateAggregationHost::PipeResult
GetPrivateAggregationHostPipeReportSuccessValue();
PrivateAggregationHost::PipeResult
GetPrivateAggregationHostPipeApiDisabledValue();
base::WeakPtr<TestSharedStorageHeaderObserver>
CreateAndOverrideSharedStorageHeaderObserver(StoragePartition* partition);
base::StringPairs SharedStorageCrossOriginWorkletResponseHeaderReplacement(
const std::string& access_control_allow_origin_replacement,
const std::string& shared_storage_cross_origin_allowed_replacement);
}
#endif