Home
last modified time | relevance | path

Searched refs:SafeSPrintf (Results 1 – 7 of 7) sorted by relevance

/external/cronet/base/strings/
Dsafe_sprintf_unittest.cc56 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 …]
Dsafe_sprintf.h232 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/
Dsafe_sprintf_unittest.cc56 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 …]
Dsafe_sprintf.h229 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/
Dlinux_util.cc140 strings::SafeSPrintf(buf, "/proc/%d/task", pid); in GetThreadsForProcess()
/external/libchrome/base/metrics/
Dpersistent_memory_allocator_unittest.cc852 strings::SafeSPrintf(filename, "memory_%d_A", filesize); in TEST()
903 strings::SafeSPrintf(filename, "memory_%d_B", filesize); in TEST()
/external/cronet/base/metrics/
Dpersistent_memory_allocator_unittest.cc857 strings::SafeSPrintf(filename, "memory_%d_A", filesize); in TEST()
908 strings::SafeSPrintf(filename, "memory_%d_B", filesize); in TEST()