Home | History | Annotate | Download | only in base

Lines Matching refs:unit

239   size_t unit = Pickle::kPayloadUnit;
240 scoped_ptr<char[]> data(new char[unit]);
242 for (size_t i = 0; i < unit; i++)
245 // construct a message that will be exactly the size of one payload unit,
247 const size_t payload_size_after_header = unit - sizeof(uint32);
253 // note: we assume 'unit' is a power of 2
254 EXPECT_EQ(unit, pickle.capacity_after_header());
258 pickle.WriteData(data_ptr, static_cast<int>(unit - sizeof(uint32)));
259 cur_payload += unit;
260 EXPECT_EQ(unit * 2, pickle.capacity_after_header());
266 EXPECT_EQ(unit * 4, pickle.capacity_after_header());