#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/addon_server_info.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/units_dialog.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_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_addon_server_info) | |
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 622 of file test_gui2.cpp.
BOOST_AUTO_TEST_CASE | ( | modal_dialog_test_addon_auth | ) |
Definition at line 394 of file test_gui2.cpp.
BOOST_AUTO_TEST_CASE | ( | modal_dialog_test_addon_connect | ) |
Definition at line 398 of file test_gui2.cpp.
BOOST_AUTO_TEST_CASE | ( | modal_dialog_test_addon_license_prompt | ) |
Definition at line 402 of file test_gui2.cpp.
BOOST_AUTO_TEST_CASE | ( | modal_dialog_test_addon_server_info | ) |
Definition at line 626 of file test_gui2.cpp.
BOOST_AUTO_TEST_CASE | ( | modal_dialog_test_campaign_difficulty | ) |
Definition at line 406 of file test_gui2.cpp.
BOOST_AUTO_TEST_CASE | ( | modal_dialog_test_chat_log | ) |
Definition at line 410 of file test_gui2.cpp.
BOOST_AUTO_TEST_CASE | ( | modal_dialog_test_core_selection | ) |
Definition at line 422 of file test_gui2.cpp.
BOOST_AUTO_TEST_CASE | ( | modal_dialog_test_custom_tod | ) |
Definition at line 426 of file test_gui2.cpp.
BOOST_AUTO_TEST_CASE | ( | modal_dialog_test_depcheck_confirm_change | ) |
Definition at line 430 of file test_gui2.cpp.
BOOST_AUTO_TEST_CASE | ( | modal_dialog_test_depcheck_select_new | ) |
Definition at line 434 of file test_gui2.cpp.
BOOST_AUTO_TEST_CASE | ( | modal_dialog_test_edit_label | ) |
Definition at line 438 of file test_gui2.cpp.
BOOST_AUTO_TEST_CASE | ( | modal_dialog_test_edit_text | ) |
Definition at line 450 of file test_gui2.cpp.
BOOST_AUTO_TEST_CASE | ( | modal_dialog_test_editor_choose_addon | ) |
Definition at line 414 of file test_gui2.cpp.
BOOST_AUTO_TEST_CASE | ( | modal_dialog_test_editor_edit_label | ) |
Definition at line 454 of file test_gui2.cpp.
BOOST_AUTO_TEST_CASE | ( | modal_dialog_test_editor_edit_pbl | ) |
Definition at line 442 of file test_gui2.cpp.
BOOST_AUTO_TEST_CASE | ( | modal_dialog_test_editor_edit_pbl_translation | ) |
Definition at line 446 of file test_gui2.cpp.
BOOST_AUTO_TEST_CASE | ( | modal_dialog_test_editor_edit_scenario | ) |
Definition at line 462 of file test_gui2.cpp.
BOOST_AUTO_TEST_CASE | ( | modal_dialog_test_editor_edit_side | ) |
Definition at line 458 of file test_gui2.cpp.
BOOST_AUTO_TEST_CASE | ( | modal_dialog_test_editor_edit_unit | ) |
Definition at line 655 of file test_gui2.cpp.
BOOST_AUTO_TEST_CASE | ( | modal_dialog_test_editor_generate_map | ) |
Definition at line 466 of file test_gui2.cpp.
BOOST_AUTO_TEST_CASE | ( | modal_dialog_test_editor_new_map | ) |
Definition at line 470 of file test_gui2.cpp.
BOOST_AUTO_TEST_CASE | ( | modal_dialog_test_editor_resize_map | ) |
Definition at line 474 of file test_gui2.cpp.
BOOST_AUTO_TEST_CASE | ( | modal_dialog_test_faction_select | ) |
Definition at line 478 of file test_gui2.cpp.
BOOST_AUTO_TEST_CASE | ( | modal_dialog_test_file_dialog | ) |
Definition at line 482 of file test_gui2.cpp.
BOOST_AUTO_TEST_CASE | ( | modal_dialog_test_folder_create | ) |
Definition at line 486 of file test_gui2.cpp.
BOOST_AUTO_TEST_CASE | ( | modal_dialog_test_formula_debugger | ) |
Definition at line 490 of file test_gui2.cpp.
BOOST_AUTO_TEST_CASE | ( | modal_dialog_test_game_cache_options | ) |
Definition at line 494 of file test_gui2.cpp.
BOOST_AUTO_TEST_CASE | ( | modal_dialog_test_game_delete | ) |
Definition at line 498 of file test_gui2.cpp.
BOOST_AUTO_TEST_CASE | ( | modal_dialog_test_game_save | ) |
Definition at line 506 of file test_gui2.cpp.
BOOST_AUTO_TEST_CASE | ( | modal_dialog_test_game_save_message | ) |
Definition at line 510 of file test_gui2.cpp.
BOOST_AUTO_TEST_CASE | ( | modal_dialog_test_game_save_oos | ) |
Definition at line 514 of file test_gui2.cpp.
BOOST_AUTO_TEST_CASE | ( | modal_dialog_test_game_version | ) |
Definition at line 502 of file test_gui2.cpp.
BOOST_AUTO_TEST_CASE | ( | modal_dialog_test_generator_settings | ) |
Definition at line 518 of file test_gui2.cpp.
BOOST_AUTO_TEST_CASE | ( | modal_dialog_test_gui_test_dialog | ) |
Definition at line 522 of file test_gui2.cpp.
BOOST_AUTO_TEST_CASE | ( | modal_dialog_test_hotkey_bind | ) |
Definition at line 526 of file test_gui2.cpp.
BOOST_AUTO_TEST_CASE | ( | modal_dialog_test_install_dependencies | ) |
Definition at line 530 of file test_gui2.cpp.
BOOST_AUTO_TEST_CASE | ( | modal_dialog_test_language_selection | ) |
Definition at line 534 of file test_gui2.cpp.
BOOST_AUTO_TEST_CASE | ( | modal_dialog_test_lobby_player_info | ) |
Definition at line 542 of file test_gui2.cpp.
BOOST_AUTO_TEST_CASE | ( | modal_dialog_test_log_settings | ) |
Definition at line 546 of file test_gui2.cpp.
BOOST_AUTO_TEST_CASE | ( | modal_dialog_test_message | ) |
Definition at line 550 of file test_gui2.cpp.
BOOST_AUTO_TEST_CASE | ( | modal_dialog_test_migrate_version_selection_dialog | ) |
Definition at line 634 of file test_gui2.cpp.
BOOST_AUTO_TEST_CASE | ( | modal_dialog_test_mp_alerts_options | ) |
Definition at line 554 of file test_gui2.cpp.
BOOST_AUTO_TEST_CASE | ( | modal_dialog_test_mp_connect | ) |
Definition at line 558 of file test_gui2.cpp.
BOOST_AUTO_TEST_CASE | ( | modal_dialog_test_mp_join_game_password_prompt | ) |
Definition at line 562 of file test_gui2.cpp.
BOOST_AUTO_TEST_CASE | ( | modal_dialog_test_mp_lobby | ) |
Definition at line 538 of file test_gui2.cpp.
BOOST_AUTO_TEST_CASE | ( | modal_dialog_test_mp_login | ) |
Definition at line 566 of file test_gui2.cpp.
BOOST_AUTO_TEST_CASE | ( | modal_dialog_test_mp_match_history_dialog | ) |
Definition at line 630 of file test_gui2.cpp.
BOOST_AUTO_TEST_CASE | ( | modal_dialog_test_mp_method_selection | ) |
Definition at line 570 of file test_gui2.cpp.
BOOST_AUTO_TEST_CASE | ( | modal_dialog_test_mp_report | ) |
Definition at line 574 of file test_gui2.cpp.
BOOST_AUTO_TEST_CASE | ( | modal_dialog_test_prompt | ) |
Definition at line 418 of file test_gui2.cpp.
BOOST_AUTO_TEST_CASE | ( | modal_dialog_test_screenshot_notification | ) |
Definition at line 582 of file test_gui2.cpp.
BOOST_AUTO_TEST_CASE | ( | modal_dialog_test_select_orb_colors | ) |
Definition at line 586 of file test_gui2.cpp.
BOOST_AUTO_TEST_CASE | ( | modal_dialog_test_simple_item_selector | ) |
Definition at line 578 of file test_gui2.cpp.
BOOST_AUTO_TEST_CASE | ( | modal_dialog_test_statistics_dialog | ) |
Definition at line 590 of file test_gui2.cpp.
BOOST_AUTO_TEST_CASE | ( | modal_dialog_test_surrender_quit | ) |
Definition at line 594 of file test_gui2.cpp.
BOOST_AUTO_TEST_CASE | ( | modal_dialog_test_theme_list | ) |
Definition at line 598 of file test_gui2.cpp.
BOOST_AUTO_TEST_CASE | ( | modal_dialog_test_tod_new_schedule | ) |
Definition at line 650 of file test_gui2.cpp.
BOOST_AUTO_TEST_CASE | ( | modal_dialog_test_transient_message | ) |
Definition at line 602 of file test_gui2.cpp.
BOOST_AUTO_TEST_CASE | ( | modal_dialog_test_wml_error | ) |
Definition at line 606 of file test_gui2.cpp.
BOOST_AUTO_TEST_CASE | ( | modal_dialog_test_wml_message_double | ) |
Definition at line 618 of file test_gui2.cpp.
BOOST_AUTO_TEST_CASE | ( | modal_dialog_test_wml_message_left | ) |
Definition at line 610 of file test_gui2.cpp.
BOOST_AUTO_TEST_CASE | ( | modal_dialog_test_wml_message_right | ) |
Definition at line 614 of file test_gui2.cpp.
BOOST_AUTO_TEST_CASE | ( | modeless_dialog_test_debug_clock | ) |
Definition at line 638 of file test_gui2.cpp.
BOOST_AUTO_TEST_CASE | ( | test_last | ) |
Definition at line 661 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 730 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 646 of file test_gui2.cpp.
BOOST_AUTO_TEST_CASE | ( | tooltip_test_tooltip_large | ) |
Definition at line 642 of file test_gui2.cpp.