Home
last modified time | relevance | path

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

/external/libchrome/base/strings/
Dsafe_sprintf.cc81 const size_t kSSizeMax = kSSizeMaxConst; variable
90 static size_t kSSizeMax = kSSizeMaxConst; variable
95 kSSizeMax = max; in SetSafeSPrintfSSizeMaxForTest()
99 return kSSizeMax; in GetSafeSPrintfSSizeMaxForTest()
125 DEBUG_CHECK(size <= kSSizeMax); in Buffer()
142 return count_ == static_cast<size_t>(kSSizeMax - 1); in OutOfAddressableSpace()
150 DEBUG_CHECK(count_ < kSSizeMax); in GetCount()
180 DEBUG_CHECK(padding <= kSSizeMax); in Pad()
235 DEBUG_CHECK(inc <= kSSizeMax - 1); in IncrementCount()
236 if (count_ > kSSizeMax - 1 - inc) { in IncrementCount()
[all …]
Dsafe_sprintf_unittest.cc447 const size_t kSSizeMax = std::numeric_limits<ssize_t>::max(); in PrintLongString() local
449 const size_t kSSizeMax = internal::GetSafeSPrintfSSizeMaxForTest(); in PrintLongString() local
453 EXPECT_EQ(std::string(ref).substr(0, kSSizeMax-1), std::string(tmp.get())); in PrintLongString()