Home
last modified time | relevance | path

Searched refs:TEST_EXPECTED_VALUE (Results 1 – 2 of 2) sorted by relevance

/external/libchrome/base/numerics/
Dsafe_numerics_unittest.cc71 #define TEST_EXPECTED_VALUE(expected, actual) \ macro
90 TEST_EXPECTED_VALUE(1, CheckedNumeric<Dst>(-1).Abs()); in TestSpecializedArithmetic()
116 TEST_EXPECTED_VALUE(0, CheckedNumeric<Dst>(-1) / 2); in TestSpecializedArithmetic()
119 TEST_EXPECTED_VALUE(0, CheckedNumeric<Dst>() % 1); in TestSpecializedArithmetic()
120 TEST_EXPECTED_VALUE(0, CheckedNumeric<Dst>(1) % 1); in TestSpecializedArithmetic()
121 TEST_EXPECTED_VALUE(-1, CheckedNumeric<Dst>(-1) % 2); in TestSpecializedArithmetic()
123 TEST_EXPECTED_VALUE(0, CheckedNumeric<Dst>(DstLimits::min()) % 2); in TestSpecializedArithmetic()
124 TEST_EXPECTED_VALUE(1, CheckedNumeric<Dst>(DstLimits::max()) % 2); in TestSpecializedArithmetic()
126 TEST_EXPECTED_VALUE(0, CheckedNumeric<Dst>(1) % CheckedNumeric<Dst>(1)); in TestSpecializedArithmetic()
127 TEST_EXPECTED_VALUE(0, 1 % CheckedNumeric<Dst>(1)); in TestSpecializedArithmetic()
[all …]
/external/libweave/third_party/chromium/base/numerics/
Dsafe_numerics_unittest.cc67 #define TEST_EXPECTED_VALUE(expected, actual) \ macro
86 TEST_EXPECTED_VALUE(1, CheckedNumeric<Dst>(-1).Abs()); in TestSpecializedArithmetic()
112 TEST_EXPECTED_VALUE(0, CheckedNumeric<Dst>(-1) / 2); in TestSpecializedArithmetic()
115 TEST_EXPECTED_VALUE(0, CheckedNumeric<Dst>() % 1); in TestSpecializedArithmetic()
116 TEST_EXPECTED_VALUE(0, CheckedNumeric<Dst>(1) % 1); in TestSpecializedArithmetic()
117 TEST_EXPECTED_VALUE(-1, CheckedNumeric<Dst>(-1) % 2); in TestSpecializedArithmetic()
119 TEST_EXPECTED_VALUE(0, CheckedNumeric<Dst>(DstLimits::min()) % 2); in TestSpecializedArithmetic()
120 TEST_EXPECTED_VALUE(1, CheckedNumeric<Dst>(DstLimits::max()) % 2); in TestSpecializedArithmetic()
122 TEST_EXPECTED_VALUE(0, CheckedNumeric<Dst>(1) % CheckedNumeric<Dst>(1)); in TestSpecializedArithmetic()
123 TEST_EXPECTED_VALUE(0, 1 % CheckedNumeric<Dst>(1)); in TestSpecializedArithmetic()
[all …]