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

/external/chromium_org/base/strings/
H A Dsafe_sprintf.cc70 // We would like to define kSSizeMax as std::numeric_limits<ssize_t>::max(),
75 const size_t kSSizeMax = kSSizeMaxConst; member in namespace:base::strings::__anon3937
78 // For efficiency, we really need kSSizeMax to be a constant. But for unit
81 // kSSizeMax adjustable in debug builds, and then only compile that particular
84 static size_t kSSizeMax = kSSizeMaxConst;
89 kSSizeMax = max;
93 return kSSizeMax;
105 // must be smaller or equal to kSSizeMax in size.
120 DEBUG_CHECK(size <= kSSizeMax);
133 // Returns true, iff the buffer is filled all the way to |kSSizeMax
[all...]
H A Dsafe_sprintf_unittest.cc433 const size_t kSSizeMax = std::numeric_limits<ssize_t>::max(); local
435 const size_t kSSizeMax = internal::GetSafeSPrintfSSizeMaxForTest(); local
439 EXPECT_EQ(std::string(ref).substr(0, kSSizeMax-1), std::string(tmp.get()));
495 // kSSizeMax is also used to constrain the maximum amount of padding, before

Completed in 64 milliseconds