#include "ui/message_center/views/relative_time_formatter.h"
#include "base/time/time.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "ui/base/l10n/l10n_util.h"
#include "ui/strings/grit/ui_strings.h"
namespace message_center {
namespace {
constexpr base::TimeDelta kYearTimeDelta = …;
std::u16string GetRelativeTime(base::TimeDelta delta) { … }
base::TimeDelta GetNextUpdate(base::TimeDelta delta) { … }
}
TEST(RelativeTimeFormatterTest, Format_Future_30Sec) { … }
TEST(RelativeTimeFormatterTest, Format_Past_30Sec) { … }
TEST(RelativeTimeFormatterTest, Format_Future_60Sec) { … }
TEST(RelativeTimeFormatterTest, Format_Past_60Sec) { … }
TEST(RelativeTimeFormatterTest, Format_Future_5Min) { … }
TEST(RelativeTimeFormatterTest, Format_Past_5Min) { … }
TEST(RelativeTimeFormatterTest, Format_Future_60Min) { … }
TEST(RelativeTimeFormatterTest, Format_Past_60Min) { … }
TEST(RelativeTimeFormatterTest, Format_Future_10Hrs) { … }
TEST(RelativeTimeFormatterTest, Format_Past_10Hrs) { … }
TEST(RelativeTimeFormatterTest, Format_Future_24Hrs) { … }
TEST(RelativeTimeFormatterTest, Format_Past_24Hrs) { … }
TEST(RelativeTimeFormatterTest, Format_Future_1Year) { … }
TEST(RelativeTimeFormatterTest, Format_Past_1Year) { … }
TEST(RelativeTimeFormatterTest, Format_Future_10Years) { … }
TEST(RelativeTimeFormatterTest, Format_Past_10Years) { … }
TEST(RelativeTimeFormatterTest, Update_Future_Year) { … }
TEST(RelativeTimeFormatterTest, Update_Future_Day) { … }
TEST(RelativeTimeFormatterTest, Update_Future_Hour) { … }
TEST(RelativeTimeFormatterTest, Update_Future_Minute) { … }
TEST(RelativeTimeFormatterTest, Update_Future_Now) { … }
TEST(RelativeTimeFormatterTest, Update_Past_Now) { … }
TEST(RelativeTimeFormatterTest, Update_Past_Minute) { … }
TEST(RelativeTimeFormatterTest, Update_Past_Hour) { … }
TEST(RelativeTimeFormatterTest, Update_Past_Day) { … }
TEST(RelativeTimeFormatterTest, Update_Past_Year) { … }
}