Searched refs:NUM_BLOCKS (Results 1 – 2 of 2) sorted by relevance
/system/update_engine/payload_consumer/ |
D | xor_extent_writer_unittest.cc | 43 static constexpr size_t NUM_BLOCKS = 50; member in chromeos_update_engine::XorExtentWriterTest 45 ASSERT_EQ(ftruncate64(source_part_.fd, kBlockSize * NUM_BLOCKS), 0); in SetUp() 46 ASSERT_EQ(ftruncate64(target_part_.fd, kBlockSize * NUM_BLOCKS), 0); in SetUp() 55 for (size_t i = 0; i < NUM_BLOCKS; i++) { in SetUp() 100 op_, source_fd_, &cow_writer_, xor_map_, NUM_BLOCKS * kBlockSize}; in TEST_F() 152 op_, source_fd_, &cow_writer_, xor_map_, NUM_BLOCKS * kBlockSize}; in TEST_F() 183 ExtentForRange(NUM_BLOCKS - 1, 1), ExtentForRange(2, 1), COW_XOR, 777); in TEST_F() 192 *op_.add_src_extents() = ExtentForRange(NUM_BLOCKS - 3, 3); in TEST_F() 195 op_, source_fd_, &cow_writer_, xor_map_, NUM_BLOCKS * kBlockSize}; in TEST_F() 216 EXPECT_CALL(cow_writer_, AddXorBlocks(2, _, kBlockSize, NUM_BLOCKS - 1, 0)) in TEST_F() [all …]
|
D | install_operation_executor_unittest.cc | 62 static constexpr size_t NUM_BLOCKS = 10; member in chromeos_update_engine::InstallOperationExecutorTest 66 source_data_.resize(NUM_BLOCKS * BLOCK_SIZE); in SetUp() 67 target_data_.resize(NUM_BLOCKS * BLOCK_SIZE); in SetUp() 68 for (size_t i = 0; i < NUM_BLOCKS; i++) { in SetUp() 78 NUM_BLOCKS + i); in SetUp() 93 ASSERT_GE(ftruncate64(target_.fd(), NUM_BLOCKS * BLOCK_SIZE), 0) in SetUp() 95 << NUM_BLOCKS * BLOCK_SIZE; in SetUp() 119 static_cast<uint8_t>(NUM_BLOCKS + untouched_blocks[block_offset])) in VerityUntouchedExtents() 230 *op.mutable_src_extents()->Add() = ExtentForRange(0, NUM_BLOCKS); in TEST_F() 231 *op.mutable_dst_extents()->Add() = ExtentForRange(0, NUM_BLOCKS); in TEST_F() [all …]
|