UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
VerifierStat.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 IVerifierStat
13 {
14 public:
21
22 public:
23 virtual void OnFileStarted(const FString& Filename, int64 FileSize) override
24 {
25 RxOnFileStarted.Emplace(FStatsCollector::GetSeconds(), Filename, FileSize);
26 }
27
28 virtual void OnFileProgress(const FString& Filename, int64 TotalBytes) override
29 {
31 {
32 OnFileProgressFunc(Filename, TotalBytes);
33 }
34 RxOnFileProgress.Emplace(FStatsCollector::GetSeconds(), Filename, TotalBytes);
35 }
36
37 virtual void OnFileCompleted(const FString& Filename, EVerifyResult VerifyResult) override
38 {
40 {
42 }
43 RxOnFileCompleted.Emplace(FStatsCollector::GetSeconds(), Filename, VerifyResult);
44 }
45
46 virtual void OnFileRead(const ISpeedRecorder::FRecord& Record) override
47 {
48 RxOnFileRead.Emplace(FStatsCollector::GetSeconds(), Record);
49 }
50
51 virtual void OnProcessedDataUpdated(int64 TotalBytes) override
52 {
53 RxOnProcessedDataUpdated.Emplace(FStatsCollector::GetSeconds(), TotalBytes);
54 }
55
56 virtual void OnTotalRequiredUpdated(int64 TotalBytes) override
57 {
58 RxOnTotalRequiredUpdated.Emplace(FStatsCollector::GetSeconds(), TotalBytes);
59 }
60
61 public:
68 TFunction<void(const FString&, int64)> OnFileProgressFunc;
69 TFunction<void(const FString&, EVerifyResult)> OnFileCompletedFunc;
70 };
71}
72
73#endif //WITH_DEV_AUTOMATION_TESTS
OODEFFUNC typedef void(OODLE_CALLBACK t_fp_OodleCore_Plugin_Free)(void *ptr)
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
Definition Array.h:670
Definition AndroidPlatformMisc.h:14
Definition BuildPatchFileConstructor.h:28
Definition Tuple.h:652