Searched refs:patch_writer_ (Results 1 – 4 of 4) sorted by relevance
/external/bsdiff/ |
D | split_patch_writer_unittest.cc | 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() [all …]
|
D | endsley_patch_writer_unittest.cc | 34 EndsleyPatchWriter patch_writer_{&data_, CompressorType::kNoCompression, 0}; member in bsdiff::EndsleyPatchWriterTest 39 EXPECT_TRUE(patch_writer_.Init(0)); in TEST_F() 40 EXPECT_TRUE(patch_writer_.Close()); in TEST_F() 86 EXPECT_TRUE(patch_writer_.Init(10)); in TEST_F() 88 EXPECT_TRUE(patch_writer_.AddControlEntry(ControlEntry(2, 3, -2))); in TEST_F() 89 EXPECT_TRUE(patch_writer_.WriteDiffStream(text.data(), 2)); in TEST_F() 90 EXPECT_TRUE(patch_writer_.WriteExtraStream(text.data() + 2, 3)); in TEST_F() 95 EXPECT_TRUE(patch_writer_.AddControlEntry(ControlEntry(0, 5, 1024))); in TEST_F() 96 EXPECT_TRUE(patch_writer_.WriteExtraStream(text.data() + 5, 5)); in TEST_F() 98 EXPECT_TRUE(patch_writer_.Close()); in TEST_F() [all …]
|
D | patch_writer_unittest.cc | 52 EXPECT_TRUE(patch_writer_.Init(0)); in SetUp() 56 BsdiffPatchWriter patch_writer_{patch_file_.filename()}; member in bsdiff::BsdiffPatchWriterTest 60 EXPECT_TRUE(patch_writer_.Close()); in TEST_F() 73 EXPECT_TRUE(patch_writer_.AddControlEntry(ControlEntry(0, 5, 0))); in TEST_F() 74 EXPECT_TRUE(patch_writer_.AddControlEntry( in TEST_F() 76 EXPECT_TRUE(patch_writer_.WriteExtraStream(kHelloWorld, sizeof(kHelloWorld))); in TEST_F() 77 EXPECT_TRUE(patch_writer_.Close()); in TEST_F() 96 patch_writer_.AddControlEntry(ControlEntry(sizeof(kHelloWorld), 0, 0))); in TEST_F() 98 EXPECT_TRUE(patch_writer_.WriteDiffStream(zeros.data(), zeros.size())); in TEST_F() 99 EXPECT_TRUE(patch_writer_.Close()); in TEST_F()
|
D | bsdiff_unittest.cc | 36 new_file_.size(), min_len_, &patch_writer_, nullptr)); in RunBsdiff() 42 FakePatchWriter patch_writer_; member in bsdiff::BsdiffTest 51 EXPECT_TRUE(patch_writer_.entries().empty()); in TEST_F() 60 EXPECT_EQ(1U, patch_writer_.entries().size()); in TEST_F() 61 ControlEntry entry = patch_writer_.entries()[0]; in TEST_F() 79 EXPECT_EQ(1U, patch_writer_.entries().size()); in TEST_F() 80 ControlEntry entry = patch_writer_.entries()[0]; in TEST_F() 100 EXPECT_EQ(1U, patch_writer_.entries().size()); in TEST_F() 101 ControlEntry entry = patch_writer_.entries()[0]; in TEST_F()
|