The Battle for Wesnoth  1.13.4+dev
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Classes | Macros | Functions | Variables
main.cpp File Reference
#include <boost/version.hpp>
#include <boost/test/unit_test.hpp>
#include <boost/test/unit_test_monitor.hpp>
#include <boost/test/detail/unit_test_parameters.hpp>
#include <boost/test/results_reporter.hpp>
#include <fstream>
#include <SDL.h>
#include "filesystem.hpp"
#include "game_config.hpp"
#include "game_errors.hpp"
#include "gui/core/event/handler.hpp"
#include "gui/widgets/helper.hpp"
#include "network.hpp"
#include "config.hpp"
#include "log.hpp"
#include "tests/utils/fake_display.hpp"
#include "game_display.hpp"
Include dependency graph for main.cpp:

Go to the source code of this file.

Classes

struct  wesnoth_global_fixture
 

Macros

#define GETTEXT_DOMAIN   "wesnoth-test"
 
#define BOOST_TEST_MODULE   wesnoth unit tests master suite
 

Functions

static void exception_translator_config (const config::error &e)
 
static void exception_translator_network (const network::error &e)
 
static void exception_translator_game (const game::error &e)
 
 BOOST_GLOBAL_FIXTURE (wesnoth_global_fixture)
 

Variables

std::ofstream reporter
 

Macro Definition Documentation

#define BOOST_TEST_MODULE   wesnoth unit tests master suite

Definition at line 18 of file main.cpp.

#define GETTEXT_DOMAIN   "wesnoth-test"

Definition at line 15 of file main.cpp.

Function Documentation

BOOST_GLOBAL_FIXTURE ( wesnoth_global_fixture  )
static void exception_translator_config ( const config::error e)
static
Todo:
add all others exception handlers too

Definition at line 55 of file main.cpp.

References game::error::message.

Referenced by wesnoth_global_fixture::wesnoth_global_fixture().

static void exception_translator_game ( const game::error e)
static

Definition at line 67 of file main.cpp.

References game::error::message.

Referenced by wesnoth_global_fixture::wesnoth_global_fixture().

static void exception_translator_network ( const network::error e)
static

Definition at line 60 of file main.cpp.

References game::error::message.

Referenced by wesnoth_global_fixture::wesnoth_global_fixture().

Variable Documentation

std::ofstream reporter

Definition at line 72 of file main.cpp.

Referenced by wesnoth_global_fixture::wesnoth_global_fixture().