The Battle for Wesnoth  1.17.12+dev
Classes | Namespaces | Macros | Functions
test_gui2.cpp File Reference
#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/custom_tod.hpp"
#include "gui/dialogs/editor/edit_label.hpp"
#include "gui/dialogs/editor/edit_scenario.hpp"
#include "gui/dialogs/editor/edit_side.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/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/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/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/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/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>
Include dependency graph for test_gui2.cpp:

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_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_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_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 (modeless_dialog_test_debug_clock)
 
 BOOST_AUTO_TEST_CASE (tooltip_test_tooltip_large)
 
 BOOST_AUTO_TEST_CASE (tooltip_test_tooltip)
 
 BOOST_AUTO_TEST_CASE (test_last)
 
 BOOST_AUTO_TEST_CASE (test_make_test_fake)
 

Macro Definition Documentation

◆ GETTEXT_DOMAIN

#define GETTEXT_DOMAIN   "wesnoth-lib"

Definition at line 17 of file test_gui2.cpp.

Function Documentation

◆ BOOST_AUTO_TEST_CASE() [1/59]

BOOST_AUTO_TEST_CASE ( modal_dialog_test_addon_auth  )

Definition at line 387 of file test_gui2.cpp.

◆ BOOST_AUTO_TEST_CASE() [2/59]

BOOST_AUTO_TEST_CASE ( modal_dialog_test_addon_connect  )

Definition at line 391 of file test_gui2.cpp.

◆ BOOST_AUTO_TEST_CASE() [3/59]

BOOST_AUTO_TEST_CASE ( modal_dialog_test_addon_license_prompt  )

Definition at line 395 of file test_gui2.cpp.

◆ BOOST_AUTO_TEST_CASE() [4/59]

BOOST_AUTO_TEST_CASE ( modal_dialog_test_campaign_difficulty  )

Definition at line 399 of file test_gui2.cpp.

◆ BOOST_AUTO_TEST_CASE() [5/59]

BOOST_AUTO_TEST_CASE ( modal_dialog_test_chat_log  )

Definition at line 403 of file test_gui2.cpp.

◆ BOOST_AUTO_TEST_CASE() [6/59]

BOOST_AUTO_TEST_CASE ( modal_dialog_test_core_selection  )

Definition at line 407 of file test_gui2.cpp.

◆ BOOST_AUTO_TEST_CASE() [7/59]

BOOST_AUTO_TEST_CASE ( modal_dialog_test_custom_tod  )

Definition at line 411 of file test_gui2.cpp.

◆ BOOST_AUTO_TEST_CASE() [8/59]

BOOST_AUTO_TEST_CASE ( modal_dialog_test_depcheck_confirm_change  )

Definition at line 415 of file test_gui2.cpp.

◆ BOOST_AUTO_TEST_CASE() [9/59]

BOOST_AUTO_TEST_CASE ( modal_dialog_test_depcheck_select_new  )

Definition at line 419 of file test_gui2.cpp.

◆ BOOST_AUTO_TEST_CASE() [10/59]

BOOST_AUTO_TEST_CASE ( modal_dialog_test_edit_label  )

Definition at line 423 of file test_gui2.cpp.

◆ BOOST_AUTO_TEST_CASE() [11/59]

BOOST_AUTO_TEST_CASE ( modal_dialog_test_edit_text  )

Definition at line 427 of file test_gui2.cpp.

◆ BOOST_AUTO_TEST_CASE() [12/59]

BOOST_AUTO_TEST_CASE ( modal_dialog_test_editor_edit_label  )

Definition at line 431 of file test_gui2.cpp.

◆ BOOST_AUTO_TEST_CASE() [13/59]

BOOST_AUTO_TEST_CASE ( modal_dialog_test_editor_edit_side  )

Definition at line 435 of file test_gui2.cpp.

◆ BOOST_AUTO_TEST_CASE() [14/59]

BOOST_AUTO_TEST_CASE ( modal_dialog_test_editor_edit_scenario  )

Definition at line 439 of file test_gui2.cpp.

◆ BOOST_AUTO_TEST_CASE() [15/59]

BOOST_AUTO_TEST_CASE ( modal_dialog_test_editor_generate_map  )

Definition at line 443 of file test_gui2.cpp.

◆ BOOST_AUTO_TEST_CASE() [16/59]

BOOST_AUTO_TEST_CASE ( modal_dialog_test_editor_new_map  )

Definition at line 447 of file test_gui2.cpp.

