Lines Matching refs:source

52   SourceInfo source;  in TEST()  local
56 "1d74d1a60332fd38cf9405f1bae67917888da6cb", &source, &err)); in TEST()
62 source); in TEST()
63 ASSERT_EQ(117, source.blocks()); in TEST()
74 SourceInfo source; in TEST() local
78 "1c25ba04d3278d6b65a1b9f17abac78425ec8b8d", &source, &err)); in TEST()
87 source); in TEST()
88 ASSERT_EQ(2, source.blocks()); in TEST()
100 SourceInfo source; in TEST() local
104 "a6cbdf3f416960f02189d3a814ec7e9e95c44a0d", &source, &err)); in TEST()
115 source); in TEST()
116 ASSERT_EQ(96, source.blocks()); in TEST()
128 SourceInfo source; in TEST() local
137 "1d74d1a60332fd38cf9405f1bae67917888da6cb", &source, &err)); in TEST()
146 "1d74d1a60332fd38cf9405f1bae67917888da6cb", &source, &err)); in TEST()
152 SourceInfo source; in TEST() local
157 "1d74d1a60332fd38cf9405f1bae67917888da6cb", &source, &err)); in TEST()
176 ASSERT_EQ(SourceInfo(), command.source()); in TEST()
208 command.source()); in TEST()
224 ASSERT_EQ(SourceInfo(), command.source()); in TEST()
240 ASSERT_EQ(SourceInfo(), command.source()); in TEST()
264 command.source()); in TEST()
287 command.source()); in TEST()
303 ASSERT_EQ(SourceInfo(), command.source()); in TEST()
319 ASSERT_EQ(SourceInfo(), command.source()); in TEST()
335 ASSERT_EQ(SourceInfo(), command.source()); in TEST()
354 ASSERT_EQ(SourceInfo(), command.source()); in TEST()
440 const SourceInfo source("2727756cfee3fbfe24bf5650123fd7743d7b3465", RangeSet({ { 0, 2 } }), {}, in TEST() local
447 std::vector<uint8_t> buffer(source.blocks() * kBlockSize); in TEST()
448 ASSERT_TRUE(source.ReadAll(&buffer, kBlockSize, block_reader, stash_reader)); in TEST()
449 ASSERT_EQ(source.blocks() * kBlockSize, buffer.size()); in TEST()
453 ASSERT_EQ(source.hash(), print_sha1(digest)); in TEST()
457 const SourceInfo source( in TEST() local
469 std::vector<uint8_t> buffer(source.blocks() * kBlockSize); in TEST()
470 ASSERT_TRUE(source.ReadAll(&buffer, kBlockSize, block_reader, stash_reader)); in TEST()
471 ASSERT_EQ(source.blocks() * kBlockSize, buffer.size()); in TEST()
475 ASSERT_EQ(source.hash(), print_sha1(digest)); in TEST()
479 const SourceInfo source("2727756cfee3fbfe24bf5650123fd7743d7b3465", RangeSet({ { 0, 2 } }), {}, in TEST() local
483 std::vector<uint8_t> buffer(source.blocks() * kBlockSize - 1); in TEST()
484 ASSERT_FALSE(source.ReadAll(&buffer, kBlockSize, block_reader, stash_reader)); in TEST()
488 const SourceInfo source( in TEST() local
491 std::vector<uint8_t> buffer(source.blocks() * kBlockSize); in TEST()
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()