Lines Matching refs:UnixEpoch
78 constexpr absl::Time t0 = absl::UnixEpoch(); in TEST()
110 TEST(Time, UnixEpoch) { in TEST() argument
111 const auto ci = absl::UTCTimeZone().At(absl::UnixEpoch()); in TEST()
119 absl::Time t = absl::UnixEpoch(); in TEST()
162 t = absl::UnixEpoch(); in TEST()
164 EXPECT_EQ(absl::UnixEpoch() + absl::Milliseconds(500), t); in TEST()
166 EXPECT_EQ(absl::UnixEpoch() + absl::Milliseconds(1100), t); in TEST()
168 EXPECT_EQ(absl::UnixEpoch() + absl::Milliseconds(500), t); in TEST()
170 EXPECT_EQ(absl::UnixEpoch(), t); in TEST()
226 constexpr absl::Time t = absl::UnixEpoch(); // Any finite time. in TEST()
254 EXPECT_EQ(1, absl::ToUnixNanos(absl::UnixEpoch() + absl::Nanoseconds(3) / 2)); in TEST()
255 EXPECT_EQ(1, absl::ToUnixNanos(absl::UnixEpoch() + absl::Nanoseconds(1))); in TEST()
256 EXPECT_EQ(0, absl::ToUnixNanos(absl::UnixEpoch() + absl::Nanoseconds(1) / 2)); in TEST()
257 EXPECT_EQ(0, absl::ToUnixNanos(absl::UnixEpoch() + absl::Nanoseconds(0))); in TEST()
259 absl::ToUnixNanos(absl::UnixEpoch() - absl::Nanoseconds(1) / 2)); in TEST()
260 EXPECT_EQ(-1, absl::ToUnixNanos(absl::UnixEpoch() - absl::Nanoseconds(1))); in TEST()
262 absl::ToUnixNanos(absl::UnixEpoch() - absl::Nanoseconds(3) / 2)); in TEST()
579 absl::ToChronoTime(absl::UnixEpoch() - tick)); in TEST()
909 absl::Time bases[2] = {absl::UnixEpoch(), absl::Now()}; in TEST()
938 EXPECT_GE(absl::UnixEpoch(), min); in TEST()
939 EXPECT_LT(absl::UnixEpoch(), max); in TEST()
1073 absl::UnixEpoch() + absl::Seconds(std::numeric_limits<int64_t>::max()), t); in TEST()
1081 absl::UnixEpoch() + absl::Seconds(std::numeric_limits<int64_t>::max()), t); in TEST()
1095 absl::UnixEpoch() + absl::Seconds(std::numeric_limits<int64_t>::min()), t); in TEST()
1104 absl::UnixEpoch() + absl::Seconds(std::numeric_limits<int64_t>::min()), t); in TEST()