Skip to content

Commit

Permalink
returned methods for logging
Browse files Browse the repository at this point in the history
  • Loading branch information
SeraphimaZykova committed Feb 17, 2020
1 parent a91f1a6 commit 725fd1a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/modules/fancyzones/lib/JsonHelpers.h
Original file line number Diff line number Diff line change
Expand Up @@ -181,22 +181,25 @@ namespace JSONHelpers
return activeDeviceId;
}

#if defined(UNIT_TESTS)
inline const std::unordered_map<std::wstring, DeviceInfoData>& GetDeviceInfoMap() const
{
std::scoped_lock lock{ dataLock };
return deviceInfoMap;
}

inline const std::unordered_map<std::wstring, CustomZoneSetData>& GetCustomZoneSetsMap() const
{
std::scoped_lock lock{ dataLock };
return customZoneSetsMap;
}

inline const std::unordered_map<std::wstring, AppZoneHistoryData>& GetAppZoneHistoryMap() const
{
std::scoped_lock lock{ dataLock };
return appZoneHistoryMap;
}

#if defined(UNIT_TESTS)
inline void clear_data()
{
appliedZoneSetsMap.clear();
Expand Down

0 comments on commit 725fd1a

Please sign in to comment.