/system/update_engine/payload_consumer/ |
D | snapshot_extent_writer_unittest.cc | 127 FakeCowWriter cow_writer_; member in chromeos_update_engine::SnapshotExtentWriterTest 128 SnapshotExtentWriter writer_{&cow_writer_}; 150 ASSERT_TRUE(cow_writer_.operations_.empty()) in TEST_F() 154 ASSERT_TRUE(cow_writer_.Contains(123)) in TEST_F() 157 ASSERT_EQ(cow_writer_.operations_.size(), 1U); in TEST_F() 158 ASSERT_EQ(buf, cow_writer_.operations_[123].data); in TEST_F() 173 ASSERT_TRUE(cow_writer_.Contains(123)); in TEST_F() 174 ASSERT_TRUE(cow_writer_.Contains(125)); in TEST_F() 176 ASSERT_EQ(cow_writer_.operations_.size(), 2U); in TEST_F() 177 auto actual_data = cow_writer_.operations_[123].data; in TEST_F() [all …]
|
D | cow_writer_file_descriptor.cc | 34 : cow_writer_(std::move(cow_writer)), in CowWriterFileDescriptor() 37 CHECK_NE(cow_writer_, nullptr); in CowWriterFileDescriptor() 64 if (!cow_writer_->Finalize()) { in Read() 68 cow_reader_ = cow_writer_->OpenFileDescriptor(source_device_); in Read() 88 CHECK_EQ(offset % cow_writer_->GetBlockSize(), 0); in Write() 89 auto success = cow_writer_->AddRawBlocks( in Write() 90 offset / cow_writer_->GetBlockSize(), buf, count); in Write() 124 if (cow_writer_) { in Close() 134 TEST_AND_RETURN_FALSE(cow_writer_->Finalize()); in Close() 136 cow_writer_ = nullptr; in Close() [all …]
|
D | xor_extent_writer_unittest.cc | 66 android::snapshot::MockCowWriter cow_writer_; member in chromeos_update_engine::XorExtentWriterTest 81 ON_CALL(cow_writer_, AddXorBlocks(_, _, _, _, _)).WillByDefault(Return(true)); in TEST_F() 100 op_, source_fd_, &cow_writer_, xor_map_, NUM_BLOCKS * kBlockSize}; in TEST_F() 113 EXPECT_CALL(cow_writer_, in TEST_F() 117 EXPECT_CALL(cow_writer_, in TEST_F() 121 EXPECT_CALL(cow_writer_, in TEST_F() 126 EXPECT_CALL(cow_writer_, AddXorBlocks(5, _, kBlockSize * 2, 5, 0)) in TEST_F() 128 EXPECT_CALL(cow_writer_, AddXorBlocks(456, _, kBlockSize * 2, 45, 0)) in TEST_F() 130 EXPECT_CALL(cow_writer_, AddXorBlocks(321, _, kBlockSize * 2, 12, 777)) in TEST_F() 139 ON_CALL(cow_writer_, AddXorBlocks(_, _, _, _, _)).WillByDefault(Return(true)); in TEST_F() [all …]
|
D | vabc_partition_writer.cc | 189 cow_writer_->AddCopy(cow_op.dst_extent().start_block(), in WriteAllCopyOps() 198 cow_writer_->AddCopy(cow_op.dst_extent().start_block() + i - 1, in WriteAllCopyOps() 243 cow_writer_ = in Init() 245 TEST_AND_RETURN_FALSE(cow_writer_ != nullptr); in Init() 265 partition_update_.merge_operations(), cow_writer_.get())); in Init() 272 cow_writer_->AddLabel(0); in Init() 333 return std::make_unique<SnapshotExtentWriter>(cow_writer_.get()); in CreateBaseExtentWriter() 340 cow_writer_->AddZeroBlocks(extent.start_block(), extent.num_blocks())); in PerformZeroOrDiscardOperation() 353 cow_writer_.get(), in PerformSourceCopyOperation() 380 cow_writer_.get(), in PerformDiffOperation() [all …]
|
D | snapshot_extent_writer.h | 33 : cow_writer_(cow_writer) {} in SnapshotExtentWriter() 39 android::snapshot::ICowWriter* cow_writer_;
|
D | xor_extent_writer.h | 43 cow_writer_(cow_writer), in XORExtentWriter() 70 android::snapshot::ICowWriter* cow_writer_; variable
|
D | snapshot_extent_writer.cc | 31 return cow_writer_->AddRawBlocks( in WriteExtent()
|
D | xor_extent_writer.cc | 52 TEST_AND_RETURN_FALSE(cow_writer_->AddXorBlocks(xor_ext.start_block(), in WriteXorCowOp() 175 TEST_AND_RETURN_FALSE(cow_writer_->AddRawBlocks( in WriteReplaceExtents()
|
D | cow_writer_file_descriptor.h | 67 std::unique_ptr<android::snapshot::ICowWriter> cow_writer_;
|
D | vabc_partition_writer.h | 84 std::unique_ptr<android::snapshot::ICowWriter> cow_writer_; variable
|
D | vabc_partition_writer_unittest.cc | 78 android::snapshot::MockCowWriter cow_writer_; member in chromeos_update_engine::__anon12db7cc20111::VABCPartitionWriterTest
|