Fix unit tests
This commit is contained in:
parent
045521d5f6
commit
18b7549cdc
1 changed files with 16 additions and 1 deletions
|
@ -26,6 +26,7 @@
|
|||
#include "game_classification.hpp"
|
||||
#include "game_config.hpp"
|
||||
#include "game_display.hpp"
|
||||
#include "game_launcher.hpp"
|
||||
#include "game_events/manager.hpp"
|
||||
#include "generators/map_create.hpp"
|
||||
#include "gui/core/layout_exception.hpp"
|
||||
|
@ -685,13 +686,14 @@ template<>
|
|||
struct twrapper<gui2::tgame_load>
|
||||
{
|
||||
config cfg;
|
||||
savegame::load_game_metadata data;
|
||||
twrapper()
|
||||
{
|
||||
/** @todo Would be nice to add real data to the config. */
|
||||
}
|
||||
gui2::tgame_load* create()
|
||||
{
|
||||
return new gui2::tgame_load(cfg);
|
||||
return new gui2::tgame_load(cfg, data);
|
||||
}
|
||||
|
||||
};
|
||||
|
@ -1033,6 +1035,19 @@ struct twrapper<gui2::ttransient_message>
|
|||
}
|
||||
};
|
||||
|
||||
template<>
|
||||
struct twrapper<gui2::ttitle_screen>
|
||||
{
|
||||
std::vector<std::string> args;
|
||||
commandline_options opts;
|
||||
game_launcher game;
|
||||
twrapper() : opts(args), game(opts, "unit_tests") {}
|
||||
gui2::ttitle_screen* create()
|
||||
{
|
||||
return new gui2::ttitle_screen(game);
|
||||
}
|
||||
};
|
||||
|
||||
template<>
|
||||
struct twrapper<gui2::twml_error>
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue