Home | History | Annotate | Download | only in tests

Lines Matching refs:buf

18   char* buf = reinterpret_cast<char*>(p_buf);
20 if (buf[i] != 0)
28 internal::FixedBufferForTesting buf(internal::Align(10) * 2);
29 ASSERT_EQ(buf.size(), 16u * 2);
31 void* a = buf.Allocate(10);
36 void* b = buf.Allocate(10);
49 internal::FixedBufferForTesting buf(8);
50 ASSERT_EQ(8u, buf.size());
52 ptr = buf.Allocate(8);
54 buf_ptr = buf.Leak();
61 EXPECT_EQ(0u, buf.size());
62 EXPECT_FALSE(buf.Leak());
73 internal::FixedBufferForTesting buf(24);
76 EXPECT_EQ(reinterpret_cast<void*>(0), buf.Allocate(32));
79 EXPECT_NE(reinterpret_cast<void*>(0), buf.Allocate(16));
83 buf.Allocate(std::numeric_limits<size_t>::max() - 1024u));
87 buf.Allocate(std::numeric_limits<size_t>::max() - 8u));