UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
CloudChunkSourceStat.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 ICloudChunkSourceStat
13 {
14 public:
25
26 public:
27 virtual void OnDownloadRequested(const FGuid& ChunkId) override
28 {
29 RxDownloadRequested.Emplace(FStatsCollector::GetSeconds(), ChunkId);
30 }
31
32 virtual void OnDownloadSuccess(const FGuid& ChunkId) override
33 {
34 RxDownloadSuccess.Emplace(FStatsCollector::GetSeconds(), ChunkId);
35 }
36
37 virtual void OnDownloadFailed(const FGuid& ChunkId, const FString& Url) override
38 {
39 RxDownloadFailed.Emplace(FStatsCollector::GetSeconds(), ChunkId, Url);
40 }
41
42 virtual void OnDownloadCorrupt(const FGuid& ChunkId, const FString& Url, EChunkLoadResult LoadResult) override
43 {
44 RxDownloadCorrupt.Emplace(FStatsCollector::GetSeconds(), ChunkId, Url, LoadResult);
45 }
46
47 virtual void OnDownloadAborted(const FGuid& ChunkId, const FString& Url, double DownloadTimeMean, double DownloadTimeStd, double DownloadTime, double BreakingPoint) override
48 {
49 RxDownloadAborted.Emplace(FStatsCollector::GetSeconds(), ChunkId, Url, DownloadTimeMean, DownloadTimeStd, DownloadTime, BreakingPoint);
50 }
51
52 virtual void OnReceivedDataUpdated(int64 TotalBytes) override
53 {
54 RxReceivedDataUpdated.Emplace(FStatsCollector::GetSeconds(), TotalBytes);
55 }
56
57 virtual void OnRequiredDataUpdated(int64 TotalBytes) override
58 {
59 RxRequiredDataUpdated.Emplace(FStatsCollector::GetSeconds(), TotalBytes);
60 }
61
62 virtual void OnDownloadHealthUpdated(EBuildPatchDownloadHealth DownloadHealth) override
63 {
64 RxDownloadHealthUpdated.Emplace(FStatsCollector::GetSeconds(), DownloadHealth);
65 }
66
67 virtual void OnSuccessRateUpdated(float SuccessRate) override
68 {
69 RxSuccessRateUpdated.Emplace(FStatsCollector::GetSeconds(), SuccessRate);
70 }
71
72 virtual void OnActiveRequestCountUpdated(uint32 RequestCount) override
73 {
74 RxActiveRequestCountUpdated.Emplace(FStatsCollector::GetSeconds(), RequestCount);
75 }
76
77 virtual void OnAcceptedNewRequirements(const TSet<FGuid>& ChunkIds) override
78 {
79 }
80
81 public:
92 };
93}
94
95#endif //WITH_DEV_AUTOMATION_TESTS
FPlatformTypes::int64 int64
A 64-bit signed integer.
Definition Platform.h:1127
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition SharedPointer.h:127
EBuildPatchDownloadHealth
Definition IBuildInstaller.h:88
uint32_t uint32
Definition binka_ue_file_header.h:6
Definition Array.h:670
Definition BuildPatchFileConstructor.h:28
Definition Guid.h:109
Definition Tuple.h:652