OpenEnroth 73e68f7
Loading...
Searching...
No Matches
Classes | Macros
GameTest.h File Reference
#include <gtest/gtest.h>
#include "Testing/Extensions/ThrowingAssertions.h"
#include "Testing/Extensions/ExpectExtensions.h"
#include "Testing/Extensions/ScopedTestFile.h"
#include "Testing/Extensions/ScopedTestFileSlot.h"
#include "Engine/Components/Control/EngineController.h"
#include "Utility/Preprocessor.h"
#include "TestController.h"
#include "ActorTapeRecorder.h"
#include "CharacterTapeRecorder.h"
#include "CommonTapeRecorder.h"

Classes

class  GameTest
 

Macros

#define GAME_TEST(SuiteName, TestName)    GAME_TEST_I(SuiteName, TestName, GTEST_TEST_CLASS_NAME_(SuiteName, TestName))
 
#define GAME_TEST_I(SuiteName, TestName, TestClassName)    GAME_TEST_II(SuiteName, TestName, TestClassName, MM_PP_CAT(Run_, TestClassName))
 
#define GAME_TEST_II(SuiteName, TestName, TestClassName, TestFunctionName)
 

Macro Definition Documentation

◆ GAME_TEST

#define GAME_TEST (   SuiteName,
  TestName 
)     GAME_TEST_I(SuiteName, TestName, GTEST_TEST_CLASS_NAME_(SuiteName, TestName))

◆ GAME_TEST_I

#define GAME_TEST_I (   SuiteName,
  TestName,
  TestClassName 
)     GAME_TEST_II(SuiteName, TestName, TestClassName, MM_PP_CAT(Run_, TestClassName))

◆ GAME_TEST_II

#define GAME_TEST_II (   SuiteName,
  TestName,
  TestClassName,
  TestFunctionName 
)
Value:
void TestFunctionName(EngineController &game, TestController &test, \
CommonTapeRecorder &tapes, CharacterTapeRecorder &charTapes, ActorTapeRecorder &actorTapes); \
\
GTEST_TEST_(SuiteName, TestName, GameTest, testing::internal::GetTypeId<GameTest>()) { \
runTestBody(&TestFunctionName); \
} \
\
void TestFunctionName(EngineController &game, TestController &test, \
CommonTapeRecorder &tapes, CharacterTapeRecorder &charTapes, ActorTapeRecorder &actorTapes) /* Body follows. */
Definition: ActorTapeRecorder.h:12
Definition: CharacterTapeRecorder.h:21
Definition: CommonTapeRecorder.h:23
Definition: EngineController.h:22
Definition: GameTest.h:17
Definition: TestController.h:19