35 SetPgm(
new MOCK_PGM_BASE() );
38 wxApp::SetInstance(
new wxAppConsole );
40 if( !wxInitialize( *argc, *argv ) )
bool InitPgm(bool aHeadless=false, bool aSkipPyInit=false, bool aIsUnitTest=false)
Initialize this program.
virtual SETTINGS_MANAGER & GetSettingsManager() const
T * RegisterSettings(T *aSettings, bool aLoadNow=true)
Take ownership of the pointer passed in.
bool LoadProject(const wxString &aFullPath, bool aSetActive=true)
Load a project or sets up a new project with a specified path.
int fuzz_init(int *argc, char ***argv)
Initialize wxWidgets and KiCad PGM_BASE for fuzzing.
void wxAssertThrower(const wxString &aFile, int aLine, const wxString &aFunc, const wxString &aCond, const wxString &aMsg)
void SetPgm(PGM_BASE *pgm)
PGM_BASE & Pgm()
The global program "get" accessor.