AzerothCore 3.3.5a
OpenSource WoW Emulator
Loading...
Searching...
No Matches
BreakableCCProcTest Class Reference
Inheritance diagram for BreakableCCProcTest:

Protected Member Functions

void SetUp () override
 
void TearDown () override
 
AuraEffectStub CreateCCEffect (int32_t threshold, uint32_t auraType=7)
 Create a CC aura effect stub with the given threshold.
 

Private Attributes

IWorld_originalWorld = nullptr
 
NiceMock< WorldMock > * _worldMock = nullptr
 

Detailed Description

Member Function Documentation

◆ CreateCCEffect()

AuraEffectStub BreakableCCProcTest::CreateCCEffect ( int32_t  threshold,
uint32_t  auraType = 7 
)
inlineprotected

Create a CC aura effect stub with the given threshold.

120 {
121 AuraEffectStub effect(0, threshold, auraType);
122 return effect;
123 }
Lightweight stub for AuraEffect proc-related functionality.
Definition AuraStub.h:34

◆ SetUp()

void BreakableCCProcTest::SetUp ( )
inlineoverrideprotected
103 {
104 _originalWorld = sWorld.release();
105 _worldMock = new NiceMock<WorldMock>();
106 sWorld.reset(_worldMock);
107 }
IWorld * _originalWorld
Definition BreakableCCProcTest.cpp:126
NiceMock< WorldMock > * _worldMock
Definition BreakableCCProcTest.cpp:127
#define sWorld
Definition World.h:316

References _originalWorld, _worldMock, and sWorld.

◆ TearDown()

void BreakableCCProcTest::TearDown ( )
inlineoverrideprotected
110 {
111 IWorld* currentWorld = sWorld.release();
112 delete currentWorld;
113 sWorld.reset(_originalWorld);
114 }
Definition IWorld.h:63

References _originalWorld, and sWorld.

Member Data Documentation

◆ _originalWorld

IWorld* BreakableCCProcTest::_originalWorld = nullptr
private

Referenced by SetUp(), and TearDown().

◆ _worldMock

NiceMock<WorldMock>* BreakableCCProcTest::_worldMock = nullptr
private

Referenced by SetUp().


The documentation for this class was generated from the following file: