Lines Matching refs:patch_writer_
27 patch_writer_.reset(new SplitPatchWriter(new_chunk_size, patches)); in SetUpForSize()
28 EXPECT_TRUE(patch_writer_->Init(new_size)); in SetUpForSize()
32 std::unique_ptr<SplitPatchWriter> patch_writer_; member in bsdiff::SplitPatchWriterTest
38 patch_writer_.reset(new SplitPatchWriter(10, patches)); in TEST_F()
40 EXPECT_FALSE(patch_writer_->Init(15)); in TEST_F()
46 EXPECT_TRUE(patch_writer_->Close()); in TEST_F()
55 EXPECT_FALSE(patch_writer_->Close()); in TEST_F()
61 EXPECT_TRUE(patch_writer_->AddControlEntry(ControlEntry(15, 5, 0))); in TEST_F()
65 EXPECT_TRUE(patch_writer_->WriteDiffStream(zeros.data(), 12)); in TEST_F()
66 EXPECT_TRUE(patch_writer_->WriteExtraStream(zeros.data(), 5)); in TEST_F()
67 EXPECT_FALSE(patch_writer_->Close()); in TEST_F()
74 EXPECT_TRUE(patch_writer_->AddControlEntry(ControlEntry(5, 15, -5))); in TEST_F()
75 EXPECT_TRUE(patch_writer_->WriteDiffStream(zeros.data(), 5)); in TEST_F()
78 EXPECT_TRUE(patch_writer_->WriteExtraStream(zeros.data(), 10)); in TEST_F()
79 EXPECT_FALSE(patch_writer_->Close()); in TEST_F()
87 EXPECT_TRUE(patch_writer_->AddControlEntry(ControlEntry(5, 1, -5))); in TEST_F()
88 EXPECT_TRUE(patch_writer_->AddControlEntry(ControlEntry(4, 0, -4))); in TEST_F()
90 EXPECT_TRUE(patch_writer_->AddControlEntry(ControlEntry(6, 0, -1))); in TEST_F()
92 EXPECT_TRUE(patch_writer_->AddControlEntry(ControlEntry(1, 18, 2))); in TEST_F()
94 EXPECT_TRUE(patch_writer_->AddControlEntry(ControlEntry(1, 0, 1))); in TEST_F()
95 EXPECT_TRUE(patch_writer_->AddControlEntry(ControlEntry(4, 0, -5))); in TEST_F()
99 patch_writer_->WriteDiffStream(zeros.data(), 5 + 4 + 6 + 1 + 1 + 4)); in TEST_F()
100 EXPECT_TRUE(patch_writer_->WriteExtraStream(zeros.data(), 1 + 18)); in TEST_F()
101 EXPECT_TRUE(patch_writer_->Close()); in TEST_F()
142 EXPECT_TRUE(patch_writer_->AddControlEntry(ControlEntry(15, 10, 0))); in TEST_F()
143 EXPECT_TRUE(patch_writer_->AddControlEntry(ControlEntry(15, 0, 0))); in TEST_F()
145 EXPECT_TRUE(patch_writer_->WriteDiffStream(numbers.data(), 30)); in TEST_F()
146 EXPECT_TRUE(patch_writer_->WriteExtraStream(numbers.data() + 30, 10)); in TEST_F()
147 EXPECT_TRUE(patch_writer_->Close()); in TEST_F()