Lines Matching refs:num_chunks
23 MockWrite* ChopWriteFrame(const char* data, int length, int num_chunks) { in ChopWriteFrame() argument
24 MockWrite* chunks = new MockWrite[num_chunks]; in ChopWriteFrame()
25 int chunk_size = length / num_chunks; in ChopWriteFrame()
26 for (int index = 0; index < num_chunks; index++) { in ChopWriteFrame()
28 if (index == num_chunks - 1) in ChopWriteFrame()
38 MockWrite* ChopWriteFrame(const spdy::SpdyFrame& frame, int num_chunks) { in ChopWriteFrame() argument
41 num_chunks); in ChopWriteFrame()
48 MockRead* ChopReadFrame(const char* data, int length, int num_chunks) { in ChopReadFrame() argument
49 MockRead* chunks = new MockRead[num_chunks]; in ChopReadFrame()
50 int chunk_size = length / num_chunks; in ChopReadFrame()
51 for (int index = 0; index < num_chunks; index++) { in ChopReadFrame()
53 if (index == num_chunks - 1) in ChopReadFrame()
63 MockRead* ChopReadFrame(const spdy::SpdyFrame& frame, int num_chunks) { in ChopReadFrame() argument
66 num_chunks); in ChopReadFrame()