UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
Download.mock.h
Go to the documentation of this file.
1// Copyright Epic Games, Inc. All Rights Reserved.
2#pragma once
3
6
7#if WITH_DEV_AUTOMATION_TESTS
8
9namespace BuildPatchServices
10{
11 class FMockDownload
12 : public IDownload
13 {
14 public:
15 virtual bool RequestSuccessful() const override
16 {
17 return bSuccess;
18 }
19
20 virtual bool ResponseSuccessful() const override
21 {
22 return bSuccess && EHttpResponseCodes::IsOk(ResponseCode);
23 }
24
25 virtual int32 GetResponseCode() const override
26 {
27 return ResponseCode;
28 }
29
30 virtual const TArray<uint8>& GetData() const override
31 {
32 return Data;
33 }
34
35 public:
36 bool bSuccess;
37 int32 ResponseCode;
39 };
40}
41
42#endif //WITH_DEV_AUTOMATION_TESTS
bool bSuccess
Definition ConvexDecomposition3.cpp:819
FPlatformTypes::int32 int32
A 32-bit signed integer.
Definition Platform.h:1125
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition SharedPointer.h:127
auto GetData(const TStringConversion< Converter, DefaultConversionSize > &Conversion) -> decltype(Conversion.Get())
Definition StringConv.h:802
Definition Array.h:670
Definition BuildPatchFileConstructor.h:28
GeometryCollection::Facades::FMuscleActivationData Data
Definition MuscleActivationConstraints.h:15
bool IsOk(int32 StatusCode)
Definition IHttpResponse.h:38
@ RequestSuccessful
Definition PathFollowingComponent.h:160