|
KiCad PCB EDA Suite
|
#include <qa_utils/wx_utils/unit_test_utils.h>#include <boost/test/data/test_case.hpp>#include <board.h>#include <kiid.h>#include <layer_ids.h>#include <pcb_reference_image.h>#include <pcbnew_utils/board_file_utils.h>#include <pcbnew_utils/board_test_utils.h>#include <settings/settings_manager.h>Go to the source code of this file.
Functions | |
| BOOST_DATA_TEST_CASE_F (REFERENCE_IMAGE_LOAD_TEST_FIXTURE, ReferenceImageLoading, boost::unit_test::data::make(ReferenceImageLoading_testCases), testCase) | |
| BOOST_FIXTURE_TEST_CASE (ReferenceImageFlipLayer, REFERENCE_IMAGE_LOAD_TEST_FIXTURE) | |
| Test that flipping a reference image changes its associated layer, matching the behavior of all other PCB item types. | |
| BOOST_DATA_TEST_CASE_F | ( | REFERENCE_IMAGE_LOAD_TEST_FIXTURE | , |
| ReferenceImageLoading | , | ||
| boost::unit_test::data::make(ReferenceImageLoading_testCases) | , | ||
| testCase | ) |
Definition at line 97 of file test_reference_image_load.cpp.
References KIID::AsString(), BOOST_CHECK_EQUAL(), BOOST_TEST_MESSAGE(), REFERENCE_IMAGE::GetImage(), REFERENCE_IMAGE::GetImageScale(), BITMAP_BASE::GetSizePixels(), image, KI_TEST::LoadAndTestBoardFile(), PCB_REFERENCE_IMAGE_T, and KI_TEST::RequireBoardItemWithTypeAndId().
| BOOST_FIXTURE_TEST_CASE | ( | ReferenceImageFlipLayer | , |
| REFERENCE_IMAGE_LOAD_TEST_FIXTURE | ) |
Test that flipping a reference image changes its associated layer, matching the behavior of all other PCB item types.
Definition at line 131 of file test_reference_image_load.cpp.
References BOOST_CHECK_EQUAL(), BOOST_REQUIRE(), image, LEFT_RIGHT, KI_TEST::LoadAndTestBoardFile(), PCB_REFERENCE_IMAGE_T, KI_TEST::RequireBoardItemWithTypeAndId(), and TOP_BOTTOM.