Lines Matching refs:FromMicroseconds
127 const TimeDelta delta = TimeDelta::FromMicroseconds(123); in TEST_F()
504 t = Time::UnixEpoch() - TimeDelta::FromMicroseconds(1); in TEST_F()
516 t = Time::UnixEpoch() - TimeDelta::FromMicroseconds(1000); in TEST_F()
528 t = Time::UnixEpoch() - TimeDelta::FromMicroseconds(1001); in TEST_F()
577 t = Time::UnixEpoch() + TimeDelta::FromMicroseconds(1); in TEST_F()
589 t = Time::UnixEpoch() + TimeDelta::FromMicroseconds(1000); in TEST_F()
1015 base::TimeDelta interval = base::TimeDelta::FromMicroseconds(1000); in TEST()
1058 base::TimeDelta interval = base::TimeDelta::FromMicroseconds(4000); in TEST()
1101 TimeDelta::FromMilliseconds(2) == TimeDelta::FromMicroseconds(2000), ""); in TEST()
1105 TimeDelta::FromMillisecondsD(2.5) == TimeDelta::FromMicroseconds(2500), in TEST()
1118 EXPECT_EQ(TimeDelta::FromMicroseconds(13).InMicroseconds(), 13); in TEST()
1134 EXPECT_EQ(TimeDelta::FromMicroseconds(999).InMilliseconds(), 0); in TEST()
1135 EXPECT_EQ(TimeDelta::FromMicroseconds(-999).InMilliseconds(), 0); in TEST()
1153 EXPECT_EQ(TimeDelta::FromMicroseconds(-1001).InMillisecondsRoundedUp(), -1); in TEST()
1154 EXPECT_EQ(TimeDelta::FromMicroseconds(-1000).InMillisecondsRoundedUp(), -1); in TEST()
1155 EXPECT_EQ(TimeDelta::FromMicroseconds(-999).InMillisecondsRoundedUp(), 0); in TEST()
1157 EXPECT_EQ(TimeDelta::FromMicroseconds(-1).InMillisecondsRoundedUp(), 0); in TEST()
1158 EXPECT_EQ(TimeDelta::FromMicroseconds(0).InMillisecondsRoundedUp(), 0); in TEST()
1159 EXPECT_EQ(TimeDelta::FromMicroseconds(1).InMillisecondsRoundedUp(), 1); in TEST()
1161 EXPECT_EQ(TimeDelta::FromMicroseconds(999).InMillisecondsRoundedUp(), 1); in TEST()
1162 EXPECT_EQ(TimeDelta::FromMicroseconds(1000).InMillisecondsRoundedUp(), 1); in TEST()
1163 EXPECT_EQ(TimeDelta::FromMicroseconds(1001).InMillisecondsRoundedUp(), 2); in TEST()
1180 delta = TimeDelta::FromMicroseconds(1); in TEST()
1186 delta = TimeDelta::FromMicroseconds(Time::kMicrosecondsPerSecond + 1); in TEST()
1227 static_assert(TimeDelta::FromMicroseconds(zero) == in TEST()
1228 TimeDelta::FromMicroseconds(zero).magnitude(), in TEST()
1233 static_assert(TimeDelta::FromMicroseconds(one) == in TEST()
1234 TimeDelta::FromMicroseconds(one).magnitude(), in TEST()
1236 static_assert(TimeDelta::FromMicroseconds(one) == in TEST()
1237 TimeDelta::FromMicroseconds(negative_one).magnitude(), in TEST()
1245 TimeDelta::FromMicroseconds(max_int64_minus_one) == in TEST()
1246 TimeDelta::FromMicroseconds(max_int64_minus_one).magnitude(), in TEST()
1248 static_assert(TimeDelta::FromMicroseconds(max_int64_minus_one) == in TEST()
1249 TimeDelta::FromMicroseconds(min_int64_plus_two).magnitude(), in TEST()
1306 static_assert(TimeDelta::FromMicroseconds(max_int).is_max(), ""); in TEST()
1318 static_assert(TimeDelta::FromMicroseconds(min_int).is_min(), ""); in TEST()
1321 TimeDelta::FromMicroseconds(std::numeric_limits<int64_t>::min()).is_min(), in TEST()