Lines Matching full:unit
207 size_t unit = Pickle::kPayloadUnit;
208 scoped_array<char> data(new char[unit]);
210 for (size_t i = 0; i < unit; i++)
213 // construct a message that will be exactly the size of one payload unit,
215 const size_t payload_size_after_header = unit - sizeof(uint32);
221 // note: we assume 'unit' is a power of 2
222 EXPECT_EQ(unit, pickle.capacity());
226 pickle.WriteData(data_ptr, static_cast<int>(unit - sizeof(uint32)));
227 cur_payload += unit;
228 EXPECT_EQ(unit * 2, pickle.capacity());
234 EXPECT_EQ(unit * 4, pickle.capacity());