UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
BuildPatchProgress.mock.h
Go to the documentation of this file.
1// Copyright Epic Games, Inc. All Rights Reserved.
2#pragma once
3
5#include "Tests/TestHelpers.h"
7
8#if WITH_DEV_AUTOMATION_TESTS
9
10namespace BuildPatchServices
11{
13 : public FBuildPatchProgress
14 {
15 public:
17
18 public:
19
20 virtual void SetPaused(bool bIsPaused) override
21 {
22 MOCK_FUNC_NOT_IMPLEMENTED("FMockBuildPatchProgress::SetPaused");
23 }
24
25 virtual void Abort() override
26 {
27 MOCK_FUNC_NOT_IMPLEMENTED("FMockBuildPatchProgress::Abort");
28 }
29
30 virtual void SetStateProgress(const EBuildPatchState& State, const float& Value) override
31 {
33 {
35 }
36 RxSetStateProgress.Emplace(FStatsCollector::GetSeconds(), State, Value);
37 }
38
39 virtual void SetStateWeight(const EBuildPatchState& State, const float& Value) override
40 {
41 MOCK_FUNC_NOT_IMPLEMENTED("FMockBuildPatchProgress::SetStateWeight");
42 }
43
44 virtual EBuildPatchState GetState() const override
45 {
46 MOCK_FUNC_NOT_IMPLEMENTED("FMockBuildPatchProgress::GetState");
47 return EBuildPatchState();
48 }
49
50 virtual float GetProgress() const override
51 {
52 MOCK_FUNC_NOT_IMPLEMENTED("FMockBuildPatchProgress::GetProgress");
53 return float();
54 }
55
56 virtual float GetProgressNoMarquee() const override
57 {
58 MOCK_FUNC_NOT_IMPLEMENTED("FMockBuildPatchProgress::GetProgressNoMarquee");
59 return float();
60 }
61
62 virtual float GetStateProgress(const EBuildPatchState& State) const override
63 {
64 MOCK_FUNC_NOT_IMPLEMENTED("FMockBuildPatchProgress::GetStateProgress");
65 return float();
66 }
67
68 virtual float GetStateWeight(const EBuildPatchState& State) const override
69 {
70 MOCK_FUNC_NOT_IMPLEMENTED("FMockBuildPatchProgress::GetStateWeight");
71 return float();
72 }
73
74 virtual bool TogglePauseState() override
75 {
76 MOCK_FUNC_NOT_IMPLEMENTED("FMockBuildPatchProgress::TogglePauseState");
77 return bool();
78 }
79
80 virtual double WaitWhilePaused() const override
81 {
82 MOCK_FUNC_NOT_IMPLEMENTED("FMockBuildPatchProgress::WaitWhilePaused");
83 return double();
84 }
85
86 virtual bool GetPauseState() const override
87 {
88 MOCK_FUNC_NOT_IMPLEMENTED("FMockBuildPatchProgress::GetPauseState");
89 return bool();
90 }
91
92 virtual void SetIsDownloading(bool bInIsDownloading) override
93 {
94 MOCK_FUNC_NOT_IMPLEMENTED("FMockBuildPatchProgress::SetIsDownloading");
95 }
96
97 public:
99 TFunction<void(const EBuildPatchState&, const float&)> SetStateProgressFunc;
100 };
101}
102
103#endif //WITH_DEV_AUTOMATION_TESTS
OODEFFUNC typedef void(OODLE_CALLBACK t_fp_OodleCore_Plugin_Free)(void *ptr)
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition SharedPointer.h:127
UE_FORCEINLINE_HINT uint64 GetState() const
Definition LockFreeList.h:46
const bool
Definition NetworkReplayStreaming.h:178
USkinnedMeshComponent float
Definition SkinnedMeshComponent.h:60
Definition Array.h:670
Definition AndroidPlatformMisc.h:14
Definition BuildPatchFileConstructor.h:28
void WaitWhilePaused(FThreadSafeBool &bIsPaused, FThreadSafeBool &bShouldAbort)
Definition BuildPatchFileConstructor.cpp:68
void SetPaused(bool paused)
Definition Tuple.h:652