|
KiCad PCB EDA Suite
|
#include <qa_utils/wx_utils/unit_test_utils.h>#include <memory>#include <board.h>#include <footprint.h>#include <lib_id.h>#include <footprint_editor_settings.h>#include <footprint_editor_tab_context.h>Go to the source code of this file.
Functions | |
| static std::unique_ptr< BOARD > | makeFpHolder (const wxString &aLib, const wxString &aName) |
| Build an fp-holder BOARD carrying a single footprint with the given identity. | |
| BOOST_AUTO_TEST_CASE (ContextIdentityAndDirty) | |
| BOOST_AUTO_TEST_CASE (ContextEmptyBoardIsNeverDirty) | |
| BOOST_AUTO_TEST_CASE (InstanceTabContextIsTransientAndKeyedByUuid) | |
| An instance (board) tab owns its fp-holder board, reports IsTransient(), keys off the source board footprint UUID in a namespace disjoint from library keys, and carries the board-uuid remap. | |
| BOOST_AUTO_TEST_CASE (SettingsOpenTabsRoundTrip) | |
| BOOST_AUTO_TEST_CASE | ( | ContextEmptyBoardIsNeverDirty | ) |
Definition at line 71 of file test_footprint_editor_tabs.cpp.
References FPHOLDER, FOOTPRINT_EDITOR_TAB_CONTEXT::IsModified(), and FOOTPRINT_EDITOR_TAB_CONTEXT::SetModified().
| BOOST_AUTO_TEST_CASE | ( | ContextIdentityAndDirty | ) |
Definition at line 49 of file test_footprint_editor_tabs.cpp.
References BOOST_AUTO_TEST_CASE(), BOOST_CHECK_EQUAL(), FOOTPRINT_EDITOR_TAB_CONTEXT::GetBoard(), FOOTPRINT_EDITOR_TAB_CONTEXT::GetDisplayName(), FOOTPRINT_EDITOR_TAB_CONTEXT::GetTabKey(), FOOTPRINT_EDITOR_TAB_CONTEXT::IsModified(), makeFpHolder(), and FOOTPRINT_EDITOR_TAB_CONTEXT::SetModified().
| BOOST_AUTO_TEST_CASE | ( | InstanceTabContextIsTransientAndKeyedByUuid | ) |
An instance (board) tab owns its fp-holder board, reports IsTransient(), keys off the source board footprint UUID in a namespace disjoint from library keys, and carries the board-uuid remap.
Definition at line 85 of file test_footprint_editor_tabs.cpp.
References KIID::AsString(), FOOTPRINT_EDITOR_TAB_CONTEXT::BoardFootprintUuids(), BOOST_CHECK_EQUAL(), FOOTPRINT_EDITOR_TAB_CONTEXT::GetBoard(), FOOTPRINT_EDITOR_TAB_CONTEXT::GetDisplayName(), FOOTPRINT_EDITOR_TAB_CONTEXT::GetReference(), FOOTPRINT_EDITOR_TAB_CONTEXT::GetSourceUuid(), FOOTPRINT_EDITOR_TAB_CONTEXT::GetTabKey(), FOOTPRINT_EDITOR_TAB_CONTEXT::IsFromBoard(), FOOTPRINT_EDITOR_TAB_CONTEXT::IsTransient(), makeFpHolder(), and FOOTPRINT_EDITOR_TAB_CONTEXT::MakeInstanceTabKey().
| BOOST_AUTO_TEST_CASE | ( | SettingsOpenTabsRoundTrip | ) |
Definition at line 113 of file test_footprint_editor_tabs.cpp.
References BOOST_CHECK_EQUAL(), JSON_SETTINGS::Load(), FOOTPRINT_EDITOR_SETTINGS::m_ActiveTab, FOOTPRINT_EDITOR_SETTINGS::m_OpenTabs, and JSON_SETTINGS::Store().
|
static |
Build an fp-holder BOARD carrying a single footprint with the given identity.
Definition at line 33 of file test_footprint_editor_tabs.cpp.
References FOOTPRINT, FPHOLDER, and FOOTPRINT::SetFPID().
Referenced by BOOST_AUTO_TEST_CASE(), and BOOST_AUTO_TEST_CASE().