#include "components/feature_engagement/internal/system_time_provider.h"
#include "base/time/time.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace feature_engagement {
namespace {
base::Time GetTime(int year, int month, int day) { … }
class TestSystemTimeProvider : public SystemTimeProvider { … };
class SystemTimeProviderTest : public ::testing::Test { … };
}
TEST_F(SystemTimeProviderTest, EpochIs0Days) { … }
TEST_F(SystemTimeProviderTest, TestDeltasFromEpoch) { … }
TEST_F(SystemTimeProviderTest, TestNegativeDeltasFromEpoch) { … }
TEST_F(SystemTimeProviderTest, TestManualDatesAroundEpoch) { … }
TEST_F(SystemTimeProviderTest, TestManualDatesAroundGoogleIO2017) { … }
}