OpenMW
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Classes | Macros | Functions | Variables
test_store.cpp File Reference
#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"
Include dependency graph for test_store.cpp:

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
 

Macro Definition Documentation

#define RUN_TEST_FOR_TYPES (   func,
  arg1,
  arg2 
)

Function Documentation

template<typename T >
Files::IStreamPtr getEsmFile ( record,
bool  deleted 
)

Create an ESM file in-memory containing the specified record.

Parameters
deletedWrite record with deleted flag?

Here is the call graph for this function:

Here is the caller graph for this function:

template<typename T >
void printRecords ( MWWorld::ESMStore esmStore,
std::ostream &  outStream 
)

Here is the call graph for this function:

Here is the caller graph for this function:

TEST_F ( ContentFileTest  ,
dialogue_merging_test   
)

Print results of the dialogue merging process, i.e. the resulting linked list.

Here is the call graph for this function:

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

Here is the call graph for this function:

TEST_F ( StoreTest  ,
delete_test   
)

Tests deletion of records.

Here is the call graph for this function:

TEST_F ( StoreTest  ,
overwrite_test   
)

Tests overwriting of records.

Here is the call graph for this function:

Variable Documentation

Loading::Listener dummyListener
static