/*
* This file is part of the TrinityCore Project. See AUTHORS file for Copyright information
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by the
* Free Software Foundation; either version 2 of the License, or (at your
* option) any later version.
*
* This program is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
* more details.
*
* You should have received a copy of the GNU General Public License along
* with this program. If not, see .
*/
#ifndef TRINITY_DUMMYDATA_H
#define TRINITY_DUMMYDATA_H
#include "Common.h"
#include "Define.h"
#include "DB2Store.h"
#include "DB2Structure.h"
#include
#include
class Item;
struct ItemTemplate;
class SpellInfo;
class Map;
class UnitTestDataLoader
{
public:
// An empty real map for Spell lifecycle tests. No grids or world data
// are loaded, and the pre-existing map-store index is restored.
class MapFixture
{
public:
MapFixture();
~MapFixture();
Map& Get() const { return *_map; }
MapFixture(MapFixture const&) = delete;
MapFixture& operator=(MapFixture const&) = delete;
private:
MapEntry _entry{};
char** _previousIndex;
uint32 _previousSize;
std::unique_ptr