Skip to content

Commit

Permalink
Update tests for 335ffa1
Browse files Browse the repository at this point in the history
  • Loading branch information
Vultraz authored and GregoryLundberg committed Nov 30, 2017
1 parent 73bb615 commit 677477d
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions src/tests/gui/test_gui2.cpp
Expand Up @@ -569,7 +569,7 @@ struct dialog_tester<campaign_selection>
{
saved_game state;
ng::create_engine ng;
dialog_tester() : state(config {"campaign_type", "scenario"}), ng(test_utils::get_fake_display(-1, -1).video(), state)
dialog_tester() : state(config {"campaign_type", "scenario"}), ng(state)
{
}
campaign_selection* create()
Expand Down Expand Up @@ -874,13 +874,12 @@ template<>
struct dialog_tester<mp_create_game>
{
saved_game state;
ng::create_engine engine;
dialog_tester() : state(config {"campaign_type", "multiplayer"}), engine(test_utils::get_fake_display(-1, -1).video(), state)
dialog_tester() : state(config {"campaign_type", "multiplayer"})
{
}
mp_create_game* create()
{
return new mp_create_game(main_config, engine);
return new mp_create_game(main_config, state, true, nullptr);
}
};

Expand Down Expand Up @@ -1150,7 +1149,7 @@ struct dialog_tester<sp_options_configure>
saved_game state;
ng::create_engine create_eng;
ng::configure_engine config_eng;
dialog_tester() : create_eng(test_utils::get_fake_display(-1, -1).video(), state)
dialog_tester() : create_eng(state)
, config_eng(create_eng.get_state()) {}
sp_options_configure* create()
{
Expand Down

0 comments on commit 677477d

Please sign in to comment.