Searched refs:SafeSPrintf (Results 1 – 3 of 3) sorted by relevance
/external/libchrome/base/strings/ |
D | safe_sprintf_unittest.cc | 56 EXPECT_EQ(0, SafeSPrintf(buf, "")); in TEST() 103 EXPECT_EQ(static_cast<ssize_t>(sizeof(text))-1, SafeSPrintf(buf, text)); in TEST() 110 EXPECT_EQ(1, SafeSPrintf(buf, "%%")); in TEST() 111 EXPECT_EQ(2, SafeSPrintf(buf, "%%%%")); in TEST() 112 EXPECT_EQ(2, SafeSPrintf(buf, "%%X")); in TEST() 113 EXPECT_EQ(3, SafeSPrintf(buf, "%%%%X")); in TEST() 115 EXPECT_EQ(1, SafeSPrintf(buf, "%")); in TEST() 116 EXPECT_EQ(2, SafeSPrintf(buf, "%%%")); in TEST() 117 EXPECT_EQ(2, SafeSPrintf(buf, "%X")); in TEST() 118 EXPECT_EQ(3, SafeSPrintf(buf, "%%%X")); in TEST() [all …]
|
D | safe_sprintf.h | 229 ssize_t SafeSPrintf(char (&buf)[N], const char* fmt, Args... args) { in SafeSPrintf() function 239 inline ssize_t SafeSPrintf(char (&buf)[N], const char* fmt) { in SafeSPrintf() function
|
/external/libchrome/base/metrics/ |
D | persistent_memory_allocator_unittest.cc | 852 strings::SafeSPrintf(filename, "memory_%d_A", filesize); in TEST() 903 strings::SafeSPrintf(filename, "memory_%d_B", filesize); in TEST()
|