Skip to content

Commit

Permalink
Update tests for acc3fe8
Browse files Browse the repository at this point in the history
We can just use a wesnothd_connection object directly here.
  • Loading branch information
Vultraz committed Apr 12, 2018
1 parent acc3fe8 commit 7767902
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/tests/gui/test_gui2.cpp
Expand Up @@ -854,16 +854,16 @@ template<>
struct dialog_tester<mp_lobby>
{
config game_config;
wesnothd_connection_ptr connection;
wesnothd_connection connection;
wesnothd_connection_init init;
std::vector<std::string> installed_addons;
mp::lobby_info li;
dialog_tester() : connection(wesnothd_connection::create("", "")), init(*connection), li(game_config, installed_addons)
dialog_tester() : connection("", ""), init(*connection), li(game_config, installed_addons)
{
}
mp_lobby* create()
{
return new mp_lobby(game_config, li, *connection);
return new mp_lobby(game_config, li, connection);
}
};

Expand All @@ -880,13 +880,13 @@ struct dialog_tester<lobby_player_info>
{
config c;
fake_chat_handler ch;
wesnothd_connection_ptr connection;
wesnothd_connection connection;
wesnothd_connection_init init;
mp::user_info ui;
std::vector<std::string> installed_addons;
mp::lobby_info li;
dialog_tester()
: connection(wesnothd_connection::create("", "")), init(*connection)
: connection("", ""), init(connection)
, ui(c), li(c, installed_addons)
{
}
Expand Down

0 comments on commit 7767902

Please sign in to comment.