KiCad PCB EDA Suite
Loading...
Searching...
No Matches
test_reference_image_load.cpp File Reference
#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.
 

Function Documentation

◆ BOOST_DATA_TEST_CASE_F()

BOOST_DATA_TEST_CASE_F ( REFERENCE_IMAGE_LOAD_TEST_FIXTURE ,
ReferenceImageLoading ,
boost::unit_test::data::make(ReferenceImageLoading_testCases) ,
testCase  )

◆ BOOST_FIXTURE_TEST_CASE()

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.