KiCad PCB EDA Suite
Loading...
Searching...
No Matches
TEST_SYMBOL_LIBRARY_FIXTURE Class Reference
Inheritance diagram for TEST_SYMBOL_LIBRARY_FIXTURE:
KI_TEST::SCHEMATIC_TEST_FIXTURE

Protected Member Functions

SYMBOL_LIBRARY_ADAPTERRegisterSymbolAdapter (LIBRARY_MANAGER &aManager)
 Register a fresh SYMBOL_LIBRARY_ADAPTER on the manager and return it.
 
wxFileName GetTestProjectSchPath () const
 
void EnsureGlobalSymbolDir ()
 Ensure KICAD9_SYMBOL_DIR points at the QA data libraries so the global sym-lib-table's ${KICAD9_SYMBOL_DIR}/Device.kicad_sym URI resolves.
 
virtual void LoadSchematic (const wxFileName &aFn)
 
virtual wxFileName SchematicQAPath (const wxString &aBaseName)
 
SETTINGS_MANAGERSettingsManager ()
 

Protected Attributes

std::unique_ptr< SCHEMATICm_schematic
 
IO_RELEASER< SCH_IOm_pi
 
SETTINGS_MANAGER m_manager
 

Detailed Description

Definition at line 41 of file test_symbol_library.cpp.

Member Function Documentation

◆ EnsureGlobalSymbolDir()

void TEST_SYMBOL_LIBRARY_FIXTURE::EnsureGlobalSymbolDir ( )
inlineprotected

Ensure KICAD9_SYMBOL_DIR points at the QA data libraries so the global sym-lib-table's ${KICAD9_SYMBOL_DIR}/Device.kicad_sym URI resolves.

Only needed by tests that load a global library before any project is open.

Definition at line 69 of file test_symbol_library.cpp.

References KI_TEST::GetTestDataRootDir(), and path.

◆ GetTestProjectSchPath()

wxFileName TEST_SYMBOL_LIBRARY_FIXTURE::GetTestProjectSchPath ( ) const
inlineprotected

Definition at line 58 of file test_symbol_library.cpp.

References KI_TEST::GetTestDataRootDir().

◆ LoadSchematic()

void KI_TEST::SCHEMATIC_TEST_FIXTURE::LoadSchematic ( const wxFileName & aFn)
protectedvirtualinherited

◆ RegisterSymbolAdapter()

SYMBOL_LIBRARY_ADAPTER * TEST_SYMBOL_LIBRARY_FIXTURE::RegisterSymbolAdapter ( LIBRARY_MANAGER & aManager)
inlineprotected

Register a fresh SYMBOL_LIBRARY_ADAPTER on the manager and return it.

Shared by the regression tests below so the cast-and-assert boilerplate only lives in one place.

Definition at line 47 of file test_symbol_library.cpp.

References LIBRARY_MANAGER::Adapter(), BOOST_REQUIRE(), LIBRARY_MANAGER::RegisterAdapter(), and SYMBOL.

◆ SchematicQAPath()

◆ SettingsManager()

SETTINGS_MANAGER & KI_TEST::SCHEMATIC_TEST_FIXTURE::SettingsManager ( )
inlineprotectedinherited

Definition at line 59 of file eeschema_test_utils.h.

References m_manager.

Member Data Documentation

◆ m_manager

SETTINGS_MANAGER KI_TEST::SCHEMATIC_TEST_FIXTURE::m_manager
protectedinherited

◆ m_pi

IO_RELEASER<SCH_IO> KI_TEST::SCHEMATIC_TEST_FIXTURE::m_pi
protectedinherited

Definition at line 62 of file eeschema_test_utils.h.

Referenced by SCHEMATIC_TEST_FIXTURE().

◆ m_schematic


The documentation for this class was generated from the following file: