#include "addon/client.hpp"
#include "addon/info.hpp"
#include "config_cache.hpp"
#include "filesystem.hpp"
#include "formula/debugger.hpp"
#include "game_config.hpp"
#include "game_config_manager.hpp"
#include "game_config_view.hpp"
#include "game_display.hpp"
#include "game_events/manager.hpp"
#include "game_initialization/create_engine.hpp"
#include "game_initialization/lobby_data.hpp"
#include "game_initialization/lobby_info.hpp"
#include "game_launcher.hpp"
#include "generators/map_create.hpp"
#include "gettext.hpp"
#include "gui/core/layout_exception.hpp"
#include "gui/dialogs/addon/addon_auth.hpp"
#include "gui/dialogs/addon/connect.hpp"
#include "gui/dialogs/addon/install_dependencies.hpp"
#include "gui/dialogs/addon/license_prompt.hpp"
#include "gui/dialogs/addon/manager.hpp"
#include "gui/dialogs/achievements_dialog.hpp"
#include "gui/dialogs/attack_predictions.hpp"
#include "gui/dialogs/campaign_difficulty.hpp"
#include "gui/dialogs/campaign_selection.hpp"
#include "gui/dialogs/chat_log.hpp"
#include "gui/dialogs/core_selection.hpp"
#include "gui/dialogs/debug_clock.hpp"
#include "gui/dialogs/depcheck_confirm_change.hpp"
#include "gui/dialogs/depcheck_select_new.hpp"
#include "gui/dialogs/edit_label.hpp"
#include "gui/dialogs/edit_text.hpp"
#include "gui/dialogs/editor/choose_addon.hpp"
#include "gui/dialogs/editor/custom_tod.hpp"
#include "gui/dialogs/editor/edit_label.hpp"
#include "gui/dialogs/editor/edit_pbl.hpp"
#include "gui/dialogs/editor/edit_pbl_translation.hpp"
#include "gui/dialogs/editor/edit_scenario.hpp"
#include "gui/dialogs/editor/edit_side.hpp"
#include "gui/dialogs/editor/edit_unit.hpp"
#include "gui/dialogs/editor/generate_map.hpp"
#include "gui/dialogs/editor/generator_settings.hpp"
#include "gui/dialogs/editor/new_map.hpp"
#include "gui/dialogs/editor/resize_map.hpp"
#include "gui/dialogs/editor/tod_new_schedule.hpp"
#include "gui/dialogs/end_credits.hpp"
#include "gui/dialogs/file_dialog.hpp"
#include "gui/dialogs/folder_create.hpp"
#include "gui/dialogs/formula_debugger.hpp"
#include "gui/dialogs/game_cache_options.hpp"
#include "gui/dialogs/game_delete.hpp"
#include "gui/dialogs/game_load.hpp"
#include "gui/dialogs/game_save.hpp"
#include "gui/dialogs/game_stats.hpp"
#include "gui/dialogs/game_version_dialog.hpp"
#include "gui/dialogs/gamestate_inspector.hpp"
#include "gui/dialogs/gui_test_dialog.hpp"
#include "gui/dialogs/help_browser.hpp"
#include "gui/dialogs/hotkey_bind.hpp"
#include "gui/dialogs/label_settings.hpp"
#include "gui/dialogs/language_selection.hpp"
#include "gui/dialogs/loading_screen.hpp"
#include "gui/dialogs/log_settings.hpp"
#include "gui/dialogs/lua_interpreter.hpp"
#include "gui/dialogs/message.hpp"
#include "gui/dialogs/migrate_version_selection.hpp"
#include "gui/dialogs/multiplayer/faction_select.hpp"
#include "gui/dialogs/multiplayer/lobby.hpp"
#include "gui/dialogs/multiplayer/mp_alerts_options.hpp"
#include "gui/dialogs/multiplayer/mp_change_control.hpp"
#include "gui/dialogs/multiplayer/mp_connect.hpp"
#include "gui/dialogs/multiplayer/mp_create_game.hpp"
#include "gui/dialogs/multiplayer/mp_join_game.hpp"
#include "gui/dialogs/multiplayer/mp_join_game_password_prompt.hpp"
#include "gui/dialogs/multiplayer/mp_login.hpp"
#include "gui/dialogs/multiplayer/match_history.hpp"
#include "gui/dialogs/multiplayer/mp_method_selection.hpp"
#include "gui/dialogs/multiplayer/mp_report.hpp"
#include "gui/dialogs/multiplayer/mp_staging.hpp"
#include "gui/dialogs/multiplayer/player_info.hpp"
#include "gui/dialogs/outro.hpp"
#include "gui/dialogs/prompt.hpp"
#include "gui/dialogs/screenshot_notification.hpp"
#include "gui/dialogs/select_orb_colors.hpp"
#include "gui/dialogs/simple_item_selector.hpp"
#include "gui/dialogs/sp_options_configure.hpp"
#include "gui/dialogs/statistics_dialog.hpp"
#include "gui/dialogs/story_viewer.hpp"
#include "gui/dialogs/surrender_quit.hpp"
#include "gui/dialogs/terrain_layers.hpp"
#include "gui/dialogs/theme_list.hpp"
#include "gui/dialogs/title_screen.hpp"
#include "gui/dialogs/tooltip.hpp"
#include "gui/dialogs/transient_message.hpp"
#include "gui/dialogs/unit_advance.hpp"
#include "gui/dialogs/unit_attack.hpp"
#include "gui/dialogs/unit_create.hpp"
#include "gui/dialogs/unit_list.hpp"
#include "gui/dialogs/unit_recall.hpp"
#include "gui/dialogs/unit_recruit.hpp"
#include "gui/dialogs/wml_error.hpp"
#include "gui/dialogs/wml_message.hpp"
#include "gui/widgets/settings.hpp"
#include "gui/widgets/window.hpp"
#include "language.hpp"
#include "map/map.hpp"
#include "replay.hpp"
#include "save_index.hpp"
#include "saved_game.hpp"
#include "serialization/string_utils.hpp"
#include "terrain/type_data.hpp"
#include "tests/utils/fake_display.hpp"
#include "utils/general.hpp"
#include "wesnothd_connection.hpp"
#include "wml_exception.hpp"
#include <boost/test/unit_test.hpp>
#include <functional>
#include <memory>
Go to the source code of this file.
Classes | |
struct | test_gui2_fixture |
Namespaces | |
gui2 | |
Generic file dialog. | |
gui2::dialogs | |
Macros | |
#define | GETTEXT_DOMAIN "wesnoth-lib" |
Functions | |
std::string | gui2::dialogs::get_modal_dialog_id (const modal_dialog &dialog) |
std::string | gui2::dialogs::get_modeless_dialog_id (const modeless_dialog &dialog) |
BOOST_AUTO_TEST_CASE (modal_dialog_test_addon_auth) | |
BOOST_AUTO_TEST_CASE (modal_dialog_test_addon_connect) | |
BOOST_AUTO_TEST_CASE (modal_dialog_test_addon_license_prompt) | |
BOOST_AUTO_TEST_CASE (modal_dialog_test_campaign_difficulty) | |
BOOST_AUTO_TEST_CASE (modal_dialog_test_chat_log) | |
BOOST_AUTO_TEST_CASE (modal_dialog_test_editor_choose_addon) | |
BOOST_AUTO_TEST_CASE (modal_dialog_test_prompt) | |
BOOST_AUTO_TEST_CASE (modal_dialog_test_core_selection) | |
BOOST_AUTO_TEST_CASE (modal_dialog_test_custom_tod) | |
BOOST_AUTO_TEST_CASE (modal_dialog_test_depcheck_confirm_change) | |
BOOST_AUTO_TEST_CASE (modal_dialog_test_depcheck_select_new) | |
BOOST_AUTO_TEST_CASE (modal_dialog_test_edit_label) | |
BOOST_AUTO_TEST_CASE (modal_dialog_test_editor_edit_pbl) | |
BOOST_AUTO_TEST_CASE (modal_dialog_test_editor_edit_pbl_translation) | |
BOOST_AUTO_TEST_CASE (modal_dialog_test_edit_text) | |
BOOST_AUTO_TEST_CASE (modal_dialog_test_editor_edit_label) | |
BOOST_AUTO_TEST_CASE (modal_dialog_test_editor_edit_side) | |
BOOST_AUTO_TEST_CASE (modal_dialog_test_editor_edit_scenario) | |
BOOST_AUTO_TEST_CASE (modal_dialog_test_editor_generate_map) | |
BOOST_AUTO_TEST_CASE (modal_dialog_test_editor_new_map) | |
BOOST_AUTO_TEST_CASE (modal_dialog_test_editor_resize_map) | |
BOOST_AUTO_TEST_CASE (modal_dialog_test_faction_select) | |
BOOST_AUTO_TEST_CASE (modal_dialog_test_file_dialog) | |
BOOST_AUTO_TEST_CASE (modal_dialog_test_folder_create) | |
BOOST_AUTO_TEST_CASE (modal_dialog_test_formula_debugger) | |
BOOST_AUTO_TEST_CASE (modal_dialog_test_game_cache_options) | |
BOOST_AUTO_TEST_CASE (modal_dialog_test_game_delete) | |
BOOST_AUTO_TEST_CASE (modal_dialog_test_game_version) | |
BOOST_AUTO_TEST_CASE (modal_dialog_test_game_save) | |
BOOST_AUTO_TEST_CASE (modal_dialog_test_game_save_message) | |
BOOST_AUTO_TEST_CASE (modal_dialog_test_game_save_oos) | |
BOOST_AUTO_TEST_CASE (modal_dialog_test_generator_settings) | |
BOOST_AUTO_TEST_CASE (modal_dialog_test_gui_test_dialog) | |
BOOST_AUTO_TEST_CASE (modal_dialog_test_hotkey_bind) | |
BOOST_AUTO_TEST_CASE (modal_dialog_test_install_dependencies) | |
BOOST_AUTO_TEST_CASE (modal_dialog_test_language_selection) | |
BOOST_AUTO_TEST_CASE (modal_dialog_test_mp_lobby) | |
BOOST_AUTO_TEST_CASE (modal_dialog_test_lobby_player_info) | |
BOOST_AUTO_TEST_CASE (modal_dialog_test_log_settings) | |
BOOST_AUTO_TEST_CASE (modal_dialog_test_message) | |
BOOST_AUTO_TEST_CASE (modal_dialog_test_mp_alerts_options) | |
BOOST_AUTO_TEST_CASE (modal_dialog_test_mp_connect) | |
BOOST_AUTO_TEST_CASE (modal_dialog_test_mp_join_game_password_prompt) | |
BOOST_AUTO_TEST_CASE (modal_dialog_test_mp_login) | |
BOOST_AUTO_TEST_CASE (modal_dialog_test_mp_method_selection) | |
BOOST_AUTO_TEST_CASE (modal_dialog_test_mp_report) | |
BOOST_AUTO_TEST_CASE (modal_dialog_test_simple_item_selector) | |
BOOST_AUTO_TEST_CASE (modal_dialog_test_screenshot_notification) | |
BOOST_AUTO_TEST_CASE (modal_dialog_test_select_orb_colors) | |
BOOST_AUTO_TEST_CASE (modal_dialog_test_statistics_dialog) | |
BOOST_AUTO_TEST_CASE (modal_dialog_test_surrender_quit) | |
BOOST_AUTO_TEST_CASE (modal_dialog_test_theme_list) | |
BOOST_AUTO_TEST_CASE (modal_dialog_test_transient_message) | |
BOOST_AUTO_TEST_CASE (modal_dialog_test_unit_create) | |
BOOST_AUTO_TEST_CASE (modal_dialog_test_wml_error) | |
BOOST_AUTO_TEST_CASE (modal_dialog_test_wml_message_left) | |
BOOST_AUTO_TEST_CASE (modal_dialog_test_wml_message_right) | |
BOOST_AUTO_TEST_CASE (modal_dialog_test_wml_message_double) | |
BOOST_AUTO_TEST_CASE (modal_dialog_test_achievements_dialog) | |
BOOST_AUTO_TEST_CASE (modal_dialog_test_mp_match_history_dialog) | |
BOOST_AUTO_TEST_CASE (modal_dialog_test_migrate_version_selection_dialog) | |
BOOST_AUTO_TEST_CASE (modeless_dialog_test_debug_clock) | |
BOOST_AUTO_TEST_CASE (tooltip_test_tooltip_large) | |
BOOST_AUTO_TEST_CASE (tooltip_test_tooltip) | |
BOOST_AUTO_TEST_CASE (modal_dialog_test_tod_new_schedule) | |
BOOST_AUTO_TEST_CASE (modal_dialog_test_editor_edit_unit) | |
BOOST_AUTO_TEST_CASE (test_last) | |
BOOST_AUTO_TEST_CASE (test_make_test_fake) | |
#define GETTEXT_DOMAIN "wesnoth-lib" |
Definition at line 17 of file test_gui2.cpp.
BOOST_AUTO_TEST_CASE | ( | modal_dialog_test_achievements_dialog | ) |
Definition at line 628 of file test_gui2.cpp.
BOOST_AUTO_TEST_CASE | ( | modal_dialog_test_addon_auth | ) |
Definition at line 396 of file test_gui2.cpp.
BOOST_AUTO_TEST_CASE | ( | modal_dialog_test_addon_connect | ) |
Definition at line 400 of file test_gui2.cpp.
BOOST_AUTO_TEST_CASE | ( | modal_dialog_test_addon_license_prompt | ) |
Definition at line 404 of file test_gui2.cpp.
BOOST_AUTO_TEST_CASE | ( | modal_dialog_test_campaign_difficulty | ) |
Definition at line 408 of file test_gui2.cpp.
BOOST_AUTO_TEST_CASE | ( | modal_dialog_test_chat_log | ) |
Definition at line 412 of file test_gui2.cpp.
BOOST_AUTO_TEST_CASE | ( | modal_dialog_test_core_selection | ) |
Definition at line 424 of file test_gui2.cpp.
BOOST_AUTO_TEST_CASE | ( | modal_dialog_test_custom_tod | ) |
Definition at line 428 of file test_gui2.cpp.
BOOST_AUTO_TEST_CASE | ( | modal_dialog_test_depcheck_confirm_change | ) |
Definition at line 432 of file test_gui2.cpp.
BOOST_AUTO_TEST_CASE | ( | modal_dialog_test_depcheck_select_new | ) |
Definition at line 436 of file test_gui2.cpp.
BOOST_AUTO_TEST_CASE | ( | modal_dialog_test_edit_label | ) |
Definition at line 440 of file test_gui2.cpp.
BOOST_AUTO_TEST_CASE | ( | modal_dialog_test_edit_text | ) |
Definition at line 452 of file test_gui2.cpp.
BOOST_AUTO_TEST_CASE | ( | modal_dialog_test_editor_choose_addon | ) |
Definition at line 416 of file test_gui2.cpp.
BOOST_AUTO_TEST_CASE | ( | modal_dialog_test_editor_edit_label | ) |
Definition at line 456 of file test_gui2.cpp.
BOOST_AUTO_TEST_CASE | ( | modal_dialog_test_editor_edit_pbl | ) |
Definition at line 444 of file test_gui2.cpp.
BOOST_AUTO_TEST_CASE | ( | modal_dialog_test_editor_edit_pbl_translation | ) |
Definition at line 448 of file test_gui2.cpp.
BOOST_AUTO_TEST_CASE | ( | modal_dialog_test_editor_edit_scenario | ) |
Definition at line 464 of file test_gui2.cpp.
BOOST_AUTO_TEST_CASE | ( | modal_dialog_test_editor_edit_side | ) |
Definition at line 460 of file test_gui2.cpp.
BOOST_AUTO_TEST_CASE | ( | modal_dialog_test_editor_edit_unit | ) |
Definition at line 657 of file test_gui2.cpp.
BOOST_AUTO_TEST_CASE | ( | modal_dialog_test_editor_generate_map | ) |
Definition at line 468 of file test_gui2.cpp.
BOOST_AUTO_TEST_CASE | ( | modal_dialog_test_editor_new_map | ) |
Definition at line 472 of file test_gui2.cpp.
BOOST_AUTO_TEST_CASE | ( | modal_dialog_test_editor_resize_map | ) |
Definition at line 476 of file test_gui2.cpp.
BOOST_AUTO_TEST_CASE | ( | modal_dialog_test_faction_select | ) |
Definition at line 480 of file test_gui2.cpp.
BOOST_AUTO_TEST_CASE | ( | modal_dialog_test_file_dialog | ) |
Definition at line 484 of file test_gui2.cpp.
BOOST_AUTO_TEST_CASE | ( | modal_dialog_test_folder_create | ) |
Definition at line 488 of file test_gui2.cpp.
BOOST_AUTO_TEST_CASE | ( | modal_dialog_test_formula_debugger | ) |
Definition at line 492 of file test_gui2.cpp.
BOOST_AUTO_TEST_CASE | ( | modal_dialog_test_game_cache_options | ) |
Definition at line 496 of file test_gui2.cpp.
BOOST_AUTO_TEST_CASE | ( | modal_dialog_test_game_delete | ) |
Definition at line 500 of file test_gui2.cpp.
BOOST_AUTO_TEST_CASE | ( | modal_dialog_test_game_save | ) |
Definition at line 508 of file test_gui2.cpp.
BOOST_AUTO_TEST_CASE | ( | modal_dialog_test_game_save_message | ) |
Definition at line 512 of file test_gui2.cpp.
BOOST_AUTO_TEST_CASE | ( | modal_dialog_test_game_save_oos | ) |
Definition at line 516 of file test_gui2.cpp.
BOOST_AUTO_TEST_CASE | ( | modal_dialog_test_game_version | ) |
Definition at line 504 of file test_gui2.cpp.
BOOST_AUTO_TEST_CASE | ( | modal_dialog_test_generator_settings | ) |
Definition at line 520 of file test_gui2.cpp.
BOOST_AUTO_TEST_CASE | ( | modal_dialog_test_gui_test_dialog | ) |
Definition at line 524 of file test_gui2.cpp.
BOOST_AUTO_TEST_CASE | ( | modal_dialog_test_hotkey_bind | ) |
Definition at line 528 of file test_gui2.cpp.
BOOST_AUTO_TEST_CASE | ( | modal_dialog_test_install_dependencies | ) |
Definition at line 532 of file test_gui2.cpp.
BOOST_AUTO_TEST_CASE | ( | modal_dialog_test_language_selection | ) |
Definition at line 536 of file test_gui2.cpp.
BOOST_AUTO_TEST_CASE | ( | modal_dialog_test_lobby_player_info | ) |
Definition at line 544 of file test_gui2.cpp.
BOOST_AUTO_TEST_CASE | ( | modal_dialog_test_log_settings | ) |
Definition at line 548 of file test_gui2.cpp.
BOOST_AUTO_TEST_CASE | ( | modal_dialog_test_message | ) |
Definition at line 552 of file test_gui2.cpp.
BOOST_AUTO_TEST_CASE | ( | modal_dialog_test_migrate_version_selection_dialog | ) |
Definition at line 636 of file test_gui2.cpp.
BOOST_AUTO_TEST_CASE | ( | modal_dialog_test_mp_alerts_options | ) |
Definition at line 556 of file test_gui2.cpp.
BOOST_AUTO_TEST_CASE | ( | modal_dialog_test_mp_connect | ) |
Definition at line 560 of file test_gui2.cpp.
BOOST_AUTO_TEST_CASE | ( | modal_dialog_test_mp_join_game_password_prompt | ) |
Definition at line 564 of file test_gui2.cpp.
BOOST_AUTO_TEST_CASE | ( | modal_dialog_test_mp_lobby | ) |
Definition at line 540 of file test_gui2.cpp.
BOOST_AUTO_TEST_CASE | ( | modal_dialog_test_mp_login | ) |
Definition at line 568 of file test_gui2.cpp.
BOOST_AUTO_TEST_CASE | ( | modal_dialog_test_mp_match_history_dialog | ) |
Definition at line 632 of file test_gui2.cpp.
BOOST_AUTO_TEST_CASE | ( | modal_dialog_test_mp_method_selection | ) |
Definition at line 572 of file test_gui2.cpp.
BOOST_AUTO_TEST_CASE | ( | modal_dialog_test_mp_report | ) |
Definition at line 576 of file test_gui2.cpp.
BOOST_AUTO_TEST_CASE | ( | modal_dialog_test_prompt | ) |
Definition at line 420 of file test_gui2.cpp.
BOOST_AUTO_TEST_CASE | ( | modal_dialog_test_screenshot_notification | ) |
Definition at line 584 of file test_gui2.cpp.
BOOST_AUTO_TEST_CASE | ( | modal_dialog_test_select_orb_colors | ) |
Definition at line 588 of file test_gui2.cpp.
BOOST_AUTO_TEST_CASE | ( | modal_dialog_test_simple_item_selector | ) |
Definition at line 580 of file test_gui2.cpp.
BOOST_AUTO_TEST_CASE | ( | modal_dialog_test_statistics_dialog | ) |
Definition at line 592 of file test_gui2.cpp.
BOOST_AUTO_TEST_CASE | ( | modal_dialog_test_surrender_quit | ) |
Definition at line 596 of file test_gui2.cpp.
BOOST_AUTO_TEST_CASE | ( | modal_dialog_test_theme_list | ) |
Definition at line 600 of file test_gui2.cpp.
BOOST_AUTO_TEST_CASE | ( | modal_dialog_test_tod_new_schedule | ) |
Definition at line 652 of file test_gui2.cpp.
BOOST_AUTO_TEST_CASE | ( | modal_dialog_test_transient_message | ) |
Definition at line 604 of file test_gui2.cpp.
BOOST_AUTO_TEST_CASE | ( | modal_dialog_test_unit_create | ) |
Definition at line 608 of file test_gui2.cpp.
BOOST_AUTO_TEST_CASE | ( | modal_dialog_test_wml_error | ) |
Definition at line 612 of file test_gui2.cpp.
BOOST_AUTO_TEST_CASE | ( | modal_dialog_test_wml_message_double | ) |
Definition at line 624 of file test_gui2.cpp.
BOOST_AUTO_TEST_CASE | ( | modal_dialog_test_wml_message_left | ) |
Definition at line 616 of file test_gui2.cpp.
BOOST_AUTO_TEST_CASE | ( | modal_dialog_test_wml_message_right | ) |
Definition at line 620 of file test_gui2.cpp.
BOOST_AUTO_TEST_CASE | ( | modeless_dialog_test_debug_clock | ) |
Definition at line 640 of file test_gui2.cpp.
BOOST_AUTO_TEST_CASE | ( | test_last | ) |
Definition at line 663 of file test_gui2.cpp.
References filesystem::delete_file(), PLAIN_LOG, filesystem::read_file(), gui2::registered_window_types(), utils::split(), and test_gui2_fixture::widgets_file.
BOOST_AUTO_TEST_CASE | ( | test_make_test_fake | ) |
Definition at line 734 of file test_gui2.cpp.
References _(), e, test_utils::get_fake_display(), utils::get_unknown_exception_type(), and gui2::dialogs::modal_dialog::show().
BOOST_AUTO_TEST_CASE | ( | tooltip_test_tooltip | ) |
Definition at line 648 of file test_gui2.cpp.
BOOST_AUTO_TEST_CASE | ( | tooltip_test_tooltip_large | ) |
Definition at line 644 of file test_gui2.cpp.