#include "services/device/geolocation/fake_position_cache.h"
#include "base/ranges/algorithm.h"
#include "services/device/geolocation/wifi_data.h"
#include "services/device/public/cpp/geolocation/geoposition.h"
namespace device {
namespace {
template <typename Set>
bool SetsEqual(const Set& lhs, const Set& rhs) { … }
}
FakePositionCache::FakePositionCache() = default;
FakePositionCache::~FakePositionCache() = default;
void FakePositionCache::CachePosition(const WifiData& wifi_data,
const mojom::Geoposition& position) { … }
const mojom::Geoposition* FakePositionCache::FindPosition(
const WifiData& wifi_data) { … }
size_t FakePositionCache::GetPositionCacheSize() const { … }
const mojom::GeopositionResult* FakePositionCache::GetLastUsedNetworkPosition()
const { … }
void FakePositionCache::SetLastUsedNetworkPosition(
const mojom::GeopositionResult& result) { … }
}