Searched refs:SafeSPrintf (Results 1 – 7 of 7) sorted by relevance
/external/cronet/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 | 232 ssize_t SafeSPrintf(char (&buf)[N], const char* fmt, Args... args) { in SafeSPrintf() function 242 inline ssize_t SafeSPrintf(char (&buf)[N], const char* fmt) { in SafeSPrintf() function
|
/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/cronet/base/ |
D | linux_util.cc | 140 strings::SafeSPrintf(buf, "/proc/%d/task", pid); in GetThreadsForProcess()
|
/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()
|
/external/cronet/base/metrics/ |
D | persistent_memory_allocator_unittest.cc | 857 strings::SafeSPrintf(filename, "memory_%d_A", filesize); in TEST() 908 strings::SafeSPrintf(filename, "memory_%d_B", filesize); in TEST()
|