◆ BOOST_AUTO_TEST_CASE() [17/59]

BOOST_AUTO_TEST_CASE ( modal_dialog_test_editor_resize_map  )

Definition at line 451 of file test_gui2.cpp.

◆ BOOST_AUTO_TEST_CASE() [18/59]

BOOST_AUTO_TEST_CASE ( modal_dialog_test_faction_select  )

Definition at line 455 of file test_gui2.cpp.

◆ BOOST_AUTO_TEST_CASE() [19/59]

BOOST_AUTO_TEST_CASE ( modal_dialog_test_file_dialog  )

Definition at line 459 of file test_gui2.cpp.

◆ BOOST_AUTO_TEST_CASE() [20/59]

BOOST_AUTO_TEST_CASE ( modal_dialog_test_folder_create  )

Definition at line 463 of file test_gui2.cpp.

◆ BOOST_AUTO_TEST_CASE() [21/59]

BOOST_AUTO_TEST_CASE ( modal_dialog_test_formula_debugger  )

Definition at line 467 of file test_gui2.cpp.

◆ BOOST_AUTO_TEST_CASE() [22/59]

BOOST_AUTO_TEST_CASE ( modal_dialog_test_game_cache_options  )

Definition at line 471 of file test_gui2.cpp.

◆ BOOST_AUTO_TEST_CASE() [23/59]

BOOST_AUTO_TEST_CASE ( modal_dialog_test_game_delete  )

Definition at line 475 of file test_gui2.cpp.

◆ BOOST_AUTO_TEST_CASE() [24/59]

BOOST_AUTO_TEST_CASE ( modal_dialog_test_game_version  )

Definition at line 479 of file test_gui2.cpp.

◆ BOOST_AUTO_TEST_CASE() [25/59]

BOOST_AUTO_TEST_CASE ( modal_dialog_test_game_save  )

Definition at line 483 of file test_gui2.cpp.

◆ BOOST_AUTO_TEST_CASE() [26/59]

BOOST_AUTO_TEST_CASE ( modal_dialog_test_game_save_message  )

Definition at line 487 of file test_gui2.cpp.

◆ BOOST_AUTO_TEST_CASE() [27/59]

BOOST_AUTO_TEST_CASE ( modal_dialog_test_game_save_oos  )

Definition at line 491 of file test_gui2.cpp.

◆ BOOST_AUTO_TEST_CASE() [28/59]

BOOST_AUTO_TEST_CASE ( modal_dialog_test_generator_settings  )

Definition at line 495 of file test_gui2.cpp.

◆ BOOST_AUTO_TEST_CASE() [29/59]

BOOST_AUTO_TEST_CASE ( modal_dialog_test_hotkey_bind  )

Definition at line 499 of file test_gui2.cpp.

◆ BOOST_AUTO_TEST_CASE() [30/59]

BOOST_AUTO_TEST_CASE ( modal_dialog_test_install_dependencies  )

Definition at line 503 of file test_gui2.cpp.

◆ BOOST_AUTO_TEST_CASE() [31/59]

BOOST_AUTO_TEST_CASE ( modal_dialog_test_language_selection  )

Definition at line 507 of file test_gui2.cpp.

◆ BOOST_AUTO_TEST_CASE() [32/59]

BOOST_AUTO_TEST_CASE ( modal_dialog_test_mp_lobby  )

Definition at line 511 of file test_gui2.cpp.

◆ BOOST_AUTO_TEST_CASE() [33/59]

BOOST_AUTO_TEST_CASE ( modal_dialog_test_lobby_player_info  )

Definition at line 515 of file test_gui2.cpp.

◆ BOOST_AUTO_TEST_CASE() [34/59]

BOOST_AUTO_TEST_CASE ( modal_dialog_test_log_settings  )

Definition at line 519 of file test_gui2.cpp.

◆ BOOST_AUTO_TEST_CASE() [35/59]

BOOST_AUTO_TEST_CASE ( modal_dialog_test_message  )

Definition at line 523 of file test_gui2.cpp.

◆ BOOST_AUTO_TEST_CASE() [36/59]

BOOST_AUTO_TEST_CASE ( modal_dialog_test_mp_alerts_options  )

Definition at line 527 of file test_gui2.cpp.

◆ BOOST_AUTO_TEST_CASE() [37/59]

BOOST_AUTO_TEST_CASE ( modal_dialog_test_mp_connect  )

Definition at line 531 of file test_gui2.cpp.

◆ BOOST_AUTO_TEST_CASE() [38/59]

