|
KiCad PCB EDA Suite
|
#include <memory>#include <set>#include <vector>#include <qa_utils/wx_utils/unit_test_utils.h>#include <pcbnew_utils/board_test_utils.h>#include <wx/dir.h>#include <wx/filefn.h>#include <wx/filename.h>#include <wx/stdpaths.h>#include <board.h>#include <footprint.h>#include <lib_id.h>#include <pgm_base.h>#include <project.h>#include <project_pcb.h>#include <reporter.h>#include <settings/settings_manager.h>#include <footprint_library_adapter.h>#include <io/easyedapro/easyedapro_import_utils.h>#include <libraries/library_manager.h>#include <libraries/library_table.h>#include <netlist_reader/board_netlist_updater.h>#include <netlist_reader/pcb_netlist.h>#include <pcb_io/altium/pcb_io_altium_designer.h>#include <pcb_io/eagle/pcb_io_eagle.h>#include <pcb_io/easyedapro/pcb_io_easyedapro_v3.h>#include <tool/tool_manager.h>#include <footprint_import_reconciler.h>Go to the source code of this file.
Functions | |
| BOOST_AUTO_TEST_CASE (EagleBoardResolvesToGeneratedCache) | |
| BOOST_AUTO_TEST_CASE (AltiumBoardResolvesToGeneratedCache) | |
| BOOST_AUTO_TEST_CASE (EasyEdaProV3BoardResolvesToGeneratedCache) | |
| BOOST_AUTO_TEST_CASE (CollidingNicknameDoesNotStealTheLink) | |
| BOOST_AUTO_TEST_CASE (ExistingUserRowIsNotRepurposed) | |
| BOOST_AUTO_TEST_CASE (ReconciledFootprintsResolveViaNetlistUpdater) | |
| BOOST_AUTO_TEST_CASE | ( | AltiumBoardResolvesToGeneratedCache | ) |
Definition at line 277 of file test_footprint_import_reconciler.cpp.
References BOOST_CHECK_EQUAL(), BOOST_REQUIRE(), FOOTPRINT_LIBRARY_ADAPTER::FootprintExists(), PROJECT_PCB::FootprintLibAdapter(), PCB_IO_ALTIUM_DESIGNER::GetImportedCachedLibraryFootprints(), KI_TEST::GetPcbnewTestDataDir(), PGM_BASE::GetSettingsManager(), PCB_IO_ALTIUM_DESIGNER::LoadBoard(), name, Pgm(), SETTINGS_MANAGER::Prj(), project, FOOTPRINT_IMPORT_RECONCILER::Reconcile(), and result.
| BOOST_AUTO_TEST_CASE | ( | CollidingNicknameDoesNotStealTheLink | ) |
Definition at line 396 of file test_footprint_import_reconciler.cpp.
References BOOST_CHECK_EQUAL(), BOOST_REQUIRE(), PROJECT_PCB::FootprintLibAdapter(), PGM_BASE::GetSettingsManager(), FOOTPRINT_LIBRARY_ADAPTER::LoadFootprint(), FOOTPRINT::Pads(), Pgm(), SETTINGS_MANAGER::Prj(), project, FOOTPRINT_IMPORT_RECONCILER::Reconcile(), result, and FOOTPRINT::SetFPID().
| BOOST_AUTO_TEST_CASE | ( | EagleBoardResolvesToGeneratedCache | ) |
Definition at line 202 of file test_footprint_import_reconciler.cpp.
References BOOST_AUTO_TEST_CASE(), BOOST_CHECK_EQUAL(), BOOST_REQUIRE(), FOOTPRINT_LIBRARY_ADAPTER::FootprintExists(), PROJECT_PCB::FootprintLibAdapter(), KI_TEST::GetEeschemaTestDataDir(), PCB_IO_EAGLE::GetImportedCachedLibraryFootprints(), PGM_BASE::GetSettingsManager(), LIBRARY_TABLE::HasRow(), FILEEXT::KiCadFootprintLibPathExtension, PCB_IO_EAGLE::LoadBoard(), name, Pgm(), SETTINGS_MANAGER::Prj(), project, LIBRARY_MANAGER_ADAPTER::ProjectTable(), FOOTPRINT_IMPORT_RECONCILER::Reconcile(), and result.
| BOOST_AUTO_TEST_CASE | ( | EasyEdaProV3BoardResolvesToGeneratedCache | ) |
Definition at line 333 of file test_footprint_import_reconciler.cpp.
References BOOST_CHECK_EQUAL(), BOOST_REQUIRE(), FOOTPRINT_LIBRARY_ADAPTER::FootprintExists(), PROJECT_PCB::FootprintLibAdapter(), BOARD::Footprints(), PGM_BASE::GetSettingsManager(), LIBRARY_TABLE::HasRow(), FILEEXT::KiCadFootprintLibPathExtension, name, Pgm(), SETTINGS_MANAGER::Prj(), project, LIBRARY_MANAGER_ADAPTER::ProjectTable(), FOOTPRINT_IMPORT_RECONCILER::Reconcile(), result, and EASYEDAPRO::ShortenLibName().
| BOOST_AUTO_TEST_CASE | ( | ExistingUserRowIsNotRepurposed | ) |
Definition at line 434 of file test_footprint_import_reconciler.cpp.
References BOOST_CHECK_EQUAL(), BOOST_REQUIRE(), PROJECT_PCB::FootprintLibAdapter(), PGM_BASE::GetSettingsManager(), FILEEXT::KiCadFootprintLibPathExtension, Pgm(), SETTINGS_MANAGER::Prj(), project, LIBRARY_MANAGER_ADAPTER::ProjectTable(), FOOTPRINT_IMPORT_RECONCILER::Reconcile(), result, FOOTPRINT::SetFPID(), table, and LIBRARY_TABLE_ROW::URI().
| BOOST_AUTO_TEST_CASE | ( | ReconciledFootprintsResolveViaNetlistUpdater | ) |
Definition at line 476 of file test_footprint_import_reconciler.cpp.
References BOOST_CHECK_EQUAL(), BOOST_REQUIRE(), COMPONENT, PROJECT_PCB::FootprintLibAdapter(), KI_TEST::GetEeschemaTestDataDir(), BOARD_NETLIST_UPDATER::GetErrorCount(), PCB_IO_EAGLE::GetImportedCachedLibraryFootprints(), PGM_BASE::GetSettingsManager(), LIB_ID::GetUniStringLibId(), LIB_ID::GetUniStringLibItemName(), PCB_IO_EAGLE::LoadBoard(), netlist, Pgm(), SETTINGS_MANAGER::Prj(), project, FOOTPRINT_IMPORT_RECONCILER::Reconcile(), TOOL_MANAGER::RegisterTool(), reporter, BOARD_NETLIST_UPDATER::SetDeleteUnusedFootprints(), TOOL_MANAGER::SetEnvironment(), BOARD_NETLIST_UPDATER::SetReplaceFootprints(), BOARD_NETLIST_UPDATER::SetReporter(), and BOARD_NETLIST_UPDATER::UpdateNetlist().