Home
last modified time | relevance | path

Searched refs:cow_writer_ (Results 1 – 11 of 11) sorted by relevance

/system/update_engine/payload_consumer/
Dsnapshot_extent_writer_unittest.cc127 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 …]
Dcow_writer_file_descriptor.cc34 : 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 …]
Dxor_extent_writer_unittest.cc66 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 …]
Dvabc_partition_writer.cc189 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 …]
Dsnapshot_extent_writer.h33 : cow_writer_(cow_writer) {} in SnapshotExtentWriter()
39 android::snapshot::ICowWriter* cow_writer_;
Dxor_extent_writer.h43 cow_writer_(cow_writer), in XORExtentWriter()
70 android::snapshot::ICowWriter* cow_writer_; variable
Dsnapshot_extent_writer.cc31 return cow_writer_->AddRawBlocks( in WriteExtent()
Dxor_extent_writer.cc52 TEST_AND_RETURN_FALSE(cow_writer_->AddXorBlocks(xor_ext.start_block(), in WriteXorCowOp()
175 TEST_AND_RETURN_FALSE(cow_writer_->AddRawBlocks( in WriteReplaceExtents()
Dcow_writer_file_descriptor.h67 std::unique_ptr<android::snapshot::ICowWriter> cow_writer_;
Dvabc_partition_writer.h84 std::unique_ptr<android::snapshot::ICowWriter> cow_writer_; variable
Dvabc_partition_writer_unittest.cc78 android::snapshot::MockCowWriter cow_writer_; member in chromeos_update_engine::__anon12db7cc20111::VABCPartitionWriterTest