Searched refs:CheckInt64Overflow (Results 1 - 5 of 5) sorted by relevance

/external/libbrillo/brillo/streams/
H A Dstream_utils_unittest.cc74 TEST(StreamUtils, CheckInt64Overflow) {
77 EXPECT_TRUE(stream_utils::CheckInt64Overflow(FROM_HERE, 0, 0, nullptr));
78 EXPECT_TRUE(stream_utils::CheckInt64Overflow(
80 EXPECT_TRUE(stream_utils::CheckInt64Overflow(
82 EXPECT_TRUE(stream_utils::CheckInt64Overflow(FROM_HERE, 100, -90, nullptr));
83 EXPECT_TRUE(stream_utils::CheckInt64Overflow(
87 EXPECT_FALSE(stream_utils::CheckInt64Overflow(FROM_HERE, 100, -101, &error));
92 EXPECT_FALSE(stream_utils::CheckInt64Overflow(
94 EXPECT_FALSE(stream_utils::CheckInt64Overflow(
96 EXPECT_FALSE(stream_utils::CheckInt64Overflow(
[all...]
H A Dstream_utils.h39 BRILLO_EXPORT bool CheckInt64Overflow(
H A Dstream_utils.cc123 bool CheckInt64Overflow(const tracked_objects::Location& location, function in namespace:brillo::stream_utils
181 if (!CheckInt64Overflow(location, pos, offset, error))
H A Dstream.cc22 if (!stream_utils::CheckInt64Overflow(FROM_HERE, position, 0, error))
H A Dfile_stream.cc381 if (!stream_utils::CheckInt64Overflow(FROM_HERE, size, 0, error))

Completed in 105 milliseconds