UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
DownloadServiceStat.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{
12 : public IDownloadServiceStat
13 {
14 public:
18
19 public:
20 virtual void OnDownloadStarted(int32 RequestId, const FString& Uri) override
21 {
22 RxDownloadStarted.Emplace(FStatsCollector::GetSeconds(), RequestId, Uri);
23 }
24
25 virtual void OnDownloadProgress(int32 RequestId, uint64 BytesReceived) override
26 {
27 RxDownloadProgress.Emplace(FStatsCollector::GetSeconds(), RequestId, BytesReceived);
28 }
29
30 virtual void OnDownloadComplete(const FDownloadRecord& DownloadRecord) override
31 {
32 RxDownloadComplete.Emplace(FStatsCollector::GetSeconds(), DownloadRecord);
33 }
34
35 public:
39 };
40}
41
42#endif //WITH_DEV_AUTOMATION_TESTS
FPlatformTypes::int32 int32
A 32-bit signed integer.
Definition Platform.h:1125
FPlatformTypes::uint64 uint64
A 64-bit unsigned integer.
Definition Platform.h:1117
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition SharedPointer.h:127
Definition Array.h:670
Definition BuildPatchFileConstructor.h:28
Definition Tuple.h:652