/external/cronet/base/strings/ |
D | safe_sprintf_unittest.cc | 34 EXPECT_EQ(-1, SafeSNPrintf(buf, static_cast<size_t>(-1), "")); in TEST() 39 EXPECT_EQ(-1, SafeSNPrintf(buf, 0, "")); in TEST() 44 EXPECT_EQ(0, SafeSNPrintf(buf, 1, "")); in TEST() 50 EXPECT_EQ(0, SafeSNPrintf(buf, 2, "")); in TEST() 72 EXPECT_EQ(-1, SafeSNPrintf(buf, static_cast<size_t>(-1), text)); in TEST() 76 EXPECT_EQ(-1, SafeSNPrintf(buf, 0, text)); in TEST() 80 EXPECT_EQ(static_cast<ssize_t>(sizeof(text))-1, SafeSNPrintf(buf, 1, text)); in TEST() 87 EXPECT_EQ(static_cast<ssize_t>(sizeof(text))-1, SafeSNPrintf(buf, 2, text)); in TEST() 96 SafeSNPrintf(buf, sizeof(buf), text)); in TEST() 136 EXPECT_EQ(-1, SafeSNPrintf(buf, static_cast<size_t>(-1), fmt, ' ')); in TEST() [all …]
|
D | safe_sprintf.h | 210 BASE_EXPORT ssize_t SafeSNPrintf(char* buf, size_t sz, const char* fmt, 224 ssize_t SafeSNPrintf(char* buf, size_t N, const char* fmt, Args... args) { in SafeSNPrintf() function 228 return internal::SafeSNPrintf(buf, N, fmt, arg_array, sizeof...(args)); in SafeSNPrintf() 236 return internal::SafeSNPrintf(buf, N, fmt, arg_array, sizeof...(args)); in SafeSPrintf() 240 BASE_EXPORT ssize_t SafeSNPrintf(char* buf, size_t N, const char* fmt); 243 return SafeSNPrintf(buf, N, fmt); in SafeSPrintf()
|
D | safe_sprintf.cc | 442 ssize_t SafeSNPrintf(char* buf, size_t sz, const char* fmt, const Arg* args, in SafeSNPrintf() function 667 ssize_t SafeSNPrintf(char* buf, size_t sz, const char* fmt) { in SafeSNPrintf() function
|
/external/libchrome/base/strings/ |
D | safe_sprintf_unittest.cc | 34 EXPECT_EQ(-1, SafeSNPrintf(buf, static_cast<size_t>(-1), "")); in TEST() 39 EXPECT_EQ(-1, SafeSNPrintf(buf, 0, "")); in TEST() 44 EXPECT_EQ(0, SafeSNPrintf(buf, 1, "")); in TEST() 50 EXPECT_EQ(0, SafeSNPrintf(buf, 2, "")); in TEST() 72 EXPECT_EQ(-1, SafeSNPrintf(buf, static_cast<size_t>(-1), text)); in TEST() 76 EXPECT_EQ(-1, SafeSNPrintf(buf, 0, text)); in TEST() 80 EXPECT_EQ(static_cast<ssize_t>(sizeof(text))-1, SafeSNPrintf(buf, 1, text)); in TEST() 87 EXPECT_EQ(static_cast<ssize_t>(sizeof(text))-1, SafeSNPrintf(buf, 2, text)); in TEST() 96 SafeSNPrintf(buf, sizeof(buf), text)); in TEST() 136 EXPECT_EQ(-1, SafeSNPrintf(buf, static_cast<size_t>(-1), fmt, ' ')); in TEST() [all …]
|
D | safe_sprintf.h | 207 BASE_EXPORT ssize_t SafeSNPrintf(char* buf, size_t sz, const char* fmt, 221 ssize_t SafeSNPrintf(char* buf, size_t N, const char* fmt, Args... args) { in SafeSNPrintf() function 225 return internal::SafeSNPrintf(buf, N, fmt, arg_array, sizeof...(args)); in SafeSNPrintf() 233 return internal::SafeSNPrintf(buf, N, fmt, arg_array, sizeof...(args)); in SafeSPrintf() 237 BASE_EXPORT ssize_t SafeSNPrintf(char* buf, size_t N, const char* fmt); 240 return SafeSNPrintf(buf, N, fmt); in SafeSPrintf()
|
D | safe_sprintf.cc | 430 ssize_t SafeSNPrintf(char* buf, size_t sz, const char* fmt, const Arg* args, in SafeSNPrintf() function 657 ssize_t SafeSNPrintf(char* buf, size_t sz, const char* fmt) { in SafeSNPrintf() function
|
/external/cronet/base/debug/ |
D | elf_reader.cc | 113 strings::SafeSNPrintf(&build_id[i * 2], 3, (uppercase ? "%02X" : "%02x"), in ReadElfBuildId()
|