#include "chrome/browser/dips/persistent_repeating_timer.h"
#include <memory>
#include "base/functional/bind.h"
#include "base/location.h"
#include "base/task/sequenced_task_runner.h"
#include "base/test/task_environment.h"
#include "base/time/time.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace {
PersistentRepeatingTimer;
constexpr base::TimeDelta kStorageDelay = …;
constexpr base::TimeDelta kTimerDelay = …;
class SlowStorage : public PersistentRepeatingTimer::Storage { … };
}
class PersistentRepeatingTimerTest : public ::testing::Test { … };
TEST_F(PersistentRepeatingTimerTest, MissingPref) { … }
TEST_F(PersistentRepeatingTimerTest, MultipleStarts) { … }
TEST_F(PersistentRepeatingTimerTest, RecentPref) { … }
TEST_F(PersistentRepeatingTimerTest, OldPref) { … }