• Home
  • Raw
  • Download

Lines Matching refs:SafeSNPrintf

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()
140 EXPECT_EQ(-1, SafeSNPrintf(buf, 0, fmt, ' ')); in TEST()
145 SafeSNPrintf(buf, 1, fmt, ' ')); in TEST()
153 SafeSNPrintf(buf, 2, fmt, ' ')); in TEST()
162 SafeSNPrintf(buf, sizeof(buf), fmt, ' ')); in TEST()
210 SafeSNPrintf(buf.get(), sizeof(kTestString), kTestString)); in TEST()
213 SafeSNPrintf(buf.get(), sizeof(kTestString), "%s", kTestString)); in TEST()
248 EXPECT_EQ(1, SafeSNPrintf(buf, 11, "%c", 1)); in TEST()
250 EXPECT_EQ(2, SafeSNPrintf(buf, 11, "%c%c", 1, 2)); in TEST()
252 EXPECT_EQ(3, SafeSNPrintf(buf, 11, "%c%c%c", 1, 2, 3)); in TEST()
254 EXPECT_EQ(4, SafeSNPrintf(buf, 11, "%c%c%c%c", 1, 2, 3, 4)); in TEST()
256 EXPECT_EQ(5, SafeSNPrintf(buf, 11, "%c%c%c%c%c", 1, 2, 3, 4, 5)); in TEST()
258 EXPECT_EQ(6, SafeSNPrintf(buf, 11, "%c%c%c%c%c%c", 1, 2, 3, 4, 5, 6)); in TEST()
260 EXPECT_EQ(7, SafeSNPrintf(buf, 11, "%c%c%c%c%c%c%c", 1, 2, 3, 4, 5, 6, 7)); in TEST()
262 EXPECT_EQ(8, SafeSNPrintf(buf, 11, "%c%c%c%c%c%c%c%c", in TEST()
265 EXPECT_EQ(9, SafeSNPrintf(buf, 11, "%c%c%c%c%c%c%c%c%c", in TEST()
268 EXPECT_EQ(10, SafeSNPrintf(buf, 11, "%c%c%c%c%c%c%c%c%c%c", in TEST()
275 EXPECT_EQ(11, SafeSNPrintf(buf, 12, "%c%c%c%c%c%c%c%c%c%c%c", in TEST()
388 SafeSNPrintf(out, out_sz, in PrintLongString()
567 SafeSNPrintf(buf, 4, fmt, 1)); in TEST()
571 SafeSNPrintf(buf, 4, fmt, 1)); in TEST()
601 SafeSNPrintf(buf, 4, fmt, 1)); in TEST()
605 SafeSNPrintf(buf, 4, fmt, 1)); in TEST()
637 SafeSNPrintf(buf, 4, fmt, 1)); in TEST()
641 SafeSNPrintf(buf, 4, fmt, 1)); in TEST()
665 SafeSNPrintf(buf, 4, fmt, (void*)1)); in TEST()
669 SafeSNPrintf(buf, 4, fmt, (void*)1)); in TEST()
693 SafeSNPrintf(buf, 4, fmt, "A")); in TEST()
697 SafeSNPrintf(buf, 4, fmt, "A")); in TEST()