Home
last modified time | relevance | path

Searched refs:strict_cast (Results 1 – 4 of 4) sorted by relevance

/external/libweave/third_party/chromium/base/numerics/
Dsafe_conversions.h105 inline Dst strict_cast(Src value) { in strict_cast() function
142 : value_(strict_cast<T>(rhs.value_)) {} in StrictNumeric()
148 : value_(strict_cast<T>(value)) {} in StrictNumeric()
153 return strict_cast<Dst>(value_); in Dst()
Dsafe_numerics_unittest.cc26 using base::strict_cast;
622 EXPECT_EQ(0, strict_cast<int>(static_cast<char>(0))); in TEST()
623 EXPECT_EQ(0, strict_cast<int>(static_cast<unsigned char>(0))); in TEST()
624 EXPECT_EQ(0U, strict_cast<unsigned>(static_cast<unsigned char>(0))); in TEST()
/external/libchrome/base/numerics/
Dsafe_conversions.h105 inline Dst strict_cast(Src value) { in strict_cast() function
142 : value_(strict_cast<T>(rhs.value_)) {} in StrictNumeric()
148 : value_(strict_cast<T>(value)) {} in StrictNumeric()
153 return strict_cast<Dst>(value_); in Dst()
Dsafe_numerics_unittest.cc30 using base::strict_cast;
626 EXPECT_EQ(0, strict_cast<int>(static_cast<char>(0))); in TEST()
627 EXPECT_EQ(0, strict_cast<int>(static_cast<unsigned char>(0))); in TEST()
628 EXPECT_EQ(0U, strict_cast<unsigned>(static_cast<unsigned char>(0))); in TEST()