MCPcopy Create free account
hub / github.com/comaps/comaps / SetDownloaderForTesting

Method SetDownloaderForTesting

libs/storage/storage.cpp:1178–1185  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1176}
1177
1178void Storage::SetDownloaderForTesting(unique_ptr<MapFilesDownloader> downloader)
1179{
1180 if (m_downloader)
1181 m_downloader->Clear();
1182
1183 m_downloader = std::move(downloader);
1184 m_downloader->SetDownloadingPolicy(m_downloadingPolicy);
1185}
1186
1187void Storage::SetEnabledIntegrityValidationForTesting(bool enabled)
1188{

Callers 3

InitStorageFunction · 0.80
UNIT_TESTFunction · 0.80
UNIT_CLASS_TESTFunction · 0.80

Calls 2

ClearMethod · 0.45
SetDownloadingPolicyMethod · 0.45

Tested by 3

InitStorageFunction · 0.64
UNIT_TESTFunction · 0.64
UNIT_CLASS_TESTFunction · 0.64