#include "services/device/geolocation/position_cache_impl.h"
#include <memory>
#include <utility>
#include "base/strings/string_number_conversions.h"
#include "base/strings/utf_string_conversions.h"
#include "base/test/task_environment.h"
#include "net/base/network_change_notifier.h"
#include "services/device/geolocation/position_cache_test_util.h"
#include "services/device/public/cpp/geolocation/geoposition.h"
#include "services/device/public/mojom/geolocation_internals.mojom.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace device {
class PositionCacheImplTest : public ::testing::Test { … };
TEST_F(PositionCacheImplTest, EmptyCacheReturnsNoLocations) { … }
TEST_F(PositionCacheImplTest, CanAddEmptyWifiData) { … }
TEST_F(PositionCacheImplTest, FirstAddedWifiDataReturned) { … }
TEST_F(PositionCacheImplTest, LastAddedWifiDataReturned) { … }
TEST_F(PositionCacheImplTest, MaxPositionsFound) { … }
TEST_F(PositionCacheImplTest, Eviction) { … }
TEST_F(PositionCacheImplTest, LastUsedPositionRemembered) { … }
TEST_F(PositionCacheImplTest, EntryEvictedAfterMaxLifetimeReached) { … }
TEST_F(PositionCacheImplTest, OnlyOldEntriesEvicted) { … }
TEST_F(PositionCacheImplTest, NetworkChangeClearsEmptyWifiDataPosition) { … }
TEST_F(PositionCacheImplTest, DiagnosticsEmpty) { … }
TEST_F(PositionCacheImplTest, DiagnosticsCacheMiss) { … }
TEST_F(PositionCacheImplTest, DiagnosticsCacheHit) { … }
TEST_F(PositionCacheImplTest, DiagnosticsLastNetworkResult) { … }
}