#include "components/metrics/daily_event.h"
#include <optional>
#include "base/memory/ptr_util.h"
#include "base/memory/raw_ptr.h"
#include "components/prefs/testing_pref_service.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace metrics {
namespace {
const char kTestPrefName[] = …;
const char kTestMetricName[] = …;
class TestDailyObserver : public DailyEvent::Observer { … };
class DailyEventTest : public testing::Test { … };
}
TEST_F(DailyEventTest, TestNewFires) { … }
TEST_F(DailyEventTest, TestOldFires) { … }
TEST_F(DailyEventTest, TestFutureFires) { … }
TEST_F(DailyEventTest, TestRecentNotFired) { … }
TEST_F(DailyEventTest, TestSoonNotFired) { … }
}