Skip to content

Commit

Permalink
Fix unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jyrkive committed Feb 3, 2017
1 parent 90d34c2 commit 733e2a2
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/tests/gui/test_gui2.cpp
Expand Up @@ -18,6 +18,7 @@
#include <boost/test/unit_test.hpp>

#include "addon/client.hpp"
#include "addon/info.hpp"
#include "config_assign.hpp"
#include "config_cache.hpp"
#include "editor/editor_display.hpp" // for dummy display context
Expand All @@ -32,6 +33,7 @@
#include "generators/map_create.hpp"
#include "gui/core/layout_exception.hpp"
#include "gui/dialogs/addon/connect.hpp"
#include "gui/dialogs/addon/install_dependencies.hpp"
#include "gui/dialogs/addon/manager.hpp"
#include "gui/dialogs/advanced_graphics_options.hpp"
#include "gui/dialogs/attack_predictions.hpp"
Expand Down Expand Up @@ -423,6 +425,7 @@ BOOST_AUTO_TEST_CASE(test_gui2)
test<game_stats>();
test<gamestate_inspector>();
test<generator_settings>();
test<install_dependencies>();
test<language_selection>();
// test<loading_screen>(); TODO: enable
test<lobby_main>();
Expand Down Expand Up @@ -778,6 +781,16 @@ struct dialog_tester<gamestate_inspector>

};

template<>
struct dialog_tester<install_dependencies>
{
addons_list addons;
install_dependencies* create()
{
return new install_dependencies(addons);
}
};

struct wesnothd_connection_init
{
wesnothd_connection_init(wesnothd_connection& conn)
Expand Down

0 comments on commit 733e2a2

Please sign in to comment.