#include <memory>
#include "chrome/browser/ui/tabs/organization/trigger_policies.h"
#include "base/test/metrics/histogram_tester.h"
#include "base/test/simple_test_tick_clock.h"
#include "base/test/task_environment.h"
#include "testing/gtest/include/gtest/gtest.h"
class UsageTickClockTest : public testing::Test { … };
TEST_F(UsageTickClockTest, TestClock) { … }
class FakeBackoffLevelProvider final : public BackoffLevelProvider { … };
class TargetFrequencyTriggerTest : public testing::Test { … };
TEST_F(TargetFrequencyTriggerTest, TriggersWhenBestScoreBeaten) { … }
TEST_F(TargetFrequencyTriggerTest, DoesntTriggerInObservationPhase) { … }
TEST_F(TargetFrequencyTriggerTest, DoesntTriggerWithoutObservation) { … }
TEST_F(TargetFrequencyTriggerTest, TriggersOncePerPeriod) { … }
TEST_F(TargetFrequencyTriggerTest, TriggersAgainNextPeriod) { … }
TEST_F(TargetFrequencyTriggerTest, BacksOffAfterFailure) { … }
TEST_F(TargetFrequencyTriggerTest, UnBacksOffAfterSuccess) { … }
TEST_F(TargetFrequencyTriggerTest, PeriodClampedToBasePeriod) { … }
TEST_F(TargetFrequencyTriggerTest,
HistogramLoggedOnShouldTriggerAfterPeriodExpiration) { … }