Lines Matching refs:buffer
447 std::vector<uint8_t> buffer(source.blocks() * kBlockSize); in TEST() local
448 ASSERT_TRUE(source.ReadAll(&buffer, kBlockSize, block_reader, stash_reader)); in TEST()
449 ASSERT_EQ(source.blocks() * kBlockSize, buffer.size()); in TEST()
452 SHA1(buffer.data(), buffer.size(), digest); in TEST()
469 std::vector<uint8_t> buffer(source.blocks() * kBlockSize); in TEST() local
470 ASSERT_TRUE(source.ReadAll(&buffer, kBlockSize, block_reader, stash_reader)); in TEST()
471 ASSERT_EQ(source.blocks() * kBlockSize, buffer.size()); in TEST()
474 SHA1(buffer.data(), buffer.size(), digest); in TEST()
483 std::vector<uint8_t> buffer(source.blocks() * kBlockSize - 1); in TEST() local
484 ASSERT_FALSE(source.ReadAll(&buffer, kBlockSize, block_reader, stash_reader)); in TEST()
491 std::vector<uint8_t> buffer(source.blocks() * kBlockSize); in TEST() local
494 ASSERT_FALSE(source.ReadAll(&buffer, kBlockSize, failing_block_reader, stash_reader)); in TEST()
498 ASSERT_FALSE(source.ReadAll(&buffer, kBlockSize, block_reader, failing_stash_reader)); in TEST()