UDocumentation
UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
HttpManager.mock.h
Go to the documentation of this file.
1
// Copyright Epic Games, Inc. All Rights Reserved.
2
#pragma once
3
4
#include "
Common/HttpManager.h
"
5
#include "
Tests/TestHelpers.h
"
6
#include "
Tests/Mock/HttpRequest.mock.h
"
7
#include "
Common/StatsCollector.h
"
8
9
#if WITH_DEV_AUTOMATION_TESTS
10
11
namespace
BuildPatchServices
12
{
13
class
FMockHttpManager
14
:
public
IHttpManager
15
{
16
public
:
17
FMockHttpManager
()
18
:
RxCreateRequest
(0)
19
{
20
}
21
22
virtual
TSharedRef<IHttpRequest, ESPMode::ThreadSafe>
CreateRequest()
override
23
{
24
++
RxCreateRequest
;
25
return
TSharedRef<IHttpRequest, ESPMode::ThreadSafe>
(
new
FMockHttpRequest
());
26
}
27
28
public
:
29
int32
RxCreateRequest
;
30
};
31
}
32
33
#endif
//WITH_DEV_AUTOMATION_TESTS
HttpManager.h
int32
FPlatformTypes::int32 int32
A 32-bit signed integer.
Definition
Platform.h:1125
StaticCastSharedRef
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition
SharedPointer.h:127
HttpRequest.mock.h
StatsCollector.h
TestHelpers.h
TSharedRef
Definition
SharedPointer.h:153
BuildPatchServices
Definition
BuildPatchFileConstructor.h:28
Engine
Source
Runtime
Online
BuildPatchServices
Private
Tests
Mock
HttpManager.mock.h
Generated by
1.9.8