BOOST_AUTO_TEST_CASE ( modal_dialog_test_mp_join_game_password_prompt  )

Definition at line 535 of file test_gui2.cpp.

◆ BOOST_AUTO_TEST_CASE() [39/59]

BOOST_AUTO_TEST_CASE ( modal_dialog_test_mp_login  )

Definition at line 539 of file test_gui2.cpp.

◆ BOOST_AUTO_TEST_CASE() [40/59]

BOOST_AUTO_TEST_CASE ( modal_dialog_test_mp_method_selection  )

Definition at line 543 of file test_gui2.cpp.

◆ BOOST_AUTO_TEST_CASE() [41/59]

BOOST_AUTO_TEST_CASE ( modal_dialog_test_mp_report  )

Definition at line 547 of file test_gui2.cpp.

◆ BOOST_AUTO_TEST_CASE() [42/59]

BOOST_AUTO_TEST_CASE ( modal_dialog_test_simple_item_selector  )

Definition at line 551 of file test_gui2.cpp.

◆ BOOST_AUTO_TEST_CASE() [43/59]

BOOST_AUTO_TEST_CASE ( modal_dialog_test_screenshot_notification  )

Definition at line 555 of file test_gui2.cpp.

◆ BOOST_AUTO_TEST_CASE() [44/59]

BOOST_AUTO_TEST_CASE ( modal_dialog_test_select_orb_colors  )

Definition at line 559 of file test_gui2.cpp.

◆ BOOST_AUTO_TEST_CASE() [45/59]

BOOST_AUTO_TEST_CASE ( modal_dialog_test_statistics_dialog  )

Definition at line 563 of file test_gui2.cpp.

◆ BOOST_AUTO_TEST_CASE() [46/59]

BOOST_AUTO_TEST_CASE ( modal_dialog_test_surrender_quit  )

Definition at line 567 of file test_gui2.cpp.

◆ BOOST_AUTO_TEST_CASE() [47/59]

BOOST_AUTO_TEST_CASE ( modal_dialog_test_theme_list  )

Definition at line 571 of file test_gui2.cpp.

◆ BOOST_AUTO_TEST_CASE() [48/59]

BOOST_AUTO_TEST_CASE ( modal_dialog_test_transient_message  )

Definition at line 575 of file test_gui2.cpp.

◆ BOOST_AUTO_TEST_CASE() [49/59]

BOOST_AUTO_TEST_CASE ( modal_dialog_test_unit_create  )

Definition at line 579 of file test_gui2.cpp.

◆ BOOST_AUTO_TEST_CASE() [50/59]

BOOST_AUTO_TEST_CASE ( modal_dialog_test_wml_error  )

Definition at line 583 of file test_gui2.cpp.

◆ BOOST_AUTO_TEST_CASE() [51/59]

BOOST_AUTO_TEST_CASE ( modal_dialog_test_wml_message_left  )

Definition at line 587 of file test_gui2.cpp.

◆ BOOST_AUTO_TEST_CASE() [52/59]

BOOST_AUTO_TEST_CASE ( modal_dialog_test_wml_message_right  )

Definition at line 591 of file test_gui2.cpp.

◆ BOOST_AUTO_TEST_CASE() [53/59]

BOOST_AUTO_TEST_CASE ( modal_dialog_test_wml_message_double  )

Definition at line 595 of file test_gui2.cpp.

◆ BOOST_AUTO_TEST_CASE() [54/59]

BOOST_AUTO_TEST_CASE ( modal_dialog_test_achievements_dialog  )

Definition at line 599 of file test_gui2.cpp.

◆ BOOST_AUTO_TEST_CASE() [55/59]

BOOST_AUTO_TEST_CASE ( modeless_dialog_test_debug_clock  )

Definition at line 603 of file test_gui2.cpp.

◆ BOOST_AUTO_TEST_CASE() [56/59]

BOOST_AUTO_TEST_CASE ( tooltip_test_tooltip_large  )

Definition at line 607 of file test_gui2.cpp.

◆ BOOST_AUTO_TEST_CASE() [57/59]

BOOST_AUTO_TEST_CASE ( tooltip_test_tooltip  )

Definition at line 611 of file test_gui2.cpp.

◆ BOOST_AUTO_TEST_CASE() [58/59]

BOOST_AUTO_TEST_CASE ( test_last  )

◆ BOOST_AUTO_TEST_CASE() [59/59]

BOOST_AUTO_TEST_CASE ( test_make_test_fake  )