Home
last modified time | relevance | path

Searched refs:IsValueNegative (Results 1 – 6 of 6) sorted by relevance

/external/libchrome/base/numerics/
Dsafe_numerics_unittest.cc26 using base::IsValueNegative;
637 EXPECT_TRUE(IsValueNegative(-1)); in TEST()
638 EXPECT_TRUE(IsValueNegative(numeric_limits<int>::min())); in TEST()
639 EXPECT_FALSE(IsValueNegative(numeric_limits<unsigned>::min())); in TEST()
640 EXPECT_TRUE(IsValueNegative(-numeric_limits<double>::max())); in TEST()
641 EXPECT_FALSE(IsValueNegative(0)); in TEST()
642 EXPECT_FALSE(IsValueNegative(1)); in TEST()
643 EXPECT_FALSE(IsValueNegative(0u)); in TEST()
644 EXPECT_FALSE(IsValueNegative(1u)); in TEST()
645 EXPECT_FALSE(IsValueNegative(numeric_limits<int>::max())); in TEST()
[all …]
Dsafe_conversions.h30 IsValueNegative(T value) { in IsValueNegative() function
38 IsValueNegative(T) { in IsValueNegative() function
/external/libweave/third_party/chromium/base/numerics/
Dsafe_numerics_unittest.cc22 using base::IsValueNegative;
633 EXPECT_TRUE(IsValueNegative(-1)); in TEST()
634 EXPECT_TRUE(IsValueNegative(numeric_limits<int>::min())); in TEST()
635 EXPECT_FALSE(IsValueNegative(numeric_limits<unsigned>::min())); in TEST()
636 EXPECT_TRUE(IsValueNegative(-numeric_limits<double>::max())); in TEST()
637 EXPECT_FALSE(IsValueNegative(0)); in TEST()
638 EXPECT_FALSE(IsValueNegative(1)); in TEST()
639 EXPECT_FALSE(IsValueNegative(0u)); in TEST()
640 EXPECT_FALSE(IsValueNegative(1u)); in TEST()
641 EXPECT_FALSE(IsValueNegative(numeric_limits<int>::max())); in TEST()
[all …]
Dsafe_conversions.h30 IsValueNegative(T value) { in IsValueNegative() function
38 IsValueNegative(T) { in IsValueNegative() function
/external/libweave/third_party/chromium/base/strings/
Dstring_number_conversions.cc47 if (IsValueNegative(value)) { in IntToString()
/external/libchrome/base/strings/
Dstring_number_conversions.cc48 if (IsValueNegative(value)) { in IntToString()