KiCad PCB EDA Suite
Loading...
Searching...
No Matches
test_settings_manager.cpp File Reference

Tests for SETTINGS_MANAGER lifecycle behavior. More...

#include <qa_utils/wx_utils/unit_test_utils.h>
#include <settings/color_settings.h>
#include <settings/common_settings.h>
#include <settings/json_settings.h>
#include <settings/parameters.h>
#include <settings/settings_manager.h>
#include <json_common.h>
#include <kiplatform/io.h>
#include <kiway.h>
#include <lockfile.h>
#include <project.h>
#include <wx/filename.h>
#include <filesystem>
#include <fstream>
#include <sstream>
#include <system_error>

Go to the source code of this file.

Classes

class  FLUSH_TEST_SETTINGS
 
struct  SETTINGS_MANAGER_FIXTURE
 
class  TEST_KIWAY
 

Functions

 BOOST_AUTO_TEST_CASE (LoadFlushesDirtySettings)
 
 BOOST_AUTO_TEST_CASE (LoadDoesNotFlushNeverSyncedSettings)
 
 BOOST_AUTO_TEST_CASE (ColorThemeNotRewrittenWhenUnchanged)
 
 BOOST_AUTO_TEST_CASE (GetProjectMatchesAnySpellingOfTheLoadedPath)
 
static wxString seedLockedProject (const fs::path &aDir, const std::string &aName, const nlohmann::json &aOwner)
 
static nlohmann::json selfOwnerRecord ()
 
 BOOST_AUTO_TEST_CASE (StaleOwnProjectLockIsReclaimedOnLoad)
 
 BOOST_AUTO_TEST_CASE (ForeignProjectLockOpensReadOnlyAndIsNotStolen)
 
 BOOST_AUTO_TEST_CASE (LiveProjectLockNotStolenFromAnotherExecutable)
 
 BOOST_AUTO_TEST_CASE (ProjectOwnsItsLockBeforeTheChangeIsAnnounced)
 

Detailed Description

Tests for SETTINGS_MANAGER lifecycle behavior.

Definition in file test_settings_manager.cpp.

Function Documentation

◆ BOOST_AUTO_TEST_CASE() [1/8]

BOOST_AUTO_TEST_CASE ( ColorThemeNotRewrittenWhenUnchanged )

◆ BOOST_AUTO_TEST_CASE() [2/8]

◆ BOOST_AUTO_TEST_CASE() [3/8]

BOOST_AUTO_TEST_CASE ( GetProjectMatchesAnySpellingOfTheLoadedPath )

◆ BOOST_AUTO_TEST_CASE() [4/8]

◆ BOOST_AUTO_TEST_CASE() [5/8]

◆ BOOST_AUTO_TEST_CASE() [6/8]

◆ BOOST_AUTO_TEST_CASE() [7/8]

◆ BOOST_AUTO_TEST_CASE() [8/8]

BOOST_AUTO_TEST_CASE ( StaleOwnProjectLockIsReclaimedOnLoad )

◆ seedLockedProject()

static wxString seedLockedProject ( const fs::path & aDir,
const std::string & aName,
const nlohmann::json & aOwner )
static

◆ selfOwnerRecord()

static nlohmann::json selfOwnerRecord ( )
static

Definition at line 230 of file test_settings_manager.cpp.

Referenced by BOOST_AUTO_TEST_CASE(), and BOOST_AUTO_TEST_CASE().