UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
InstallerAnalytics.mock.h
Go to the documentation of this file.
1// Copyright Epic Games, Inc. All Rights Reserved.
2#pragma once
3
5
6#if WITH_DEV_AUTOMATION_TESTS
7
9
10namespace BuildPatchServices
11{
13 : public IInstallerAnalytics
14 {
15 public:
22
23 public:
24 virtual void RecordChunkDownloadError(const FString& ChunkUrl, int32 ResponseCode, const FString& ErrorString) override
25 {
26 RxRecordChunkDownloadError.Emplace(FStatsCollector::GetSeconds(), ChunkUrl, ResponseCode, ErrorString);
27 }
28
29 virtual void RecordChunkDownloadAborted(const FString& ChunkUrl, double ChunkTime, double ChunkMean, double ChunkStd, double BreakingPoint) override
30 {
31 RxRecordChunkDownloadAborted.Emplace(FStatsCollector::GetSeconds(), ChunkUrl, ChunkTime, ChunkMean, ChunkStd, BreakingPoint);
32 }
33
34 virtual void RecordChunkCacheError(const FGuid& ChunkGuid, const FString& Filename, int32 LastError, const FString& SystemName, const FString& ErrorString) override
35 {
36 RxRecordChunkCacheError.Emplace(FStatsCollector::GetSeconds(), ChunkGuid, Filename, LastError, SystemName, ErrorString);
37 }
38
39 virtual void RecordConstructionError(const FString& Filename, int32 LastError, const FString& ErrorString) override
40 {
41 RxRecordConstructionError.Emplace(FStatsCollector::GetSeconds(), Filename, LastError, ErrorString);
42 }
43
44 virtual void RecordPrereqInstallationError(const FString& AppName, const FString& AppVersion, const FString& Filename, const FString& CommandLine, int32 ErrorCode, const FString& ErrorString) override
45 {
46 RxRecordPrereqInstallationError.Emplace(FStatsCollector::GetSeconds(), AppName, AppVersion, Filename, CommandLine, ErrorCode, ErrorString);
47 }
48
49 virtual void TrackRequest(const FHttpRequestPtr& Request) override
50 {
51 RxTrackRequest.Emplace(FStatsCollector::GetSeconds(), Request);
52 }
53
54 virtual void Flush() override
55 {
56 ++RxFlush;
57 }
58
59 public:
67 };
68}
69
70#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 Guid.h:109
Definition Tuple.h:652