Searched refs:CheckInt64Overflow (Results 1 – 5 of 5) sorted by relevance
/external/libbrillo/brillo/streams/ |
D | stream_utils_unittest.cc | 74 TEST(StreamUtils, CheckInt64Overflow) { in TEST() argument 77 EXPECT_TRUE(stream_utils::CheckInt64Overflow(FROM_HERE, 0, 0, nullptr)); in TEST() 78 EXPECT_TRUE(stream_utils::CheckInt64Overflow( in TEST() 80 EXPECT_TRUE(stream_utils::CheckInt64Overflow( in TEST() 82 EXPECT_TRUE(stream_utils::CheckInt64Overflow(FROM_HERE, 100, -90, nullptr)); in TEST() 83 EXPECT_TRUE(stream_utils::CheckInt64Overflow( in TEST() 87 EXPECT_FALSE(stream_utils::CheckInt64Overflow(FROM_HERE, 100, -101, &error)); in TEST() 92 EXPECT_FALSE(stream_utils::CheckInt64Overflow( in TEST() 94 EXPECT_FALSE(stream_utils::CheckInt64Overflow( in TEST() 96 EXPECT_FALSE(stream_utils::CheckInt64Overflow( in TEST()
|
D | stream_utils.cc | 123 bool CheckInt64Overflow(const base::Location& location, in CheckInt64Overflow() function 181 if (!CheckInt64Overflow(location, pos, offset, error)) in CalculateStreamPosition()
|
D | stream_utils.h | 39 BRILLO_EXPORT bool CheckInt64Overflow(
|
D | stream.cc | 22 if (!stream_utils::CheckInt64Overflow(FROM_HERE, position, 0, error)) in SetPosition()
|
D | file_stream.cc | 381 if (!stream_utils::CheckInt64Overflow(FROM_HERE, size, 0, error)) in SetSizeBlocking()
|