Home
last modified time | relevance | path

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

/external/libbrillo/brillo/streams/
Dstream_utils_unittest.cc74 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()
Dstream_utils.cc123 bool CheckInt64Overflow(const base::Location& location, in CheckInt64Overflow() function
181 if (!CheckInt64Overflow(location, pos, offset, error)) in CalculateStreamPosition()
Dstream_utils.h39 BRILLO_EXPORT bool CheckInt64Overflow(
Dstream.cc22 if (!stream_utils::CheckInt64Overflow(FROM_HERE, position, 0, error)) in SetPosition()
Dfile_stream.cc381 if (!stream_utils::CheckInt64Overflow(FROM_HERE, size, 0, error)) in SetSizeBlocking()