OpenMW
|
#include <gtest/gtest.h>
#include <boost/filesystem/fstream.hpp>
#include <components/files/configurationmanager.hpp>
#include <components/esm/esmreader.hpp>
#include <components/esm/esmwriter.hpp>
#include <components/loadinglistener/loadinglistener.hpp>
#include "apps/openmw/mwworld/esmstore.hpp"
Classes | |
struct | ContentFileTest |
Base class for tests of ESMStore that rely on external content files to produce the test results. More... | |
struct | StoreTest |
Base class for tests of ESMStore that do not rely on external content files. More... | |
Macros | |
#define | RUN_TEST_FOR_TYPES(func, arg1, arg2) |
Functions | |
TEST_F (ContentFileTest, dialogue_merging_test) | |
Print results of the dialogue merging process, i.e. the resulting linked list. More... | |
template<typename T > | |
void | printRecords (MWWorld::ESMStore &esmStore, std::ostream &outStream) |
TEST_F (ContentFileTest, content_diagnostics_test) | |
template<typename T > | |
Files::IStreamPtr | getEsmFile (T record, bool deleted) |
TEST_F (StoreTest, delete_test) | |
Tests deletion of records. More... | |
TEST_F (StoreTest, overwrite_test) | |
Tests overwriting of records. More... | |
Variables | |
static Loading::Listener | dummyListener |
#define RUN_TEST_FOR_TYPES | ( | func, | |
arg1, | |||
arg2 | |||
) |
Files::IStreamPtr getEsmFile | ( | T | record, |
bool | deleted | ||
) |
Create an ESM file in-memory containing the specified record.
deleted | Write record with deleted flag? |
void printRecords | ( | MWWorld::ESMStore & | esmStore, |
std::ostream & | outStream | ||
) |
TEST_F | ( | ContentFileTest | , |
dialogue_merging_test | |||
) |
Print results of the dialogue merging process, i.e. the resulting linked list.
TEST_F | ( | ContentFileTest | , |
content_diagnostics_test | |||
) |
Print some basic diagnostics about the loaded content files, e.g. number of records and names of those records Also used to test the iteration order of records
TEST_F | ( | StoreTest | , |
delete_test | |||
) |
Tests deletion of records.
TEST_F | ( | StoreTest | , |
overwrite_test | |||
) |
Tests overwriting of records.
|
static |