Home
last modified time | relevance | path

Searched refs:kSSizeMax (Results 1 – 4 of 4) 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()
/external/cronet/base/strings/
Dsafe_sprintf.cc82 const size_t kSSizeMax = kSSizeMaxConst; variable
91 static size_t kSSizeMax = kSSizeMaxConst; variable
96 kSSizeMax = max; in SetSafeSPrintfSSizeMaxForTest()
100 return kSSizeMax; in GetSafeSPrintfSSizeMaxForTest()
126 DEBUG_CHECK(size <= kSSizeMax); in Buffer()
146 return count_ == static_cast<size_t>(kSSizeMax - 1); in OutOfAddressableSpace()
154 DEBUG_CHECK(count_ < kSSizeMax); in GetCount()
184 DEBUG_CHECK(padding <= kSSizeMax); in Pad()
244 DEBUG_CHECK(inc <= kSSizeMax - 1); in IncrementCount()
245 if (count_ > kSSizeMax - 1 - inc) { in IncrementCount()
[all …]
Dsafe_sprintf_unittest.cc448 const size_t kSSizeMax = std::numeric_limits<ssize_t>::max(); in PrintLongString() local
450 const size_t kSSizeMax = internal::GetSafeSPrintfSSizeMaxForTest(); in PrintLongString() local
454 EXPECT_EQ(std::string(ref).substr(0, kSSizeMax-1), std::string(tmp.get())); in PrintLongString()