Searched refs:kTestBufferSize (Results 1 – 4 of 4) sorted by relevance
14 size_t kTestBufferSize = 1000; variable33 memory_dev_interface_->MemAlloc(kTestBufferSize)); in TestMemAlloc()36 buffer[kTestBufferSize - 1] = '1'; in TestMemAlloc()
39 const size_t kTestBufferSize = 1 << 14; // 16KB. variable44 scoped_refptr<IOBuffer> buf = new IOBuffer(kTestBufferSize); in ReadFromUploadDataStream()48 stream->Read(buf.get(), kTestBufferSize, callback.callback()); in ReadFromUploadDataStream()162 scoped_refptr<IOBuffer> buf = new IOBuffer(kTestBufferSize); in TEST_F()165 stream.Read(buf.get(), kTestBufferSize, CompletionCallback()); in TEST_F()194 scoped_refptr<IOBuffer> buf = new IOBuffer(kTestBufferSize); in TEST_F()199 stream.Read(buf.get(), kTestBufferSize, read_callback.callback())); in TEST_F()233 scoped_refptr<IOBuffer> buf = new IOBuffer(kTestBufferSize); in TEST_F()238 stream.Read(buf.get(), kTestBufferSize, read_callback.callback())); in TEST_F()271 scoped_refptr<IOBuffer> buf = new IOBuffer(kTestBufferSize); in TEST_F()[all …]
134 const size_t kTestBufferSize = 1 * 1024 * 1024; in TEST() local136 scoped_ptr<uint8[]> buffer(new uint8[kTestBufferSize]); in TEST()139 base::RandBytes(buffer.get(), kTestBufferSize); in TEST()142 LOG(INFO) << "RandBytes(" << kTestBufferSize << ") took: " in TEST()
22 const int kTestBufferSize = 10 * 1024; // 10k; variable55 test_buffer_ = new net::IOBufferWithSize(kTestBufferSize); in SetUp()56 test_buffer_2_ = new net::IOBufferWithSize(kTestBufferSize); in SetUp()57 for (int i = 0; i< kTestBufferSize; ++i) { in SetUp()