|
KiCad PCB EDA Suite
|
#include <memory>#include <vector>#include <boost/test/unit_test.hpp>#include <wx/filename.h>#include <qa_utils/wx_utils/unit_test_utils.h>#include <pcbnew_utils/board_test_utils.h>#include <api/api_handler_pcb.h>#include <api/headless_pcb_context.h>#include <api/board/board_commands.pb.h>#include <api/common/commands/editor_commands.pb.h>#include <api/common/envelope.pb.h>#include <api/common/types/base_types.pb.h>#include <jobs/job_export_pcb_odb.h>#include <board.h>#include <connectivity/connectivity_data.h>#include <settings/settings_manager.h>#include <zone.h>Go to the source code of this file.
Functions | |
| BOOST_AUTO_TEST_CASE (OdbJobRequestMapsVariants) | |
| BOOST_AUTO_TEST_CASE (OdbJobRequestMapsExportOptions) | |
| BOOST_AUTO_TEST_CASE (RefillZonesSubset) | |
| BOOST_AUTO_TEST_CASE (RefillZonesSubsetRebuildsConnectivity) | |
| BOOST_AUTO_TEST_CASE (RefillZonesAllHeadless) | |
| BOOST_AUTO_TEST_CASE (RefillZonesUnknownIdRejected) | |
| BOOST_AUTO_TEST_CASE (RevertDocumentRejectedWithOpenCommit) | |
| BOOST_AUTO_TEST_CASE (RevertDocumentWithoutCommitPassesGuard) | |
| BOOST_AUTO_TEST_CASE | ( | OdbJobRequestMapsExportOptions | ) |
Definition at line 171 of file test_api_handler_pcb.cpp.
References JOB_EXPORT_PCB_ODB::ABSOLUTE_COORDS, JOB_EXPORT_PCB_FAB::ANONYMIZE, ApplyOdbJobRequest(), JOB_EXPORT_PCB_FAB::ASSEMBLY, BOOST_CHECK_EQUAL(), BOOST_REQUIRE(), JOB_EXPORT_PCB_ODB::GRID, JOB_EXPORT_PCB_FAB::INCLUDE, JOB_EXPORT_PCB_FAB::m_dataSet, JOB_EXPORT_PCB_FAB::m_netNames, JOB_EXPORT_PCB_ODB::m_origin, JOB_EXPORT_PCB_ODB::m_productName, JOB_EXPORT_PCB_FAB::m_sections, and JOB_EXPORT_PCB_FAB::USERDEF.
| BOOST_AUTO_TEST_CASE | ( | OdbJobRequestMapsVariants | ) |
Definition at line 144 of file test_api_handler_pcb.cpp.
References ApplyOdbJobRequest(), BOOST_AUTO_TEST_CASE(), BOOST_CHECK_EQUAL(), JOB_EXPORT_PCB_FAB::m_colMfgPn, JOB_EXPORT_PCB_FAB::m_variantNames, and JOB_EXPORT_PCB_ODB::m_variantPackaging.
| BOOST_AUTO_TEST_CASE | ( | RefillZonesAllHeadless | ) |
Definition at line 265 of file test_api_handler_pcb.cpp.
References BOOST_CHECK_EQUAL(), API_HANDLER::Handle(), and result.
| BOOST_AUTO_TEST_CASE | ( | RefillZonesSubset | ) |
Definition at line 198 of file test_api_handler_pcb.cpp.
References BOOST_CHECK_EQUAL(), BOOST_REQUIRE(), API_HANDLER::Handle(), ZONE::IsFilled(), and result.
| BOOST_AUTO_TEST_CASE | ( | RefillZonesSubsetRebuildsConnectivity | ) |
Definition at line 231 of file test_api_handler_pcb.cpp.
References API_HANDLER::Handle(), and result.
| BOOST_AUTO_TEST_CASE | ( | RefillZonesUnknownIdRejected | ) |
Definition at line 289 of file test_api_handler_pcb.cpp.
References BOOST_CHECK_EQUAL(), BOOST_REQUIRE(), API_HANDLER::Handle(), and result.
| BOOST_AUTO_TEST_CASE | ( | RevertDocumentRejectedWithOpenCommit | ) |
Definition at line 306 of file test_api_handler_pcb.cpp.
References BOOST_CHECK_EQUAL(), BOOST_REQUIRE(), API_HANDLER::Handle(), and result.
| BOOST_AUTO_TEST_CASE | ( | RevertDocumentWithoutCommitPassesGuard | ) |
Definition at line 327 of file test_api_handler_pcb.cpp.
References BOOST_CHECK_EQUAL(), BOOST_REQUIRE(), API_HANDLER::Handle(), and result.