Add telemetry event for FZ editor (#1294)

* trace zones settings changes
This commit is contained in:
Seraphima Zykova
2020-02-17 19:40:02 +03:00
committed by GitHub
parent 93f88800b8
commit 604070763d
4 changed files with 96 additions and 3 deletions

View File

@@ -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();