Home
last modified time | relevance | path

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

/bionic/tests/
Dsstream_test.cpp26 static void CheckOverflow(T expected, const char* value, bool should_overflow) { in CheckOverflow() function
43 CheckOverflow<int16_t>(std::numeric_limits<int16_t>::min(), "-32768", false); in TEST()
44 CheckOverflow<int16_t>(0, "-32769", true); in TEST()
45 CheckOverflow<int16_t>(std::numeric_limits<int16_t>::max(), "32767", false); in TEST()
46 CheckOverflow<int16_t>(0, "32768", true); in TEST()
48 CheckOverflow<uint16_t>(std::numeric_limits<uint16_t>::max(), "65535", false); in TEST()
49 CheckOverflow<uint16_t>(0, "65536", true); in TEST()
53 CheckOverflow<int32_t>(std::numeric_limits<int32_t>::min(), "-2147483648", false); in TEST()
54 CheckOverflow<int32_t>(0, "-2147483649", true); in TEST()
55 CheckOverflow<int32_t>(std::numeric_limits<int32_t>::max(), "2147483647", false); in TEST()
[all …]