| 459 | } |
| 460 | |
| 461 | void InitStorage(Storage & storage, TaskRunner & runner, Storage::UpdateCallback const & update = &OnCountryDownloaded) |
| 462 | { |
| 463 | storage.Clear(); |
| 464 | storage.Init(update, [](CountryId const &, LocalFilePtr const) { return false; }); |
| 465 | storage.RegisterAllLocalMaps(); |
| 466 | storage.SetDownloaderForTesting(make_unique<FakeMapFilesDownloader>(runner)); |
| 467 | // Disable because of FakeMapFilesDownloader. |
| 468 | storage.SetEnabledIntegrityValidationForTesting(false); |
| 469 | } |
| 470 | |
| 471 | class StorageTest |
| 472 | { |
no test coverage detected