• Home
  • Raw
  • Download

Lines Matching refs:UnixEpoch

80   constexpr absl::Time t0 = absl::UnixEpoch();  in TEST()
112 TEST(Time, UnixEpoch) { in TEST() argument
113 const auto ci = absl::UTCTimeZone().At(absl::UnixEpoch()); in TEST()
121 absl::Time t = absl::UnixEpoch(); in TEST()
164 t = absl::UnixEpoch(); in TEST()
166 EXPECT_EQ(absl::UnixEpoch() + absl::Milliseconds(500), t); in TEST()
168 EXPECT_EQ(absl::UnixEpoch() + absl::Milliseconds(1100), t); in TEST()
170 EXPECT_EQ(absl::UnixEpoch() + absl::Milliseconds(500), t); in TEST()
172 EXPECT_EQ(absl::UnixEpoch(), t); in TEST()
228 constexpr absl::Time t = absl::UnixEpoch(); // Any finite time. in TEST()
253 EXPECT_EQ(1, absl::ToUnixNanos(absl::UnixEpoch() + absl::Nanoseconds(3) / 2)); in TEST()
254 EXPECT_EQ(1, absl::ToUnixNanos(absl::UnixEpoch() + absl::Nanoseconds(1))); in TEST()
255 EXPECT_EQ(0, absl::ToUnixNanos(absl::UnixEpoch() + absl::Nanoseconds(1) / 2)); in TEST()
256 EXPECT_EQ(0, absl::ToUnixNanos(absl::UnixEpoch() + absl::Nanoseconds(0))); in TEST()
258 absl::ToUnixNanos(absl::UnixEpoch() - absl::Nanoseconds(1) / 2)); in TEST()
259 EXPECT_EQ(-1, absl::ToUnixNanos(absl::UnixEpoch() - absl::Nanoseconds(1))); in TEST()
261 absl::ToUnixNanos(absl::UnixEpoch() - absl::Nanoseconds(3) / 2)); in TEST()
576 absl::ToChronoTime(absl::UnixEpoch() - tick)); in TEST()
906 absl::Time bases[2] = {absl::UnixEpoch(), absl::Now()}; in TEST()
935 EXPECT_GE(absl::UnixEpoch(), min); in TEST()
936 EXPECT_LT(absl::UnixEpoch(), max); in TEST()
1070 absl::UnixEpoch() + absl::Seconds(std::numeric_limits<int64_t>::max()), t); in TEST()
1078 absl::UnixEpoch() + absl::Seconds(std::numeric_limits<int64_t>::max()), t); in TEST()
1092 absl::UnixEpoch() + absl::Seconds(std::numeric_limits<int64_t>::min()), t); in TEST()
1101 absl::UnixEpoch() + absl::Seconds(std::numeric_limits<int64_t>::min()), t); in TEST()