#include "services/device/geolocation/wifi_polling_policy.h"
#include <memory>
#include "base/memory/raw_ptr.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace device {
namespace {
const int kDefaultIntervalMillis = …;
const int kNoChangeIntervalMillis = …;
const int kTwoNoChangeIntervalMillis = …;
const int kNoWifiIntervalMillis = …;
}
class GeolocationWifiPollingPolicyTest : public testing::Test { … };
TEST_F(GeolocationWifiPollingPolicyTest, CreateDestroy) { … }
TEST_F(GeolocationWifiPollingPolicyTest, InitialIntervalZero) { … }
TEST_F(GeolocationWifiPollingPolicyTest, PollingIntervalNonZero) { … }
TEST_F(GeolocationWifiPollingPolicyTest, NoWifiIntervalNonZero) { … }
TEST_F(GeolocationWifiPollingPolicyTest, UpdatePollingIntervalOnce) { … }
TEST_F(GeolocationWifiPollingPolicyTest, UpdatePollingIntervalTwice) { … }
TEST_F(GeolocationWifiPollingPolicyTest, UpdatePollingIntervalThrice) { … }
TEST_F(GeolocationWifiPollingPolicyTest, UpdatePollingIntervalResultsDiffer) { … }
TEST_F(GeolocationWifiPollingPolicyTest, ShorterInterval) { … }
TEST_F(GeolocationWifiPollingPolicyTest, LongerInterval) { … }
}