• Home
  • Raw
  • Download

Lines Matching refs:FromMilliseconds

540   t = Time::UnixEpoch() - TimeDelta::FromMilliseconds(1000);  in TEST_F()
552 t = Time::UnixEpoch() - TimeDelta::FromMilliseconds(1001); in TEST_F()
601 t = Time::UnixEpoch() + TimeDelta::FromMilliseconds(1000); in TEST_F()
613 t = Time::UnixEpoch() + TimeDelta::FromMilliseconds(1001); in TEST_F()
824 base::PlatformThread::Sleep(base::TimeDelta::FromMilliseconds(10)); in TEST()
1000 base::PlatformThread::Sleep(base::TimeDelta::FromMilliseconds(10)); in TEST()
1082 TimeTicks::Now() - TimeDelta::FromMilliseconds(1); in TEST()
1098 static_assert(TimeDelta::FromSeconds(2) == TimeDelta::FromMilliseconds(2000), in TEST()
1101 TimeDelta::FromMilliseconds(2) == TimeDelta::FromMicroseconds(2000), ""); in TEST()
1103 TimeDelta::FromSecondsD(2.3) == TimeDelta::FromMilliseconds(2300), ""); in TEST()
1112 EXPECT_EQ(TimeDelta::FromMilliseconds(13).InMilliseconds(), 13); in TEST()
1113 EXPECT_EQ(TimeDelta::FromMilliseconds(13).InMillisecondsF(), 13.0); in TEST()
1132 EXPECT_EQ(TimeDelta::FromMilliseconds(999).InSeconds(), 0); in TEST()
1133 EXPECT_EQ(TimeDelta::FromMilliseconds(-999).InSeconds(), 0); in TEST()
1302 TimeDelta::FromMilliseconds(max_int / Time::kMillisecondsPerSecond + 1) in TEST()
1314 TimeDelta::FromMilliseconds(min_int / Time::kMillisecondsPerSecond - 1) in TEST()
1361 EXPECT_EQ(TimeDelta::FromMilliseconds(500), in TEST()
1362 (TimeDelta::FromMilliseconds(1000) * d)); in TEST()
1363 static_assert(TimeDelta::FromMilliseconds(2000) == in TEST()
1364 (TimeDelta::FromMilliseconds(1000) / d), in TEST()
1366 EXPECT_EQ(TimeDelta::FromMilliseconds(500), in TEST()
1367 (TimeDelta::FromMilliseconds(1000) *= d)); in TEST()
1368 static_assert(TimeDelta::FromMilliseconds(2000) == in TEST()
1369 (TimeDelta::FromMilliseconds(1000) /= d), in TEST()
1371 EXPECT_EQ(TimeDelta::FromMilliseconds(500), in TEST()
1372 (d * TimeDelta::FromMilliseconds(1000))); in TEST()
1375 EXPECT_EQ(TimeDelta::FromMilliseconds(500), in TEST()
1376 (TimeDelta::FromMilliseconds(1000) * f)); in TEST()
1377 static_assert(TimeDelta::FromMilliseconds(2000) == in TEST()
1378 (TimeDelta::FromMilliseconds(1000) / f), in TEST()
1380 EXPECT_EQ(TimeDelta::FromMilliseconds(500), in TEST()
1381 (TimeDelta::FromMilliseconds(1000) *= f)); in TEST()
1382 static_assert(TimeDelta::FromMilliseconds(2000) == in TEST()
1383 (TimeDelta::FromMilliseconds(1000) /= f), in TEST()
1385 EXPECT_EQ(TimeDelta::FromMilliseconds(500), in TEST()
1386 (f * TimeDelta::FromMilliseconds(1000))); in TEST()
1389 EXPECT_EQ(TimeDelta::FromMilliseconds(2000), in TEST()
1390 (TimeDelta::FromMilliseconds(1000) * i)); in TEST()
1391 static_assert(TimeDelta::FromMilliseconds(500) == in TEST()
1392 (TimeDelta::FromMilliseconds(1000) / i), in TEST()
1394 EXPECT_EQ(TimeDelta::FromMilliseconds(2000), in TEST()
1395 (TimeDelta::FromMilliseconds(1000) *= i)); in TEST()
1396 static_assert(TimeDelta::FromMilliseconds(500) == in TEST()
1397 (TimeDelta::FromMilliseconds(1000) /= i), in TEST()
1399 EXPECT_EQ(TimeDelta::FromMilliseconds(2000), in TEST()
1400 (i * TimeDelta::FromMilliseconds(1000))); in TEST()
1403 EXPECT_EQ(TimeDelta::FromMilliseconds(2000), in TEST()
1404 (TimeDelta::FromMilliseconds(1000) * i64)); in TEST()
1405 static_assert(TimeDelta::FromMilliseconds(500) == in TEST()
1406 (TimeDelta::FromMilliseconds(1000) / i64), in TEST()
1408 EXPECT_EQ(TimeDelta::FromMilliseconds(2000), in TEST()
1409 (TimeDelta::FromMilliseconds(1000) *= i64)); in TEST()
1410 static_assert(TimeDelta::FromMilliseconds(500) == in TEST()
1411 (TimeDelta::FromMilliseconds(1000) /= i64), in TEST()
1413 EXPECT_EQ(TimeDelta::FromMilliseconds(2000), in TEST()
1414 (i64 * TimeDelta::FromMilliseconds(1000))); in TEST()
1416 EXPECT_EQ(TimeDelta::FromMilliseconds(500), in TEST()
1417 (TimeDelta::FromMilliseconds(1000) * 0.5)); in TEST()
1418 static_assert(TimeDelta::FromMilliseconds(2000) == in TEST()
1419 (TimeDelta::FromMilliseconds(1000) / 0.5), in TEST()
1421 EXPECT_EQ(TimeDelta::FromMilliseconds(500), in TEST()
1422 (TimeDelta::FromMilliseconds(1000) *= 0.5)); in TEST()
1423 static_assert(TimeDelta::FromMilliseconds(2000) == in TEST()
1424 (TimeDelta::FromMilliseconds(1000) /= 0.5), in TEST()
1426 EXPECT_EQ(TimeDelta::FromMilliseconds(500), in TEST()
1427 (0.5 * TimeDelta::FromMilliseconds(1000))); in TEST()
1429 EXPECT_EQ(TimeDelta::FromMilliseconds(2000), in TEST()
1430 (TimeDelta::FromMilliseconds(1000) * 2)); in TEST()
1431 static_assert(TimeDelta::FromMilliseconds(500) == in TEST()
1432 (TimeDelta::FromMilliseconds(1000) / 2), in TEST()
1434 EXPECT_EQ(TimeDelta::FromMilliseconds(2000), in TEST()
1435 (TimeDelta::FromMilliseconds(1000) *= 2)); in TEST()
1436 static_assert(TimeDelta::FromMilliseconds(500) == in TEST()
1437 (TimeDelta::FromMilliseconds(1000) /= 2), in TEST()
1439 EXPECT_EQ(TimeDelta::FromMilliseconds(2000), in TEST()
1440 (2 * TimeDelta::FromMilliseconds(1000))); in TEST()
1467 TimeDelta large_delta = TimeDelta::Max() - TimeDelta::FromMilliseconds(1); in TEST()
1546 constexpr TimeDelta kFiveHundredMs = TimeDelta::FromMilliseconds(500); in TEST()