| 37 | } |
| 38 | |
| 39 | bool DiffsDataSource::SizeFor(storage::CountryId const & countryId, uint64_t & size) const |
| 40 | { |
| 41 | CHECK_THREAD_CHECKER(m_threadChecker, ()); |
| 42 | |
| 43 | if (m_status != Status::Available) |
| 44 | return false; |
| 45 | |
| 46 | auto const it = m_diffs.find(countryId); |
| 47 | if (it == m_diffs.cend()) |
| 48 | return false; |
| 49 | |
| 50 | size = it->second.m_size; |
| 51 | return true; |
| 52 | } |
| 53 | |
| 54 | bool DiffsDataSource::SizeToDownloadFor(storage::CountryId const & countryId, uint64_t & size) const |
| 55 | { |
no test coverage detected