Home | History | Annotate | Download | only in disk_cache

Lines Matching full:buf_2

1288 // Writes |buf_1| to offset and reads it back as |buf_2|.
1290 net::IOBuffer* buf_1, int size, net::IOBuffer* buf_2) {
1293 memset(buf_2->data(), 0, size);
1294 int ret = entry->ReadSparseData(offset, buf_2, size, &cb);
1300 ret = entry->ReadSparseData(offset, buf_2, size, &cb);
1303 EXPECT_EQ(0, memcmp(buf_1->data(), buf_2->data(), size));
1327 scoped_refptr<net::IOBuffer> buf_2(new net::IOBuffer(kSize));
1331 VerifySparseIO(entry, 0, buf_1, kSize, buf_2);
1334 VerifySparseIO(entry, 0x400000, buf_1, kSize, buf_2);
1337 VerifySparseIO(entry, 0x800000000LL, buf_1, kSize, buf_2);
1368 scoped_refptr<net::IOBuffer> buf_2(new net::IOBuffer(kSize));
1372 VerifySparseIO(entry, 0x20F0000, buf_1, kSize, buf_2);
1507 scoped_refptr<net::IOBuffer> buf_2(new net::IOBuffer(kSize));
1518 VerifySparseIO(entry, i, buf_3, 1024, buf_2);
1519 VerifySparseIO(entry, 9000 + i, buf_3, 1024, buf_2);
1527 VerifySparseIO(entry, 20481, buf_1, 8192, buf_2);
1597 scoped_refptr<net::IOBuffer> buf_2(new net::IOBuffer(kSize));
1601 VerifySparseIO(entry1, 0, buf_1, kSize, buf_2);
1606 VerifySparseIO(entry1, 2048, buf_1, kSize, buf_2);