Lines Matching refs:Milliseconds
88 constexpr absl::Duration milli = absl::Milliseconds(1); in TEST()
98 EXPECT_EQ(sec, absl::Milliseconds(1000)); in TEST()
145 TEST_DURATION_CONVERSION(Milliseconds); in TEST()
169 const absl::Duration milli = absl::Milliseconds(N); in TestToConversion()
218 static_assert(absl::Milliseconds(N) == absl::FromChrono(milliseconds(N)), ""); in TestFromChronoBasicEquality()
283 EXPECT_EQ(milliseconds(N), absl::ToChronoMilliseconds(absl::Milliseconds(N))); in TestToChrono()
369 TEST_FACTORY_OVERLOADS(absl::Milliseconds); in TEST()
376 EXPECT_EQ(absl::Milliseconds(1500), absl::Seconds(1.5)); in TEST()
383 EXPECT_EQ(absl::InfiniteDuration(), absl::Milliseconds(dbl_inf)); in TEST()
389 EXPECT_EQ(-absl::InfiniteDuration(), absl::Milliseconds(-dbl_inf)); in TEST()
619 EXPECT_EQ(absl::ZeroDuration(), sec_max % absl::Milliseconds(1)); in TEST()
688 absl::IDivDuration(sec_max, absl::Milliseconds(1), &rem)); in TEST()
689 EXPECT_EQ(sec_max - absl::Milliseconds(kint64max), rem); in TEST()
693 absl::IDivDuration(-sec_max, -absl::Milliseconds(1), &rem)); in TEST()
694 EXPECT_EQ(-sec_max + absl::Milliseconds(kint64max), rem); in TEST()
698 absl::IDivDuration(-sec_max, absl::Milliseconds(1), &rem)); in TEST()
699 EXPECT_EQ(-sec_max - absl::Milliseconds(kint64min), rem); in TEST()
703 absl::IDivDuration(sec_max, -absl::Milliseconds(1), &rem)); in TEST()
704 EXPECT_EQ(sec_max + absl::Milliseconds(kint64min), rem); in TEST()
732 EXPECT_EQ(kint64max, sec_max / absl::Milliseconds(1)); in TEST()
733 EXPECT_EQ(kint64max, -sec_max / -absl::Milliseconds(1)); in TEST()
734 EXPECT_EQ(kint64min, -sec_max / absl::Milliseconds(1)); in TEST()
735 EXPECT_EQ(kint64min, sec_max / -absl::Milliseconds(1)); in TEST()
824 TEST_NAN_HANDLING(absl::Milliseconds, nan); in TEST()
831 TEST_NAN_HANDLING(absl::Milliseconds, -nan); in TEST()
872 TEST_REL_OPS(absl::Milliseconds); in TEST()
898 TEST_ADD_OPS(absl::Milliseconds); in TEST()
905 EXPECT_EQ(absl::Seconds(2), absl::Seconds(3) - 2 * absl::Milliseconds(500)); in TEST()
906 EXPECT_EQ(absl::Seconds(2) + absl::Milliseconds(500), in TEST()
907 absl::Seconds(3) - absl::Milliseconds(500)); in TEST()
909 EXPECT_EQ(absl::Seconds(1) + absl::Milliseconds(998), in TEST()
910 absl::Milliseconds(999) + absl::Milliseconds(999)); in TEST()
912 EXPECT_EQ(absl::Milliseconds(-1), in TEST()
913 absl::Milliseconds(998) - absl::Milliseconds(999)); in TEST()
923 absl::Duration d_7_5 = absl::Seconds(7) + absl::Milliseconds(500); in TEST()
924 absl::Duration d_3_7 = absl::Seconds(3) + absl::Milliseconds(700); in TEST()
925 absl::Duration ans_3_8 = absl::Seconds(3) + absl::Milliseconds(800); in TEST()
1025 TEST_MUL_OPS(absl::Milliseconds); in TEST()
1053 EXPECT_EQ(absl::Seconds(7) + absl::Milliseconds(500), absl::Seconds(3) * 2.5); in TEST()
1054 EXPECT_EQ(absl::Seconds(8) * -1 + absl::Milliseconds(300), in TEST()
1055 (absl::Seconds(2) + absl::Milliseconds(200)) * -3.5); in TEST()
1056 EXPECT_EQ(-absl::Seconds(8) + absl::Milliseconds(300), in TEST()
1057 (absl::Seconds(2) + absl::Milliseconds(200)) * -3.5); in TEST()
1058 EXPECT_EQ(absl::Seconds(1) + absl::Milliseconds(875), in TEST()
1059 (absl::Seconds(7) + absl::Milliseconds(500)) / 4); in TEST()
1061 (absl::Seconds(7) + absl::Milliseconds(500)) / 0.25); in TEST()
1063 (absl::Seconds(7) + absl::Milliseconds(500)) / 2.5); in TEST()
1079 EXPECT_EQ(absl::Milliseconds(100), in TEST()
1080 absl::Seconds(1) % absl::Milliseconds(300)); in TEST()
1082 absl::Milliseconds(300), in TEST()
1083 (absl::Seconds(3) + absl::Milliseconds(800)) % absl::Milliseconds(500)); in TEST()
1135 EXPECT_EQ(absl::Milliseconds(1234), in TEST()
1136 Trunc(d, unit_sign * absl::Milliseconds(1))); in TEST()
1144 EXPECT_EQ(absl::Milliseconds(-1234), in TEST()
1145 Trunc(-d, unit_sign * absl::Milliseconds(1))); in TEST()
1159 EXPECT_EQ(absl::Milliseconds(1234), in TEST()
1160 absl::Floor(d, unit_sign * absl::Milliseconds(1))); in TEST()
1168 EXPECT_EQ(absl::Milliseconds(-1235), in TEST()
1169 absl::Floor(-d, unit_sign * absl::Milliseconds(1))); in TEST()
1183 EXPECT_EQ(absl::Milliseconds(1235), in TEST()
1184 absl::Ceil(d, unit_sign * absl::Milliseconds(1))); in TEST()
1192 EXPECT_EQ(absl::Milliseconds(-1234), in TEST()
1193 absl::Ceil(-d, unit_sign * absl::Milliseconds(1))); in TEST()
1223 ROUND_TRIP_UNIT(Milliseconds, kint64min, kint64min + kRange); in TEST()
1224 ROUND_TRIP_UNIT(Milliseconds, -kRange, kRange); in TEST()
1225 ROUND_TRIP_UNIT(Milliseconds, kint64max - kRange, kint64max); in TEST()
1530 absl::Milliseconds(500))); in TEST()
1542 EXPECT_EQ("1ms", absl::FormatDuration(absl::Milliseconds(1))); in TEST()
1552 absl::FormatDuration(absl::Hours(1) + absl::Milliseconds(250))); in TEST()
1554 absl::FormatDuration(absl::Minutes(1) + absl::Milliseconds(250))); in TEST()
1557 absl::Milliseconds(250))); in TEST()
1572 EXPECT_EQ("1.2ms", absl::FormatDuration(absl::Milliseconds(1) + in TEST()
1574 EXPECT_EQ("1.0002ms", absl::FormatDuration(absl::Milliseconds(1) + in TEST()
1576 EXPECT_EQ("1.00001ms", absl::FormatDuration(absl::Milliseconds(1) + in TEST()
1579 absl::FormatDuration(absl::Milliseconds(1) + absl::Nanoseconds(1))); in TEST()
1584 EXPECT_EQ("-1ms", absl::FormatDuration(absl::Milliseconds(-1))); in TEST()
1600 -(absl::Milliseconds(1) + absl::Microseconds(200)))); in TEST()
1601 EXPECT_EQ("-1.0002ms", absl::FormatDuration(-(absl::Milliseconds(1) + in TEST()
1603 EXPECT_EQ("-1.00001ms", absl::FormatDuration(-(absl::Milliseconds(1) + in TEST()
1605 EXPECT_EQ("-1.000001ms", absl::FormatDuration(-(absl::Milliseconds(1) + in TEST()
1626 absl::FormatDuration(absl::Milliseconds(55) + qns)); in TEST()
1704 EXPECT_EQ(absl::Milliseconds(1), d); in TEST()
1725 absl::Milliseconds(5) + absl::Microseconds(6) + in TEST()
1741 EXPECT_EQ(1.5 * absl::Milliseconds(1), d); in TEST()
1781 TEST_PARSE_ROUNDTRIP(absl::Milliseconds(1)); in TEST()
1789 TEST_PARSE_ROUNDTRIP(absl::Milliseconds(-1)); in TEST()