From b044289e3c8fbc4eb4ffa5c1d96da51aa0a41f9b Mon Sep 17 00:00:00 2001 From: Stefan Boberg Date: Thu, 6 Mar 2025 17:35:39 +0100 Subject: std::span -> eastl::span --- src/zenserver-test/zenserver-test.cpp | 34 +++++++++++++++++----------------- 1 file changed, 17 insertions(+), 17 deletions(-) (limited to 'src/zenserver-test/zenserver-test.cpp') diff --git a/src/zenserver-test/zenserver-test.cpp b/src/zenserver-test/zenserver-test.cpp index 0dbe2cb4b..b635aaa5e 100644 --- a/src/zenserver-test/zenserver-test.cpp +++ b/src/zenserver-test/zenserver-test.cpp @@ -40,11 +40,11 @@ ZEN_THIRD_PARTY_INCLUDES_START #undef GetObject ZEN_THIRD_PARTY_INCLUDES_END +#include #include #include #include #include -#include #include #include #include @@ -554,7 +554,7 @@ namespace utils { return New(Port, fmt::format("--debug --upstream-thread-count=0 --upstream-zen-url=http://localhost:{}", UpstreamPort)); } - static ZenConfig NewWithThreadedUpstreams(uint16_t NewPort, std::span UpstreamPorts, bool Debug) + static ZenConfig NewWithThreadedUpstreams(uint16_t NewPort, eastl::span UpstreamPorts, bool Debug) { std::string Args = Debug ? "--debug" : ""; for (uint16_t Port : UpstreamPorts) @@ -598,7 +598,7 @@ namespace utils { return Value; }; - eastl::vector> CreateAttachments(const std::span& Sizes) + eastl::vector> CreateAttachments(const eastl::span& Sizes) { eastl::vector> Result; Result.reserve(Sizes.size()); @@ -610,7 +610,7 @@ namespace utils { return Result; } - eastl::vector> CreateSemiRandomAttachments(const std::span& Sizes) + eastl::vector> CreateSemiRandomAttachments(const eastl::span& Sizes) { eastl::vector> Result; Result.reserve(Sizes.size()); @@ -746,8 +746,8 @@ TEST_CASE("zcache.cbpackage") }; auto IsEqual = [](zen::CbPackage Lhs, zen::CbPackage Rhs) -> bool { - std::span LhsAttachments = Lhs.GetAttachments(); - std::span RhsAttachments = Rhs.GetAttachments(); + eastl::span LhsAttachments = Lhs.GetAttachments(); + eastl::span RhsAttachments = Rhs.GetAttachments(); if (LhsAttachments.size() != RhsAttachments.size()) { @@ -1332,12 +1332,12 @@ TEST_CASE("zcache.rpc") bool Success; }; - auto GetCacheRecords = [](std::string_view BaseUri, - std::string_view Namespace, - std::span Keys, - zen::CachePolicy Policy, - zen::RpcAcceptOptions AcceptOptions = zen::RpcAcceptOptions::kNone, - int Pid = 0) -> GetCacheRecordResult { + auto GetCacheRecords = [](std::string_view BaseUri, + std::string_view Namespace, + eastl::span Keys, + zen::CachePolicy Policy, + zen::RpcAcceptOptions AcceptOptions = zen::RpcAcceptOptions::kNone, + int Pid = 0) -> GetCacheRecordResult { cacherequests::GetCacheRecordsRequest Request = {.AcceptMagic = kCbPkgMagic, .AcceptOptions = static_cast(AcceptOptions), .ProcessPid = Pid, @@ -1732,10 +1732,10 @@ TEST_CASE("zcache.failing.upstream") bool Success = false; }; - auto GetCacheRecords = [](std::string_view BaseUri, - std::string_view Namespace, - std::span Keys, - zen::CachePolicy Policy) -> GetCacheRecordResult { + auto GetCacheRecords = [](std::string_view BaseUri, + std::string_view Namespace, + eastl::span Keys, + zen::CachePolicy Policy) -> GetCacheRecordResult { cacherequests::GetCacheRecordsRequest Request = {.AcceptMagic = kCbPkgMagic, .DefaultPolicy = Policy, .Namespace = std::string(Namespace)}; @@ -2751,7 +2751,7 @@ OidAsString(const Oid& Id) } CbPackage -CreateOplogPackage(const Oid& Id, const std::span>& Attachments) +CreateOplogPackage(const Oid& Id, const eastl::span>& Attachments) { CbPackage Package; CbObjectWriter Object; -- cgit v1.2.3