Lines Matching refs:saturated_cast
29 using base::saturated_cast;
656 EXPECT_EQ(saturated_cast<int>(small_negative),
658 EXPECT_EQ(saturated_cast<int>(small_positive),
660 EXPECT_EQ(saturated_cast<unsigned>(small_negative),
662 EXPECT_EQ(saturated_cast<int>(double_small),
664 EXPECT_EQ(saturated_cast<int>(double_large), numeric_limits<int>::max());
665 EXPECT_EQ(saturated_cast<float>(double_large), double_infinity);
666 EXPECT_EQ(saturated_cast<float>(-double_large), -double_infinity);
667 EXPECT_EQ(numeric_limits<int>::min(), saturated_cast<int>(double_small_int));
668 EXPECT_EQ(numeric_limits<int>::max(), saturated_cast<int>(double_large_int));
673 EXPECT_EQ(0, saturated_cast<int>(not_a_number));
682 EXPECT_DEATH((saturated_cast<int, base::SaturatedCastNaNBehaviorCheck>(