| 1176 | } |
| 1177 | |
| 1178 | void 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 | |
| 1187 | void Storage::SetEnabledIntegrityValidationForTesting(bool enabled) |
| 1188 | { |