Lines Matching refs:FromSeconds
283 EXPECT_TRUE((a - b) < TimeDelta::FromSeconds(1)); in TEST_F()
293 EXPECT_TRUE((a - b) < TimeDelta::FromSeconds(1)); in TEST_F()
757 now_time_ += TimeDelta::FromSeconds(1); in Now()
791 EXPECT_EQ(Time::UnixEpoch() + TimeDelta::FromSeconds(1), Time::Now()); in TEST_F()
792 EXPECT_EQ(Time::UnixEpoch() + TimeDelta::FromSeconds(2), Time::Now()); in TEST_F()
793 EXPECT_EQ(Time::UnixEpoch() + TimeDelta::FromSeconds(3), in TEST_F()
795 EXPECT_EQ(Time::UnixEpoch() + TimeDelta::FromSeconds(4), in TEST_F()
805 EXPECT_EQ(Time::UnixEpoch() + TimeDelta::FromSeconds(5), Time::Now()); in TEST_F()
806 EXPECT_EQ(Time::UnixEpoch() + TimeDelta::FromSeconds(6), in TEST_F()
892 now_ticks_ += TimeDelta::FromSeconds(1); in Now()
918 EXPECT_EQ(TimeTicks::Min() + TimeDelta::FromSeconds(1), TimeTicks::Now()); in TEST()
919 EXPECT_EQ(TimeTicks::Min() + TimeDelta::FromSeconds(2), TimeTicks::Now()); in TEST()
926 EXPECT_EQ(TimeTicks::Min() + TimeDelta::FromSeconds(3), TimeTicks::Now()); in TEST()
939 now_ticks_ += TimeDelta::FromSeconds(1); in Now()
971 EXPECT_EQ(ThreadTicks::Min() + TimeDelta::FromSeconds(1), in TEST()
973 EXPECT_EQ(ThreadTicks::Min() + TimeDelta::FromSeconds(2), in TEST()
981 EXPECT_EQ(ThreadTicks::Min() + TimeDelta::FromSeconds(3), in TEST()
1097 static_assert(TimeDelta::FromMinutes(2) == TimeDelta::FromSeconds(120), ""); in TEST()
1098 static_assert(TimeDelta::FromSeconds(2) == TimeDelta::FromMilliseconds(2000), in TEST()
1110 EXPECT_EQ(TimeDelta::FromSeconds(13).InSeconds(), 13); in TEST()
1111 EXPECT_EQ(TimeDelta::FromSeconds(13).InSecondsF(), 13.0); in TEST()
1130 EXPECT_EQ(TimeDelta::FromSeconds(59).InMinutes(), 0); in TEST()
1131 EXPECT_EQ(TimeDelta::FromSeconds(-59).InMinutes(), 0); in TEST()
1168 TimeDelta delta = TimeDelta::FromSeconds(0); in TEST()
1174 delta = TimeDelta::FromSeconds(1); in TEST()
1297 TimeDelta::FromSeconds(max_int / Time::kMicrosecondsPerSecond + 1) in TEST()
1309 TimeDelta::FromSeconds(min_int / Time::kMicrosecondsPerSecond - 1) in TEST()
1446 constexpr TimeDelta kElevenSeconds = TimeDelta::FromSeconds(11); in TEST()
1447 constexpr TimeDelta kThreeSeconds = TimeDelta::FromSeconds(3); in TEST()
1449 EXPECT_EQ(TimeDelta::FromSeconds(14), kElevenSeconds + kThreeSeconds); in TEST()
1450 EXPECT_EQ(TimeDelta::FromSeconds(14), kThreeSeconds + kElevenSeconds); in TEST()
1451 EXPECT_EQ(TimeDelta::FromSeconds(8), kElevenSeconds - kThreeSeconds); in TEST()
1452 EXPECT_EQ(TimeDelta::FromSeconds(-8), kThreeSeconds - kElevenSeconds); in TEST()
1455 static_assert(TimeDelta::FromSeconds(2) == kElevenSeconds % kThreeSeconds, in TEST()
1472 constexpr TimeDelta kOneSecond = TimeDelta::FromSeconds(1); in TEST()
1551 constexpr TimeDelta kMinusTenSeconds = TimeDelta::FromSeconds(-10); in TEST()