|
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 <board.h>#include <connectivity/connectivity_data.h>#include <drc/drc_exclusion.h>#include <drc/drc_item.h>#include <drc/drc_rule.h>#include <pcb_marker.h>#include <settings/settings_manager.h>#include <zone.h>#include <zone_filler.h>#include <api/api_handler_pcb.h>#include <api/api_task_scheduler.h>#include <api/headless_pcb_context.h>#include <api/board/board_commands.pb.h>#include <api/board/board_rules.pb.h>#include <api/board/board_tasks.pb.h>#include <api/common/commands/editor_commands.pb.h>#include <api/common/envelope.pb.h>#include <api/common/tasks.pb.h>#include <api/common/types/base_types.pb.h>#include <jobs/job_export_pcb_odb.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 (StartRefillZonesTaskCompletes) | |
| BOOST_AUTO_TEST_CASE (StartRefillZonesTaskUnknownIdRejected) | |
| BOOST_AUTO_TEST_CASE (StartRefillZonesTaskEmptyListFillsAllZones) | |
| BOOST_AUTO_TEST_CASE (StartDrcTaskCompletesWithResults) | |
| BOOST_AUTO_TEST_CASE (GetDrcTaskResultRejectsUnknownToken) | |
| BOOST_AUTO_TEST_CASE (StartDrcTaskRequiresFilledZones) | |
| BOOST_AUTO_TEST_CASE (GetDrcTaskResultOnFailedTaskReturnsInternalError) | |
| BOOST_AUTO_TEST_CASE (StartDrcTaskWithParityWithoutKiwayFails) | |
| BOOST_AUTO_TEST_CASE (StartTaskWhileAnotherIsRunningIsRejected) | |
| BOOST_AUTO_TEST_CASE (TaskQueriesAllowedDuringTask) | |
| BOOST_AUTO_TEST_CASE (DrcExclusionDropsMarkerReportFields) | |
| BOOST_AUTO_TEST_CASE | ( | DrcExclusionDropsMarkerReportFields | ) |
Definition at line 780 of file test_api_handler_pcb.cpp.
References BOOST_CHECK(), BOOST_CHECK_EQUAL(), DRC_ITEM::Create(), DRCE_CLEARANCE, DRC_EXCLUSION::FromMarker(), DRC_EXCLUSION::FromProto(), MARKER_BASE::SetExcluded(), DRC_EXCLUSION::ToProto(), and PCB_MARKER::ToProto().
| BOOST_AUTO_TEST_CASE | ( | GetDrcTaskResultOnFailedTaskReturnsInternalError | ) |
Definition at line 666 of file test_api_handler_pcb.cpp.
References BOOST_CHECK(), BOOST_CHECK_EQUAL(), BOOST_REQUIRE(), API_TASK_SCHEDULER::GetStatus(), API_HANDLER::Handle(), API_TASK_SCHEDULER::Instance(), API_TASK_SCHEDULER::Pump(), and result.
| BOOST_AUTO_TEST_CASE | ( | GetDrcTaskResultRejectsUnknownToken | ) |
Definition at line 583 of file test_api_handler_pcb.cpp.
References BOOST_CHECK_EQUAL(), BOOST_REQUIRE(), API_HANDLER::Handle(), and result.
| BOOST_AUTO_TEST_CASE | ( | OdbJobRequestMapsExportOptions | ) |
Definition at line 236 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(), 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 209 of file test_api_handler_pcb.cpp.
References ApplyOdbJobRequest(), BOOST_AUTO_TEST_CASE(), BOOST_CHECK(), BOOST_CHECK_EQUAL(), BOOST_REQUIRE_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 330 of file test_api_handler_pcb.cpp.
References BOOST_CHECK_EQUAL(), API_HANDLER::Handle(), and result.
| BOOST_AUTO_TEST_CASE | ( | RefillZonesSubset | ) |
Definition at line 263 of file test_api_handler_pcb.cpp.
References BOOST_CHECK(), BOOST_CHECK_EQUAL(), BOOST_REQUIRE(), API_HANDLER::Handle(), ZONE::IsFilled(), and result.
| BOOST_AUTO_TEST_CASE | ( | RefillZonesSubsetRebuildsConnectivity | ) |
Definition at line 296 of file test_api_handler_pcb.cpp.
References BOOST_REQUIRE_MESSAGE(), API_HANDLER::Handle(), and result.
| BOOST_AUTO_TEST_CASE | ( | RefillZonesUnknownIdRejected | ) |
Definition at line 354 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 371 of file test_api_handler_pcb.cpp.
References BOOST_CHECK(), BOOST_CHECK_EQUAL(), BOOST_REQUIRE(), API_HANDLER::Handle(), and result.
| BOOST_AUTO_TEST_CASE | ( | RevertDocumentWithoutCommitPassesGuard | ) |
Definition at line 392 of file test_api_handler_pcb.cpp.
References BOOST_CHECK_EQUAL(), BOOST_REQUIRE(), API_HANDLER::Handle(), and result.
| BOOST_AUTO_TEST_CASE | ( | StartDrcTaskCompletesWithResults | ) |
Definition at line 527 of file test_api_handler_pcb.cpp.
References BOOST_CHECK(), BOOST_CHECK_EQUAL(), BOOST_REQUIRE(), API_TASK_SCHEDULER::GetStatus(), API_HANDLER::Handle(), API_TASK_SCHEDULER::Instance(), API_TASK_SCHEDULER::Pump(), and result.
| BOOST_AUTO_TEST_CASE | ( | StartDrcTaskRequiresFilledZones | ) |
Definition at line 603 of file test_api_handler_pcb.cpp.
References BOOST_CHECK(), BOOST_CHECK_EQUAL(), BOOST_REQUIRE(), ZONE_FILLER::Fill(), API_TASK_SCHEDULER::GetStatus(), API_HANDLER::Handle(), API_TASK_SCHEDULER::Instance(), API_TASK_SCHEDULER::Pump(), and result.
| BOOST_AUTO_TEST_CASE | ( | StartDrcTaskWithParityWithoutKiwayFails | ) |
Definition at line 697 of file test_api_handler_pcb.cpp.
References BOOST_CHECK_EQUAL(), BOOST_REQUIRE(), KI_TEST::GetPcbnewTestDataDir(), API_TASK_SCHEDULER::GetStatus(), API_HANDLER::Handle(), API_TASK_SCHEDULER::Instance(), and API_TASK_SCHEDULER::Pump().
| BOOST_AUTO_TEST_CASE | ( | StartRefillZonesTaskCompletes | ) |
Definition at line 411 of file test_api_handler_pcb.cpp.
References BOOST_CHECK(), BOOST_CHECK_EQUAL(), BOOST_REQUIRE(), API_TASK_SCHEDULER::GetStatus(), API_HANDLER::Handle(), API_TASK_SCHEDULER::Instance(), ZONE::IsFilled(), API_TASK_SCHEDULER::Pump(), and result.
| BOOST_AUTO_TEST_CASE | ( | StartRefillZonesTaskEmptyListFillsAllZones | ) |
Definition at line 480 of file test_api_handler_pcb.cpp.
References BOOST_CHECK_EQUAL(), BOOST_REQUIRE(), API_TASK_SCHEDULER::GetStatus(), API_HANDLER::Handle(), API_TASK_SCHEDULER::Instance(), API_TASK_SCHEDULER::Pump(), and result.
| BOOST_AUTO_TEST_CASE | ( | StartRefillZonesTaskUnknownIdRejected | ) |
Definition at line 456 of file test_api_handler_pcb.cpp.
References BOOST_CHECK_EQUAL(), BOOST_REQUIRE(), API_HANDLER::Handle(), and result.
| BOOST_AUTO_TEST_CASE | ( | StartTaskWhileAnotherIsRunningIsRejected | ) |
Definition at line 727 of file test_api_handler_pcb.cpp.
References BOOST_CHECK_EQUAL(), BOOST_REQUIRE(), API_HANDLER::Handle(), API_TASK_SCHEDULER::Instance(), and API_TASK_SCHEDULER::Pump().
| BOOST_AUTO_TEST_CASE | ( | TaskQueriesAllowedDuringTask | ) |
Definition at line 764 of file test_api_handler_pcb.cpp.
References API_HANDLER::AllowsDuringTask(), and BOOST_CHECK().