2023-05-02 22:19:20 +00:00
|
|
|
#ifndef __DCOMMONDEPENDENCIES__H__
|
|
|
|
#define __DCOMMONDEPENDENCIES__H__
|
|
|
|
|
|
|
|
#include "Game.h"
|
2023-10-21 23:31:55 +00:00
|
|
|
#include "Logger.h"
|
2023-05-02 22:19:20 +00:00
|
|
|
#include "dServer.h"
|
|
|
|
#include "EntityInfo.h"
|
|
|
|
#include "EntityManager.h"
|
|
|
|
#include "dConfig.h"
|
|
|
|
#include <gtest/gtest.h>
|
|
|
|
|
|
|
|
class dCommonDependenciesTest : public ::testing::Test {
|
|
|
|
protected:
|
|
|
|
void SetUpDependencies() {
|
2023-10-21 23:31:55 +00:00
|
|
|
Game::logger = new Logger("./testing.log", true, true);
|
2023-05-02 22:19:20 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void TearDownDependencies() {
|
|
|
|
if (Game::logger) {
|
|
|
|
Game::logger->Flush();
|
|
|
|
delete Game::logger;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif //!__DCOMMONDEPENDENCIES__H__
|