20#include <boost/test/unit_test.hpp>
27#include <wx/filename.h>
42 BOOST_REQUIRE_MESSAGE( userCachePath.StartsWith( tempDir.
PathStr() ),
43 "KICAD_CACHE_HOME must be in a temp dir for this test" );
45 wxFileName::Mkdir( userCachePath, wxS_DIR_DEFAULT, wxPATH_MKDIR_FULL );
51 wxFileName fn( userCachePath, wxS(
"notifications.json" ) );
52 BOOST_CHECK( fn.FileExists() );
67 wxCommandEvent evt( EDA_EVT_UNITS_CHANGED );
68 handler.ProcessEvent( evt );
RAII helper that sets a process-level environment variable for the lifetime of the object.
wxString PathStr() const
Get the path to the temporary directory as a wxString.
void Save()
Save notifications to disk.
void CreateOrUpdate(const wxString &aKey, const wxString &aTitle, const wxString &aDescription, const wxString &aHref=wxEmptyString)
Create a notification with the given parameters or updates an existing one with the same key.
static wxString GetUserCachePath()
Gets the stock (install) 3d viewer plugins path.
void OnEvent(wxCommandEvent &)
BOOST_AUTO_TEST_CASE(HorizontalAlignment)
BOOST_AUTO_TEST_SUITE(CadstarPartParser)
BOOST_AUTO_TEST_SUITE_END()
BOOST_AUTO_TEST_CASE(CreateAndPersist)