Settings manager test

This commit is contained in:
Dan Paulat 2021-10-24 21:57:01 -05:00
parent 1c0140fc98
commit fd0a148d3e
4 changed files with 113 additions and 4 deletions

View file

@ -93,6 +93,11 @@ GeneralSettings::Load(const boost::json::value* json, bool& jsonDirty)
return generalSettings;
}
bool operator==(const GeneralSettings& lhs, const GeneralSettings& rhs)
{
return lhs.p->defaultRadarSite_ == rhs.p->defaultRadarSite_;
}
} // namespace settings
} // namespace qt
} // namespace scwx

View file

@ -34,6 +34,9 @@ public:
static std::shared_ptr<GeneralSettings> Load(const boost::json::value* json,
bool& jsonDirty);
friend bool operator==(const GeneralSettings& lhs,
const GeneralSettings& rhs);
private:
std::unique_ptr<GeneralSettingsImpl> p;
};